摘要 |
A method for reconstructing a color image from a sensor which comprises a plurality of pixels arranged in a matrix of rows and columns is provided. The sensor is provided with a color filter array such that each pixel corresponds to one of three basic colors. The three basic colors are provided on the sensor in a predetermined pattern. The sensor outputs a detected value for each of the plurality of pixels. The method comprises the steps: 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; outputting the accepted detected value and the selected interpolation values. The vertical interpolation and the horizontal interpolation are calculated based on the detected values for pixels in a 5×5 pixel environment around the respective pixel.
|