CPC H04N 1/608 (2013.01) [G06T 5/00 (2013.01); G06T 7/90 (2017.01); H04N 1/58 (2013.01); G06T 2207/10008 (2013.01)] | 18 Claims |
1. An image processing method, comprising:
acquiring a first color component value and a second color component value of each pixel of a to-be-processed image in a preset color space;
determining a color cast pixel according to the first color component value and the second color component value of each pixel, including:
according to first color component values and second color component values of all pixels in a preset neighboring area of a current pixel, calculating a first average value of the first color component values and a second average value of the second color component values of the preset neighboring area;
acquiring a correction parameter of the current pixel;
according to the correction parameter of the current pixel, the first average value, and the second average value, determining a first correction value of a first color component value and a second correction value of a second color component value of the current pixel, wherein for the current pixel, the first correction value equals the first average value divided by the correction parameter, and the second correction value equals the second average value divided by the correction parameter; and
performing pixel correction on each color cast pixel to obtain a corrected to-be-processed image.
|