Patent ID: 8358319

Claim:
A method for processing image data using an image signal processor, comprising: using an image signal processor; receiving raw image data corresponding to an image scene captured using a digital image sensor; converting the raw image data into color image data, wherein converting the raw image data into the color image data comprises the steps of: prior to detecting any defective pixels in the raw image data, for each pixel of the raw image data, applying a first offset to a current pixel, applying a first digital gain to the current pixel after applying the first offset, and, after applying the first digital gain, clipping the value of the current pixel to a first minimum value if the value of the current pixel is below the first minimum value or to a first maximum value if the value of the current pixel is above the first maximum value; detecting any defective pixels in the raw image data; correcting any detected defective pixels in the raw image data; processing the raw image data to reduce noise after the detected defective pixels are corrected; processing the raw image data to correct lens shading distortion after processing the raw image data to reduce noise; after processing the raw image data to correct lens shading distortion, for each pixel of the raw image data, applying a second offset to the current pixel, applying a second digital gain to the current pixel after applying the second offset, and, after applying the second digital gain, clipping the value of the current pixel to a second minimum value if the value of the current pixel is below the second minimum value or to a second maximum value if the value of the current pixel is above the second maximum value; and applying a demosaicing process to convert the raw image data into the color image data after the correction of the lens shading distortion; converting the color image data to a luma and chroma color space to produce a corresponding set of luma and chroma image data; and displaying a visual representation of the image scene using the luma and chroma image data.