A packaged optical micro-mechanical device. Antialiasing smoothness can be traded off for throughput by varying the size of the programmed set. A slow scan second order moment data set can be generated by receiving a current scanline of image data, updating columns sums for a set of rotation angles using scanlines within a buffer comprising a band having a predetermined number B of scanlines, and updating the buffer with the current scanline.