Patent ID: 8149245

Claim:
A non-transitory computer readable storage medium having a method encoded thereon, the method represented by computer readable programming code, the method comprising the steps of: segmenting an image into a plurality of tiles; calculating an upper clip limit and a lower clip limit for each tile of the plurality of tiles based upon a user input standard deviation, wherein if the user input standard deviation is zero, then determining a tile mean and a tile standard deviation, wherein if the tile standard deviation is less than about 0.03, then incrementing a standard deviation number by one, if the tile standard deviation is less than about 0.005, then further incrementing the standard deviation number by one, if the tile mean is less than about 0.4, then setting the lower clip limit to about 0.0011 and the upper clip limit to about the tile mean plus the product of the standard deviation number and the tile standard deviation, and if the tile mean is greater than about 0.6, then setting the upper clip limit to about 0.99 and the lower clip limit to about the tile mean minus the product of the standard deviation number and the tile standard deviation, if the user input standard deviation is greater than zero, then determining a tile mean and a tile standard deviation, setting the lower clip limit to about the tile mean minus the product of the standard deviation number and the tile standard deviation, and setting the upper clip limit to about the tile mean plus the product of the standard deviation number and the tile standard deviation; and generating a lookup table for each tile by linearly mapping the input pixel values of the image to the output pixel values of the image based upon the calculated upper clip limit and lower clip limit.