Patent ID: 8861851

Claim:
A method for processing image data comprising pixel values for pixels defining an image, the method comprising: obtaining estimated hues for a plurality of the pixels in a saturated region within the image; and, based at least in part on the estimated hues, generating reconstructed pixel values to replace saturated pixel values for the plurality of pixels in the saturated region; wherein obtaining estimated hues comprises in-painting hues from a boundary of the saturated region; and, applying a 1-dimensional spatial filter along the boundary prior to in-painting the hues; wherein the 1-dimensional spatial filter weights contributions of pixels along the boundary according to proximity to a current pixel; and, wherein the 1-dimensional spatial filter weights contributions of pixels along the boundary such that for a current pixel having small pixel values, the proximity of other pixels along the boundary has less effect on the weighting of the other pixels as compared to the effect on the weighting of the other pixels for a current pixel having large pixel values.