A method classifies pixels in an image by first partitioning the image
into blocks. A variance of an intensity is determined for each pixel, and
for each block the pixel with the maximum variance is identified. Then,
the blocks are classified into classes according to the maximum variance.