Patent ID: 7830426

Claim:
A method of color plane interpolation for image pixels being carried out by a processor using pixel values output by a color imager, said method comprising the steps of: selecting a pixel of the color imager for processing; forming a kernel of neighboring pixels associated with said selected pixel; calculating pixel values of one color of a color pattern for all of the pixels in said kernel; determining at least three edge direction values, the three edge direction values respectively represent a horizontal edge direction, a vertical edge direction and a diagonal edge direction; determining whether said selected pixel is at an edge within an image and the direction of such edge using said calculated kernel pixel values of said one color and based on the edge direction values, wherein the direction of the edge is determined as the edge direction value having the maximum absolute value; recalculating at least one pixel value in said kernel based on said determined edge direction, wherein said recalculating said at least one pixel value is performed only if the edge direction is determined to be horizontal or vertical; and generating a value for said selected pixel for each color of said color pattern based on said neighboring pixels, whether said selected pixel is at said edge and the direction of said edge, wherein when said selected pixel is determined to be at said edge, at least one of said generated values is generated based on at least one correction term, said at least one correction term calculated based on the direction of said edge and pixel values of said neighboring pixels.