Patent ID: 8587705

Claim:
A system comprising: a processor; an image sensor to generate a raw image; a hardware module to spatially filter the raw image in a horizontal direction to obtain intermediate image data, each pixel in a row of the intermediate image data including red plus green values or blue plus green values; a computer readable storage medium including a set of stored instructions which, if executed by the processor, cause the system to spatially filter the intermediate image data in a vertical direction, each pixel in a column of the intermediate image data including red plus green values or blue plus green values; and an output pixel requestor to select coefficients for a first filter and a green module based on pixel position, and to generate a valid output flag based on a down-sample rate wherein the hardware module includes: the first filter to determine red-blue average values for pixels in the raw image on a row-by-row basis; the green module to determine green values for pixels in the raw image on a row-by-row basis; and a summation module to correct the red-blue average values based on the green values.