1. A method of processing pixel values from a captured image, the method comprising: receiving an array of digital pixel values corresponding to a captured image; and computing a rolling sum of the array of pixel values, wherein computing a rolling sum comprises: selecting successive groupings of the pixel values, each grouping comprising N×M pixel values; summing pixel values in each of the successive groupings; and forming an output image using the summed pixel values.