1. A method comprising: electronically creating a histogram of an original image, the histogram specifying input pixel counters for a plurality of bins; electronically analyzing a bin of pixels; electronically determining, based upon a plurality of minimum thresholds, an output pixel value for pixel values associated with the analyzed bin, each minimum threshold defining a minimum number of pixels in a bin, each minimum threshold being associated with one or more bins; electronically grouping, based upon a threshold, an adjacent bin of pixels with the to analyzed bin of pixels to create a grouped bin of pixels; electronically determining an output pixel value for pixel values associated with the grouped bin of pixels; electronically correcting pixel values of the original image associated with the grouped bin of pixels using the determined output pixel value associated with the grouped bin of pixels; and electronically correcting pixel values of the original image associated with the analyzed bin of pixels using the determined output pixel value associated with the analyzed bin of pixels.