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

Claim 0:
1. An apparatus for demosaicing image data, comprising:
an interpolation circuit configured to interpolate 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 nearby the non-green pixel, 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;

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.