1. A method for correcting a digital image, said method comprising: receiving pixel information for an image of an object; and transforming, using a processor, at least one pixel in said pixel information by minimizing error between a histogram of said pixel information and a specified histogram.