IP Library Granted Patent US 12,355,989
Granted Patent B2
US 12,355,989 · App. 17/970,684 · Granted Jul 8, 2025

Image encoding method and apparatus, and image decoding method and apparatus

Inventors: Yongbing Lin (Beijing, CN); Sha Ma (Beijing, CN)
Assignee: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
H04N19/186H04N19/176H04N19/184
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,355,989
App. No.
17/970,684
Granted
Jul 8, 2025
Kind
B2
Abstract

An image encoding method includes a color difference signal Cr corresponding to a first pixel and a color difference signal Cb corresponding to a second pixel that are determined based on a pixel value of the first pixel, a pixel value of the second pixel, and pixel values of a third pixel and a fourth pixel that are adjacent to the first pixel. Then, an average value Co of the color difference signal Cr corresponding to the first pixel and the color difference signal Cb corresponding to the second pixel, and a difference value Cg between the color difference signal Cr and the color difference signal Cb are determined.

Claims (41)

1. An image encoding method comprising:

obtaining, in a first image, each of a first pixel, a second pixel, a third pixel adjacent to the first pixel, and a fourth pixel adjacent to the first pixel;

determining, in the first image, a first color difference signal (Cr) corresponding to the first pixel based on a first pixel value of the first pixel, on a third pixel value of the third pixel, and on a fourth pixel value of the fourth pixel;

determining, in the first image, a second color difference signal (Cb) corresponding to the second pixel based on a second pixel value of the second pixel, on the third pixel value, and on the fourth pixel value, wherein color components of the third pixel and the fourth pixel are the same, and wherein color components of the first pixel, the second pixel, and the third pixel are different;

determining a first average value (Co) of Cr and the Cb and a first difference value (Cg) between the Cr and the Cb;

determining a second difference value (Dg) between the third pixel value and the fourth pixel value;

determining a second average value (Y) of the first pixel value, the second pixel value, the third pixel value, and the fourth pixel value; and

outputting the Dg, the Y, the Co, and the Cg.

2. The image encoding method of claim 1 , wherein determining the Cr comprises determining a third difference value between the first pixel value and a third average value (Ga) as the Cr, wherein the Ga is a value between the third pixel and the fourth pixel.

3. The image encoding method of claim 1 , wherein determining the Cb further comprises determining a third difference value between the second pixel value and a third average value (Ga) as the Cb, wherein the Cb is a value between the third pixel and the fourth pixel.

4. The image encoding method of claim 1 , wherein a color component of the first pixel is a first color component, wherein a color component of the second pixel is a second color component, and wherein the color components of the third pixel and the fourth pixel are third color components.

5. The image encoding method of claim 4 , wherein the first color component is a red component (R), wherein the second color component is a blue component (B), and wherein each of the third color components is a green component (G).

6. The image encoding method of claim 4 , wherein the first color component is a red component (R), wherein the second color component is a blue component (B), and wherein each of the third color components is a yellow component (Y′).

7. The image encoding method of claim 1 , wherein the first pixel, the second pixel, the third pixel, and the fourth pixel form a 2*2 image block in the first image.

8. An image decoding method comprising:

determining, in a first image, a first difference value between a first average value (Co) and half of a second difference value (Cg) as a first color difference signal (Cr) corresponding to a first pixel;

determining, in the first image, a sum of the Co and half of the Cg as a second color difference signal (Cb) corresponding to a second pixel, wherein the Co is an average of the Cr and the Cb, and wherein the Cg is a difference between the Cr and the Cb; and

determining a first pixel value of the first pixel, a second pixel value of the second pixel, a third pixel value of a third pixel, and a fourth pixel value of a fourth pixel based on the Cr and the Cb, on a third difference value (Dg) between the third pixel value and the fourth pixel value, and a second average value (Y) of the first pixel value, the second pixel value, on the third pixel value, and on the fourth pixel value,

wherein color components of the third pixel and the fourth pixel are the same, and

wherein color components of the first pixel, the second pixel, and the third pixel are different.

9. The image decoding method of claim 8 , wherein a color component of the first pixel is a first color component, wherein a color component of the second pixel is a second color component, and wherein color components of the third pixel and the fourth pixel are third color components.

10. The image decoding method of claim 9 , wherein the first color component is a red component (R), wherein the second color component is a blue component (B), and wherein each of the third color components is a green component (G).

11. The image decoding method of claim 9 , wherein the first color component is a red component (R), wherein the second color component is a blue component (B), and wherein each of the third color components is a yellow component (Y′).

12. The image decoding method of claim 8 , wherein the first pixel, the second pixel, the third pixel, and the fourth pixel form a 2*2 image block in the first image.

13. An apparatus comprising:

a memory configured to store instructions; and

a processor coupled to the memory and configured to execute the instructions to cause the apparatus to:

obtain, in a first image, each of a first pixel, a second pixel, a third pixel adjacent to the first pixel, and a fourth pixel adjacent to the first pixel;

determine, in the first image, a first color difference signal (Cr) corresponding to the first pixel based on a first pixel value of the first pixel, on a third pixel value of the third pixel, and on a fourth pixel value of the fourth pixel;

determine, in the first image, a first color difference signal (Cb) corresponding to the second pixel based on a second pixel value of the second pixel, on the third pixel value, and on the fourth pixel value, wherein color components of the third pixel and the fourth pixel are the same, and wherein color components of the first pixel, the second pixel, and the third pixel are different;

determine a first average value (Co) of the Cr and the Cb and a first difference value (Cg) between the Cr and the Cb;

