Patent ID: 7236190

Claim:
A method for processing a digital image, comprising the steps of: performing an automatic gain control on a photo-sensor output to generate a first image output; performing an automatic white balance correction to said first image output to generate a second image output; applying white balance to said second image output to generate a third image output; performing a color interpolation to said third image output to generate a fourth image output, wherein said color interpolation comprises: detecting a diagonal edge where there is a difference in color intensity in both a row and a column of a pixel array, and calculating a median color value for a pixel at said diagonal edge; performing a low-pass spatial filtration of said fourth image output to generate a fifth image output; performing a gamma correction on said fifth image output to generate a sixth image output, wherein said gamma correction comprises using a luminance conversion factor measured from an RGB to adjust said RGB; performing a color space conversion of said sixth image output to generate a seventh image output; performing a YCC color correction on said seventh image output to generate an eighth image output; and performing a progressive edge enhancement on said eighth image and storing said image to a storage device.