Patent ID: 7466353

Claim:
A method of image processing an image in a camera module having an image sensor recording an image, said method including the steps of: capturing an image as a Color Filter Array image having non-linear RGB pixel data from said image sensor; generating addresses for the non-linear RGB pixel data for linearizing said image and for planarizing said image; linearizing said image from said image sensor to generate a linearized image by using at least three lookup tables, one lookup table for each of three RGB colors, said linearizing step performed by using an address for current RGB pixel data being read to index the at least three lookup tables and incrementing the addresses for the RGB pixel data; generating at least three histograms of said linearized image data, one historgram for each of at least three RGB image color planes, and storing at least a high and a low threshold for each histogram; planarizing said linearized image by using at least the high and the low threshold to generate a planarized linear RGB image; storing said planarized linear RGB image in image storage memory and at least three registers storing a current address for each of the at least three image color planes; and transforming said image from planarized linear RGB form to L*a*b* form.