CindyJS

Calculating the Mean Color of an Image

By calculating the mean for quadruples of pixels, every image will have half the resolution in each direction. After log2(width) steps the mean color of the original image is found.