IP Library › Granted Patent US 12,423,885
Granted Patent B2
US 12,423,885 · App. 17/924,305 · Granted Sep 23, 2025

Image processing method and electronic device

Inventors: Meng Jin (Shenzhen, CN); Tao Shao (Shenzhen, CN); Dongmiao Xi (Shenzhen, CN); Junqin Su (Shenzhen, CN); Yanlin Qian (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
G06T11/001G06F3/0481
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,423,885
App. No.
17/924,305
Granted
Sep 23, 2025
Kind
B2
Abstract

The image processing method includes: displaying a first screen, where the first screen includes a first control; detecting a first operation on the first control; determining a first mapping in a three-dimensional lookup table in response to the first operation, where the first mapping is corresponding to the first control; converting a to-be-processed image in a first color space into a first image in a second color space, where the to-be-processed image is an image obtained in the first color space; processing the first image according to the first mapping to obtain a second image; and converting the second image in the second color space into a third image in the first color space.

Claims (55)

1. An image processing method, applied to an electronic device, wherein the image processing method comprises:

displaying a first screen, wherein the first screen comprises a first control; when the first screen is a shooting screen, and a preview box including different image patterns displayed on the shooting screen, the first control is a control for indicating an image pattern in the preview box, wherein when the first screen is a setting screen, the first control is an AI movie color grading control;

detecting a first operation on the first control;

determining a first mapping in a three-dimensional lookup table in response to the first operation, wherein the first mapping is corresponding to the first control;

converting a to-be-processed image in a first color space into a first image in a second color space, wherein the to-be-processed image is an image obtained in the first color space, the first color space is a YUV color space, and a second color space is an RGB color space;

processing the first image in aspect of hue, saturation, and brightness according to the first mapping to obtain a second image; and

converting the second image in the second color space into a third image in the first color space.

2. The image processing method according to claim 1 , wherein the electronic device comprises a pre-stored three-dimensional lookup table, and the determining a first mapping in a three-dimensional lookup table comprises:

determining, according to an identifier of the first mapping, the first mapping from the pre-stored three-dimensional lookup table.

3. The image processing method according to claim 1 , wherein the converting a to-be-processed image in a first color space into a first image in a second color space comprises:

performing first processing on the to-be-processed image to obtain a first-processed image, wherein the first processing is adjusting an image width of the to-be-processed image; and

converting the first-processed image into the first image in the second color space.

4. The image processing method according to claim 1 , wherein the processing the first image according to the first mapping to obtain a second image comprises:

processing the first image according to the first mapping and a tetrahedron interpolation algorithm to obtain the second image.

5. The image processing method according to claim 4 , wherein the processing the first image according to the first mapping and a tetrahedron interpolation algorithm to obtain the second image comprises:

mapping each pixel in the first image according to the first mapping and the tetrahedron interpolation algorithm to obtain a target pixel; and

obtaining the second image based on the target pixels.

6. The image processing method according to claim 1 , further comprising:

performing second processing on the third image, wherein the second processing is adjusting an image width of the third image to be the same as the image width of the to-be-processed image.

7. The image processing method according to claim 1 , wherein the first control is a control that is used to indicate the first mapping in the three-dimensional lookup table.

8. The image processing method according to claim 1 , wherein the first control is a control that is used to indicate automatic identification of the first mapping in the three-dimensional lookup table.

9. The image processing method according to claim 1 , wherein the electronic device comprises a first processor and a second processor; wherein

the first processor is configured to obtain the to-be-processed image, and the second processor is configured to: convert the to-be-processed image in the first color space into the first image in the second color space, process the first image according to the first mapping to obtain the second image, and convert the second image in the second color space into the third image in the first color space.

10. The image processing method according to claim 9 , wherein the first processor is an image signal processor, and the second processor is a digital signal processor or a graphics processing unit.

11. An electronic device, for image processing, comprising:

at least one processor; and

one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the electronic device to:

display a first screen, wherein the first screen comprises a first control; when the first screen is a shooting screen, a preview box including different image patterns displayed on the shooting screen, the first control is a control for indicating an image pattern in the preview box, wherein when the first screen is a setting screen, the first control is an AI movie color grading control;

detect a first operation on the first control;

determine a first mapping in a three-dimensional lookup table in response to the first operation, wherein the first mapping is corresponding to the first control;

convert a to-be-processed image in a first color space into a first image in a second color space, wherein the to-be-processed image is an image obtained in the first color space, the first color space is a YUV color space and a second color space is an RGB color space;

process the first image in aspect of hue, saturation, and brightness according to the first mapping to obtain a second image; and

convert the second image in the second color space into a third image in the first color space.

12. The electronic device according to claim 11 , wherein the electronic device comprises a pre-stored three-dimensional lookup table, and the determine a first mapping in a three-dimensional lookup table comprises:

determine, according to an identifier of the first mapping, the first mapping from the pre-stored three-dimensional lookup table.

13. The electronic device according to claim 11 , wherein the convert a to-be-processed image in a first color space into a first image in a second color space comprises:

perform first processing on the to-be-processed image to obtain a first-processed image, wherein the first processing is adjusting an image width of the to-be-processed image; and

convert the first-processed image into the first image in the second color space.

14. The electronic device according to claim 11 , wherein the process the first image according to the first mapping to obtain a second image comprises:

process the first image according to the first mapping and a tetrahedron interpolation algorithm to obtain the second image.

15. The electronic device according to claim 14 , wherein the process the first image according to the first mapping and a tetrahedron interpolation algorithm to obtain the second image comprises:

map each pixel in the first image according to the first mapping and the tetrahedron interpolation algorithm to obtain a target pixel; and

obtain the second image based on the target pixels.

16. The electronic device according to claim 11 , wherein the programming instructions, when executed by the at least one processor, cause the electronic device to:

perform second processing on the third image, wherein the second processing is adjusting an image width of the third image to be the same as the image width of the to-be-processed image.

17. The electronic device according to claim 11 , wherein the first control is a control that is used to indicate the first mapping in the three-dimensional lookup table.

18. The electronic device according to claim 11 , wherein the first control is a control that is used to indicate automatic identification of the first mapping in the three-dimensional lookup table.

19. The electronic device according to claim 11 , wherein the electronic device comprises a first processor and a second processor; and wherein the first processor is configured to obtain the to-be-processed image, and the second processor is configured to: convert the to-be-processed image in the first color space into the first image in the second color space, process the first image according to the first mapping to obtain the second image, and convert the second image in the second color space into the third image in the first color space.

20. A computer program product comprising computer-executable instructions for storage on a non-transitory computer-readable medium that, when executed by a processor, cause electronic device to:

display a first screen, wherein the first screen comprises a first control; when the first screen is a shooting screen, a preview box including different image patterns displayed on the shooting screen, the first control is a control for indicating an image pattern in the preview box, wherein when the first screen is a setting screen, the first control is an AI movie color grading control;

detect a first operation on the first control;

determine a first mapping in a three-dimensional lookup table in response to the first operation, wherein the first mapping is corresponding to the first control;

convert a to-be-processed image in a first color space into a first image in a second color space, wherein the to-be-processed image is an image obtained in the first color space, the first color space is a YUV color space, and a second color space is an RGB color space;

process the first image in aspect of hue, saturation, and brightness according to the first mapping to obtain a second image; and

convert the second image in the second color space into a third image in the first color space.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 21, 2023
From: JIN, MENG; SHAO, TAO; XI, DONGMIAO; SU, JUNQIN; QIAN, YANLIN
To: HONOR DEVICE CO., LTD.
Reel/Frame 064338/0215 →
Priority Claims (1)
CN 202110915871.6 · Aug 10, 2021 · national
Continuity (1)
Related Publication 20250086851A1 · Mar 13, 2025
References Cited (20)
US 9571736B2 · Lee · 2017 [cited by examiner]
US 10445866B2 · Gao · 2019 [cited by applicant]
US 20100014131A1 · Cho · 2010 [cited by examiner]
US 20160247488A1 · McLin · 2016 [cited by examiner]
US 20170358063A1 · Chen et al. · 2017 [cited by applicant]
US 20190052790A1 · Kang et al. · 2019 [cited by applicant]
US 20200027386A1 · Wang et al. · 2020 [cited by applicant]
CN 106161990A · 2016 [cited by applicant]
CN 109167930A · 2019 [cited by applicant]
CN 109361867A · 2019 [cited by applicant]
CN 111416950A · 2020 [cited by applicant]
CN 113126939A · 2021 [cited by applicant]
CN 108701351B · 2022 [cited by applicant]
EP 4024389A1 · 2022 [cited by examiner]
JP 2016149047A · 2016 [cited by applicant]
JP 2020065220A · 2020 [cited by applicant]
WO WO2019061050A1 · 2019 [cited by examiner]
WO 2021052342A1 · 2021 [cited by applicant]
Fang-Ming et al., “Research on algorithms of color space conversion from YUV to RGB,” Modern Electronics Technique, Nov. 2012, 35(22):4 pages (with English abstract). [cited by applicant]
Qu et al., “A Color YUV Image Edge Detection Method Based on Histogram Equalization Transformation,” Paper, Presented at Proceedings of the 2010 Sixth International Conference on Natural Computation (ICNC 2010), Yantai,… [cited by applicant]