Automated production of assembly parts, for example, requires some means for identifying, inspecting, and measuring the parts at high speed. The use of a video camera to scan each part visually together with a digital system to analyze the video signal generated by the camera is well-known. One known prior art system converts each image pixel to a "black" or "white" binary coded bit. During a frame scan, this stream of bits is gated by a window generator to an accumulator. The window generator gates only the bits corresponding to pixels within a preselected window area within the camera field. The size of the window can also be preselected. The accumulator counts all the bits within the window that are of one value (either black or white). By providing multiple windows generators and at least as many accumulators, the black or white pixel count from more than one window can be counted during one frame scan. However, the number of windows is limited by the number of accumulators, and an accumulator cannot be assigned to more than one window at a time. Such a system is severely limited in the number and size of windows that can be used in the system by the number and capacity of the accumulators.