Patent ID: 11972538
Assignee: APPLE INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. An electronic device comprising:
an image sensor; and
an image signal processor coupled to the image sensor and configured to receive raw image data from the image sensor, comprising:
an interpolation circuit configured to interpolate the received raw image data along each of a plurality of directions to generate a respective plurality of interpolated green channels for a non-green pixel of the raw image data for a direction of the plurality of directions:
generating a green value for the non-green pixel based upon one or more nearby green pixels of the raw image data selected based upon the direction;
generating a residual value based upon a correlation between values of one or more pixels of same color as the non-green pixel selected based upon the direction, and values of corresponding green pixels of the one or more nearby green pixels; and
modifying the green value for the non-green pixel based upon the generated residual value and a residual weight obtained based on a statistical correlation between the one or more nearby green pixels and the one or more pixels of the same color as the non-green pixel selected based upon the direction;

a weighted averaging circuit configured to aggregate the plurality of interpolated green channels to generate full-resolution green channel image data; and
a guided filter circuit configured to generate demosaiced image data based upon the full-resolution green channel image data.