US 12,260,521 B2
Image processing method and apparatus, electronic device, and storage medium
Zhicheng Li, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by Tencent Technology (Shenzhen) Company Limited, Shenzhen (CN)
Filed on Jan. 11, 2022, as Appl. No. 17/573,491.
Application 17/573,491 is a continuation of application No. PCT/CN2020/122203, filed on Oct. 20, 2020.
Claims priority of application No. 202010038997.5 (CN), filed on Jan. 14, 2020.
Prior Publication US 2022/0138920 A1, May 5, 2022
Int. Cl. G06T 5/40 (2006.01); G06F 18/22 (2023.01); G06T 3/40 (2024.01); G06T 7/90 (2017.01); G06V 10/50 (2022.01); G06V 10/56 (2022.01)
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
OG exemplary drawing
 
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.