| CPC G06T 5/40 (2013.01) [G06F 18/22 (2023.01); G06T 3/40 (2013.01); G06T 7/90 (2017.01); G06V 10/50 (2022.01); G06V 10/56 (2022.01); G06T 2207/10024 (2013.01)] | 20 Claims |

|
1. An image processing method performed by an electronic device, the method comprising:
obtaining, according to a quantity of pixels whose color feature values fall within color feature intervals in an original image, a first histogram corresponding to the original image;
obtaining, according to a quantity of pixels whose color feature values fall within the color feature intervals in an upsampled image of the original image, a second histogram corresponding to the upsampled image;
respectively determining, according to the first histogram and the second histogram, target color feature intervals matching the color feature intervals in the second histogram, wherein each target color feature interval is a color feature interval in the first histogram with a color feature distribution closest to a corresponding one of the color feature intervals in the second histogram; and
processing, according to the target color feature intervals matching the color feature intervals in the second histogram, the color feature values of the pixels falling within the corresponding color feature intervals in the upsampled image, to obtain a target image, wherein a color feature distribution in the target image corresponding to the upsampled image is consistent with the color feature distribution in the original image.
|