Color interpolation method
First Claim
1. A color interpolation method comprising:
- a first step of inputting pixel data of Bayer array in a predetermined color space;
a second step of setting a predetermined area around a specified pixel and calculating a pixel-value change evaluation value in a horizontal direction (hereinafter, referred to as a horizontal evaluation value) and a pixel-value change evaluation value in a vertical direction (hereinafter, referred to as a vertical evaluation value) by using pixel data of all color components in said predetermined area;
a third step of comparing said horizontal evaluation value and said vertical evaluation value; and
a fourth step of performing pixel interpolation using pixel values in said vertical direction about said specified pixel when it is judged from a comparison of said third step that a pixel value change in said horizontal direction is larger or performing pixel interpolation using pixel values in said horizontal direction about said specified pixel when it is judged from a comparison of said third step that a pixel value change in said vertical direction is larger.
2 Assignments
0 Petitions
Accused Products
Abstract
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 (S1) and inputted to a color interpolation device as raw data (S2). 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 (S3 and S4). The additional values DH and DV are compared with each other (S5) and when it is judged that there is a tendency of pixel drift in the horizontal direction or the vertical direction, S6 is executed. In S6, 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.
47 Citations
6 Claims
-
1. A color interpolation method comprising:
-
a first step of inputting pixel data of Bayer array in a predetermined color space;
a second step of setting a predetermined area around a specified pixel and calculating a pixel-value change evaluation value in a horizontal direction (hereinafter, referred to as a horizontal evaluation value) and a pixel-value change evaluation value in a vertical direction (hereinafter, referred to as a vertical evaluation value) by using pixel data of all color components in said predetermined area;
a third step of comparing said horizontal evaluation value and said vertical evaluation value; and
a fourth step of performing pixel interpolation using pixel values in said vertical direction about said specified pixel when it is judged from a comparison of said third step that a pixel value change in said horizontal direction is larger or performing pixel interpolation using pixel values in said horizontal direction about said specified pixel when it is judged from a comparison of said third step that a pixel value change in said vertical direction is larger. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification