Patent ID: 8749668

Claim:
An adaptive pixel compensation method for an image processing device, the adaptive pixel compensation method comprising: receiving an image array data, the image array data comprising a plurality of alternately arranged first-type pixel rows and second-type pixel rows, each of the first-type pixel rows comprising a plurality of green sub-pixels and a plurality of red sub-pixels but no blue sub-pixels, and each of the second-type pixel rows comprising a plurality of green sub-pixels and a plurality of blue sub-pixels but no red sub-pixels; calculating an average luminance value of a first plurality of green sub-pixels surrounding a green sub-pixel in the image array data as a first average value, wherein the first plurality of green sub-pixels are located on at least one first-type pixel row; calculating an average luminance value of a second plurality of green sub-pixels surrounding the green sub-pixel in the image array data as a second average value, wherein the second plurality of green sub-pixels are located on at least one second-type pixel row; calculating an absolute difference value between the first average value and the second average value; calculating an average luminance gradient value between the green sub-pixel and a surrounding third plurality of green sub-pixels; and deciding whether to compensate the green sub-pixel according to a luminance value, the absolute difference value, and the average luminance gradient value of the green sub-pixel.