Patent Document ID: 8363135
Application ID: 12865866
Patent Status: 1

Claim One:
1. A method for reconstructing a color image from a sensor comprising a plurality of pixels arranged in a matrix of rows and columns, the sensor being provided with a color filter array such that each pixel corresponds to one of three basic colors, the three basic colors being provided on the sensor in a predetermined pattern; wherein the sensor outputs a detected value for each of the plurality of pixels; the method comprising: for each of the plurality of pixels: accepting a detected value obtained for the corresponding one of the three basic colors and, for each of the respective two other basic colors, calculating a vertical interpolation value and a horizontal interpolation value and selecting either the vertical interpolation value or the horizontal interpolation value comprises calculating a horizontal edge indicator taking into account the horizontal interpolation value; calculating a vertical edge indicator taking into account the vertical interpolation value; and comparing the horizontal edge indicator and the vertical edge indicator where the horizontal edge indicator is calculated according to the equation 
 class x =|a 33 −a 31 |+|a 33 −a 35 |+|B 33 −b 32 |+|B 33 −b 34 | with the pixels in the 5×5 pixel environment being defined as [ p 11 p 12 p 13 p 14 p 15 p 21 p 22 p 23 p 24 p 25 p 31 p 32 p 33 p 34 p 35 p 41 p 42 p 43 p 44 p 45 p 51 p 52 p 53 p 54 p 55 ] the pixel p 33 being the pixel for which interpolation is performed, a ij and b ij being corresponding detected values for pixels p ij , and B 33 being the horizontal interpolation value for pixel p 33 ; outputting the accepted detected value and the selected interpolation values; wherein the vertical interpolation value and the horizontal interpolation value are calculated based on the detected values for pixels in a 5×5 pixel environment around the respective pixel.