determine a second difference value (Dg) between the third pixel value and the fourth pixel value;

determine a second average value (Y) of the first pixel value, the second pixel value, the third pixel value, and the fourth pixel value; and

output the Dg, the Y, the Co, and the Cg.

14. The apparatus of claim 13 , wherein the instructions, when executed by the processor, further cause the apparatus to determine a third difference value between the first pixel value and a third average value (Ga) as the Cr, wherein the Ga is a value between the third pixel and the fourth pixel.

15. The apparatus of claim 13 , wherein the instructions, when executed by the processor, further cause the apparatus to determine a third difference value between the second pixel value and a third average value (Ga) as the Cb, wherein the Ga is a value between the third pixel and the fourth pixel.

16. The apparatus of claim 13 , wherein a color component of the first pixel is a first color component, wherein a color component of the second pixel is a second color component, and wherein color components of the third pixel and the fourth pixel are third color components.

17. The apparatus of claim 16 , wherein the first color component is a red component (R), wherein the second color component is a blue component (B), and wherein each of the third color components is a green component (G).

18. The apparatus of claim 16 , wherein the first color component is a red component (R), wherein the second color component is a blue component (B), and wherein each of the third color components is a yellow component (Y′).

19. The apparatus of claim 13 , wherein the instructions, when executed the processor, further cause the apparatus to use the first pixel, the second pixel, the third pixel, and the fourth pixel to form a 2*2 image block in the first image.

20. The apparatus of claim 19 , wherein the third pixel and the fourth pixel are located in different rows and different columns of the 2*2 image block.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2024
From: HUAWEI TECHNOLOGIES CO., LTD.
To: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 069336/0082 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 1, 2023
From: LIN, YONGBING; MA, SHA
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 062559/0494 →
Continuity (2)
Continuation PCTCN2020086517 · Apr 23, 2020
Related Publication 20230061368A1 · Mar 2, 2023
References Cited (39)
US 8169490B2 · Kondo · 2012 [cited by examiner]
US 20040179743A1 · Shibata et al. · 2004 [cited by applicant]
US 20060083432A1 · Malvar · 2006 [cited by applicant]
US 20090160992A1 · Inaba et al. · 2009 [cited by applicant]
US 20100013757A1 · Ogikubo · 2010 [cited by examiner]
US 20110043671A1 · Yamaguchi et al. · 2011 [cited by applicant]
US 20110158521A1 · Park · 2011 [cited by examiner]
US 20120219216A1 · Sato · 2012 [cited by applicant]
US 20130100310A1 · Ebihara · 2013 [cited by examiner]
US 20130266219A1 · Kurita · 2013 [cited by examiner]
US 20130300893A1 · Takada · 2013 [cited by examiner]
US 20150381995A1 · Han et al. · 2015 [cited by applicant]
US 20160180807A1 · Chen et al. · 2016 [cited by applicant]
US 20160284105A1 · Dawood · 2016 [cited by examiner]
US 20170039682A1 · Oh · 2017 [cited by examiner]
US 20170118476A1 · Sakamoto · 2017 [cited by examiner]
US 20210005015A1 · Ghosh · 2021 [cited by examiner]
US 20210304445A1 · Yoo · 2021 [cited by examiner]
US 20210350505A1 · Lee · 2021 [cited by examiner]
CN 1299560A · 2001 [cited by applicant]
CN 101472048A · 2009 [cited by applicant]
CN 101656889A · 2010 [cited by applicant]
CN 101998127A · 2011 [cited by applicant]
CN 102577388A · 2012 [cited by applicant]
CN 102800110A · 2012 [cited by applicant]
CN 102905083A · 2013 [cited by applicant]
CN 103313066A · 2013 [cited by applicant]
CN 103348675A · 2013 [cited by applicant]
CN 105635700A · 2016 [cited by applicant]
CN 105741327A · 2016 [cited by applicant]
CN 110163149A · 2019 [cited by applicant]
WO 2007044953A2 · 2007 [cited by applicant]
WO 2020043279A1 · 2020 [cited by applicant]
Chen Yu-tuo et al.,“Color Image Coding Based on Chromatism Analysis and JPEG2000”, Journal of Chinese Computer Systems, vol. 28, No. 6, 2007, with an English abstract, 7 pages. [cited by applicant]
ITU-T H.264, Series H: Audiovisual and Multimedia Systems; Infrastructure of audiovisual services Coding of moving video; Advanced video coding for generic audiovisual services, Jun. 2019, 836 pages. [cited by applicant]
ITU-T H.265, Series H: Audiovisual and Multimedia Systems; Infrastructure of audiovisual services Coding of moving video; High efficiency video coding, Nov. 2019, 712 pages. [cited by applicant]
Suzuki Taizo: “Wavelet-Based Spectral-Spatial Transforms for CFA-Sampled Raw Camera Image Compression”, IEEE Transactions on Image Processing, vol. 29, Jul. 17, 2019, pp. 433-444, XP011747605, 12 pages. [cited by applicant]
Henrique S Malvar et al: “Progressive-to-Lossless Compression of Color-Filter-ArrayImages Using Macropixel Spectral-Spatial Transformation”, Data Compression Conference (DCC), 2012, IEEE, Apr. 10, 2012, pp. 3-12, XP0321… [cited by applicant]
Richter Thomas et al: “Bayer Pattern Compression with JPEG XS”, 2019 IEEE International Conference on Image Processing (ICIP), IEEE, Sep. 22, 2019, pp. 3177-3181, XP033647333, 5 pages. [cited by applicant]