Patent ID: 8902330

Claim:
A method for correcting image data retrieved from an image sensor comprising a plurality of image pixels and non-image pixels, the image pixels being overlaid with a color filter array and having a different spectral sensitivity than the non-image pixels, the method comprising: a) determining a set of color components for the image pixels based on raw image data read only from the image pixels of the image sensor, whereby one color component is assigned the raw image data obtained from the sensor for said image pixel, and the other color components are determined from raw image data obtained from the sensor for image pixels in the vicinity of said image pixel; b) determining a corrected set of color components for the image pixels that are not directly adjacent to the non-image pixels by means of a first color correction matrix using the formula: [ R corr G corr B corr ] = [ m 11 m 12 m 13 m 21 m 22 m 23 m 31 m 32 m 33 ] ⁡ [ R old G old B old ] c) determining a corrected set of color components for the image pixels that are directly adjacent to the non-image pixels by means of a second color correction matrix different from the first color correction matrix, using the formula: [ R corr G corr B corr ] = [ m 11 ′ m 12 ′ m 13 ′ m 21 ′ m 22 ′ m 23 ′ m 31 ′ m 32 ′ m 33 ′ ] ⁡ [ R old G old B old ] whereby the coefficients of the first and second color correction matrix are adapted for simultaneous color transformation and cross-talk correction.