Patent ID: 7376288

Claim:
A demosaic system for converting a sensor image into a full-color image comprising: a gradient module for calculating a plurality of gradients from a neighborhood of the sensor image data centered at a pixel under consideration, wherein a gradient corresponds to a direction; a threshold module for determining a threshold value and selecting a subset of gradients from the plurality of gradients below the threshold value; an estimation module for calculating an estimation value from the sensor image data for a missing color and an estimation value for a center pixel on a direction in the plurality of gradients and for calculating a sum of a missing color estimation value and a sum of a center pixel estimation value; and a color interpolation module for interpolating a missing color value using an average difference between the sum of the missing color estimation value and the sum of the center pixel estimation value, wherein the gradient is calculated using only a portion of the most significant bits of a sensor pixel data.