A low-cost parallel VLSI architecture for low-level vision