Pixel-by-pixel array division by optical computing