摘要 |
A sensor such as a CCD image pickup device is equipped with a color filter of RGB Bayer array. An image is read from such a sensor (S 1 ) and inputted to a color interpolation device as raw data (S 2 ). The color interpolation device calculates additional values DH and DV of differential absolute values of pixel values in a horizontal direction and a vertical direction by using pixels of all colors in a peripheral area of a specified pixel (S 3 and S 4 ). The additional values DH and DV are compared with each other (S 5 ) and when it is judged that there is a tendency of pixel drift in the horizontal direction or the vertical direction, S 6 is executed. In S 6 , when a correlation in the vertical direction is strong, an interpolation using vertical adjacent pixels is performed and when a correlation in the horizontal direction is strong, an interpolation using horizontal adjacent pixels is performed. By this method, it is possible to improve the accuracy of color interpolation.
|