Design and analysis of image processing algorithms for programmable VLSI array processors