Architecture and applications of the pixel machine