| CPC H04N 9/646 (2013.01) [G06T 7/0002 (2013.01); G06T 7/90 (2017.01); G06T 2207/10024 (2013.01); G06T 2207/30168 (2013.01)] | 17 Claims |

|
1. A method, comprising:
identifying a color channel of an image pixel in a frame;
identifying a threshold function based on the color channel;
identifying one or more nearest-neighboring image pixels with respect to the image pixels, in which the nearest-neighboring image pixels are of the color channel of the image pixel;
applying the threshold function to the one or more nearest-neighbor image pixel values to obtain a threshold value; and
determining whether a corresponding sensor pixel is defective based on a comparison of the image pixel to the threshold value
wherein the identifying of the threshold function further includes identifying an offset pattern of the one or more nearest-neighboring image pixels specific to a subset of color channels to which the image pixel and the one or more nearest-neighboring pixels belong.
|