Analog VLSI primitives for perceptual tasks in machine vision