CN109685859B - Three-dimensional color automatic adjustment method based on 3D lookup table - Google Patents

Three-dimensional color automatic adjustment method based on 3D lookup table Download PDF

Info

Publication number
CN109685859B
CN109685859B CN201811585234.1A CN201811585234A CN109685859B CN 109685859 B CN109685859 B CN 109685859B CN 201811585234 A CN201811585234 A CN 201811585234A CN 109685859 B CN109685859 B CN 109685859B
Authority
CN
China
Prior art keywords
lookup table
color
ictcp
color space
adjustment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201811585234.1A
Other languages
Chinese (zh)
Other versions
CN109685859A (en
Inventor
吴爱国
戚文念
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Graduate School Harbin Institute of Technology
Original Assignee
Shenzhen Graduate School Harbin Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Graduate School Harbin Institute of Technology filed Critical Shenzhen Graduate School Harbin Institute of Technology
Priority to CN201811585234.1A priority Critical patent/CN109685859B/en
Publication of CN109685859A publication Critical patent/CN109685859A/en
Application granted granted Critical
Publication of CN109685859B publication Critical patent/CN109685859B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Image Generation (AREA)

Abstract

The invention provides a three-dimensional color automatic adjustment method based on a 3D lookup table, which comprises the following steps: s1, converting the RGB color space into ICtCp color space, and converting the original RGB color space into the ICtCp color space; and S2, performing color adjustment in the ICtCp color space, and performing color adjustment on brightness and color according to the 3D lookup table aiming at the pixel value of each pixel point of each frame image in the ICtCp color space. The invention has the beneficial effects that: three-dimensional color auto-adjustment of the ICtCp video signal format is achieved.

Description

Three-dimensional color automatic adjustment method based on 3D lookup table
Technical Field
The invention relates to video image processing, in particular to a three-dimensional color automatic adjusting method based on a 3D lookup table.
Background
In the middle of life, large display devices such as liquid crystal televisions, computer screens and projectors which are large to an increasingly large size, small display devices such as smart phones, handheld games and digital cameras, and color displays are closely related to the life of people. Taking a large lcd television as an example, the existing lcd television can not only display color images, but also adjust colors according to the user's preference, thereby improving the viewing experience of the user.
Every revolution in the video field from black and white to color, from analog to digital, is an all-round technical upgrade of the entire ecological chain. In recent years, the high dynamic range has received wide attention from the industry, and manufacturers in different links are actively working for laying out the next generation of video systems, and are facing further upgrading and updating as the video signal standard carrying the complete industry chain. The new generation video signal ICtCp breaks through the bottleneck of the existing signal format in technical reliability and accuracy, and is expected to become the next generation video signal standard. Therefore, in the context of the new generation video signal ICtCp, how to perform color adjustment is a meaningful and to be solved problem.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a three-dimensional color automatic adjustment method based on a 3D lookup table.
The invention provides a three-dimensional color automatic adjustment method based on a 3D lookup table, which comprises the following steps:
s1, converting the RGB color space into ICtCp color space, and converting the original RGB color space into the ICtCp color space;
and S2, performing color adjustment in the ICtCp color space, and performing color adjustment on brightness and color according to the 3D lookup table aiming at the pixel value of each pixel point of each frame image in the ICtCp color space.
As a further improvement of the present invention, in step S1, the specific adjustment values of the brightness and color are obtained by performing trilinear interpolation according to a 3D lookup table.
As a further improvement of the present invention, step S1 includes the following sub-steps:
s11, starting;
s12, updating the frame, reading the current frame data, and preprocessing the data;
s13, updating the pixel points, and reading the current pixel value of the current frame;
s14, converting the RGB pixels into ICtCp values.
As a further improvement of the present invention, step S2 includes the following sub-steps:
s21, performing trilinear interpolation operation according to the data in the 3D lookup table, and calculating a color adjustment value corresponding to the current pixel;
s22, performing color adjustment according to the current pixel ICtCp value and the calculated color adjustment value to obtain a pixel value after color adjustment;
s23, judging whether the current frame has unprocessed pixels, if yes, returning to the step S13, and if not, entering the next step;
s24, judging whether there is unprocessed frame, if yes, returning to step S12, if not, ending.
As a further improvement of the invention, the 3D lookup table comprises an I lookup table, a Ct lookup table and a Cp lookup table, wherein the I lookup table, the Ct lookup table and the Cp lookup table respectively comprise an I dimension, a Ct dimension and a Cp dimension.
The invention has the beneficial effects that: by the scheme, the three-dimensional color automatic adjustment of the ICtCp video signal format is realized.
Drawings
Fig. 1 is an algorithm schematic diagram of a three-dimensional color automatic adjustment method based on a 3D lookup table according to the present invention.
Fig. 2 is a schematic diagram of a 3D lookup table of a three-dimensional color automatic adjustment method based on the 3D lookup table according to the present invention.
Fig. 3 is a schematic diagram of tri-linear interpolation of the three-dimensional color automatic adjustment method based on the 3D lookup table according to the present invention.
Fig. 4 is a flowchart of a three-dimensional color automatic adjustment method based on a 3D lookup table according to the present invention.
Detailed Description
The invention is further described with reference to the following description and embodiments in conjunction with the accompanying drawings.
As shown in fig. 1 to 4, a three-dimensional color automatic adjustment method based on a 3D lookup table first converts an original RGB color space into an ICtCp color space, and performs color adjustment of brightness and color according to the 3D lookup table for pixel values of each pixel point of each frame of image in the ICtCp color space. Wherein, the specific adjustment values of the brightness and the color are obtained by carrying out trilinear interpolation according to a 3D lookup table.
ICtCp is a new video signal format that separates the picture luminance signal from the color signal, where I represents the luminance intensity after encoding, i.e., a black and white signal; ct represents blue-yellow axis chrominance signals, Cp represents red-green axis chrominance signals, and CtCp forms a complete color picture after combination.
Compared with the traditional YCbCr, the ICtCp has a hue shift angle smaller than that of the YCbCr on the whole, and has excellent performance in important areas such as blue, skin color and the like. Secondly, the color linearity and the tone consistency of the ICtCp signal are better than those of YCbCr.
And reading current frame data, performing data preprocessing, and converting the RGB pixel value of the current pixel point into an ICtCp value. The formula for the conversion from RGB space to ICtCp space is as follows:
Figure GDA0002635336660000041
Figure GDA0002635336660000042
Figure GDA0002635336660000043
wherein,
Figure GDA0002635336660000044
y=x/10000,m1=2610/16384 m2=128×2523/4096,c1=3424/4096,c2=32×2413/4096,c3=32×2392/4096。
the color adjustment in ICtCp space is as follows:
and mapping the pixel values (I, Ct, Cp) of each pixel point of the image in the ICtCp color space to new pixel values (I ', Ct ', Cp ') one by a 3D lookup table method, wherein the new pixel values are the pixel values after color adjustment. The 3D lookup tables are an I lookup table, a Ct lookup table, and a Cp lookup table, respectively. Each having I, Ct, and Cp dimensions. In this way, a three-dimensional mapping can be achieved. Taking 8bits data as an example, the values of the sub-pixel values I, Ct, Cp of the original pixel are all 0-255, and each pixel has 256 × 256 possible situations, each of which corresponds to a three-dimensional color adjustment value (Δ I, Δ Ct, Δ Cp). The look-up table size for the 8bits case is 256 x 3. The adjusted pixel values are:
(I’,Ct’,Cp’)=(I,Ct,Cp)+(ΔI,ΔCt,ΔCp)
so theoretically, as long as the scale of the lookup table is dense enough and the accuracy of the numerical value is large enough, we can convert any original color into any target color. But the 3D lookup table in this case would be large and consume memory space. The data storage amount of the 3D lookup table is reduced using the trilinear interpolation method here.
The 3D lookup table is illustrated as follows:
taking 8bits data as an example, 0-255 are divided, and nine typical gray levels of 0, 16, 32, 64, 128, 160, 192, 224 and 255 are selected. The resulting 3D lookup table of size 9 × 9 × 9 × 3 is shown in fig. 2. The 3D lookup table has 3 dimensions, 9 × 9 × 9 sampling points, and for writing convenience, nine typical gray levels 0, 16, 32, 64, 128, 160, 192, 224, and 255 are respectively corresponding to integers of 0-8The number and the three dimensions are respectively corresponding to i, j and k. Each representative gray point stores a corresponding color adjustment value (Δ I)i,j,k,ΔCti,j,k,ΔCpi,j,k)。
The trilinear interpolation calculates the target color adjustment value as follows:
taking 8bits data as an example, if the original sub-pixel values are just all the selected typical gray levels 0, 16, 32, 64, 128, 160, 192, 224, 255, the target color adjustment value (Δ I, Δ Ct, Δ Cp) is the color adjustment value (Δ I) corresponding to the 3D lookup tablei,j,k,ΔCti,j,k,ΔCpi,j,k)。
And if the original sub-pixel value is not the selected typical gray level, calculating the target color adjustment value (delta I, delta Ct, delta Cp) by a trilinear interpolation method. The specific way is shown in figure 1:
assuming that the original pixel value is (I, Ct, Cp), I equals I/32, j equals Ct/32, and k equals Cp/32. Where "/" denotes a quotient calculation. Thereby obtaining 8 points P0,0,0,P0,0,1,P0,1,0,P0,1,1,P1,0,0,P1,0,1,P1,1,0,P1,1,1Is defined as:
P0,0,0=(ΔIi,j,k,ΔCti,j,k,ΔCpi,j,k),P0,0,1=(ΔIi,j,k+1,ΔCti,j,k+1,ΔCpi,j,k+1)
P0,1,0=(ΔIi,j+1,k,ΔCti,j+1,k,ΔCpi,j+1,k),P0,1,1=(ΔIi,j+1,k+1,ΔCti,j+1,k+1,ΔCpi,j+1,k+1)
P1,0,0=(ΔIi+1,j,k,ΔCti+1,j,k,ΔCpi,j,k),P1,0,1=(ΔIi+1,j,k+1,ΔCti,j,k+1,ΔCpi,j,k+1)
P1,1,0=(ΔIi+1,j+1,k,ΔCti,j+1,k,ΔCpi,j+1,k),P1,1,1=(ΔIi=1,j+1,k+1,ΔCti,j+1,k+1,ΔCpi,j+1,k+1)
note P0,0,P0,1,P1,0,P1,1The coordinates of (a) are:
P0,0=(ΔI0,0,ΔCt0,0,ΔCp0,0),P0,1=(ΔI0,1,ΔCt0,1,ΔCp0,1),
P1,0=(ΔI1,0,ΔCt1,0,ΔCp1,0),P1,1=(ΔI1,1,ΔCt1,1,ΔCp1,1),
the specific value for each coordinate can be calculated by the following formula, where mod represents the remainder operation.
Figure GDA0002635336660000061
Figure GDA0002635336660000062
Figure GDA0002635336660000063
Figure GDA0002635336660000064
Note P0,P1Respectively is (Δ I)0,ΔCt0,ΔCp0),(ΔI1,ΔCt1,ΔCp1) Then the specific value of each coordinate can be calculated by the following formula
Figure GDA0002635336660000065
Figure GDA0002635336660000066
From P0,P1The point coordinates may calculate a target color adjustment value (Δ I, Δ Ct, Δ Cp)
Figure GDA0002635336660000067
Figure GDA0002635336660000068
Figure GDA0002635336660000069
The adjusted pixel values are:
(I’,Ct’,Cp’)=(I,Ct,Cp)+(ΔI,ΔCt,ΔCp)
and repeating the operation until all the pixels of all the frames are processed.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (2)

1. A three-dimensional color automatic adjustment method based on a 3D lookup table is characterized by comprising the following steps:
s1, converting the RGB color space into ICtCp color space, and converting the original RGB color space into the ICtCp color space;
s2, color adjustment is carried out in the ICtCp color space, and brightness and color adjustment is carried out according to the 3D lookup table aiming at the pixel value of each pixel point of each frame image in the ICtCp color space;
in step S1, the specific adjustment values of the brightness and color are obtained by performing trilinear interpolation according to the 3D lookup table;
step S1 includes the following substeps:
s11, starting;
s12, updating the frame, reading the current frame data, and preprocessing the data;
s13, updating the pixel points, and reading the current pixel value of the current frame;
s14, converting the RGB pixels into ICtCp values;
step S2 includes the following substeps:
s21, performing trilinear interpolation operation according to the data in the 3D lookup table, and calculating a color adjustment value corresponding to the current pixel;
s22, performing color adjustment according to the current pixel ICtCp value and the calculated color adjustment value to obtain a pixel value after color adjustment;
s23, judging whether the current frame has unprocessed pixels, if yes, returning to the step S13, and if not, entering the next step;
s24, judging whether there is unprocessed frame, if yes, returning to step S12, if not, ending.
2. The method of claim 1, wherein the method comprises: the 3D lookup table comprises an I lookup table, a Ct lookup table and a Cp lookup table, wherein the I lookup table, the Ct lookup table and the Cp lookup table respectively comprise an I dimension, a Ct dimension and a Cp dimension.
CN201811585234.1A 2018-12-24 2018-12-24 Three-dimensional color automatic adjustment method based on 3D lookup table Expired - Fee Related CN109685859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811585234.1A CN109685859B (en) 2018-12-24 2018-12-24 Three-dimensional color automatic adjustment method based on 3D lookup table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811585234.1A CN109685859B (en) 2018-12-24 2018-12-24 Three-dimensional color automatic adjustment method based on 3D lookup table

Publications (2)

Publication Number Publication Date
CN109685859A CN109685859A (en) 2019-04-26
CN109685859B true CN109685859B (en) 2021-06-08

Family

ID=66188158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811585234.1A Expired - Fee Related CN109685859B (en) 2018-12-24 2018-12-24 Three-dimensional color automatic adjustment method based on 3D lookup table

Country Status (1)

Country Link
CN (1) CN109685859B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874410A (en) * 2005-06-01 2006-12-06 索尼公司 Imaging device and method for processing imaging result in imaging device
CN107925770A (en) * 2015-08-04 2018-04-17 杜比实验室特许公司 Signal shaping for high dynamic range signal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008085980A (en) * 2006-08-31 2008-04-10 Sony Corp Color conversion device, emulation method, formation method of three-dimension lookup table, and image processor
US9948916B2 (en) * 2013-10-14 2018-04-17 Qualcomm Incorporated Three-dimensional lookup table based color gamut scalability in multi-layer video coding
US9756337B2 (en) * 2013-12-17 2017-09-05 Qualcomm Incorporated Signaling color values for 3D lookup table for color gamut scalability in multi-layer video coding
MX368598B (en) * 2015-05-20 2019-10-08 Ericsson Telefon Ab L M Pixel processing and encoding.
US10477212B2 (en) * 2016-10-11 2019-11-12 Dolby Laboratories Licensing Corporation Adaptive chroma quantization in video coding for multiple color imaging formats

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874410A (en) * 2005-06-01 2006-12-06 索尼公司 Imaging device and method for processing imaging result in imaging device
CN107925770A (en) * 2015-08-04 2018-04-17 杜比实验室特许公司 Signal shaping for high dynamic range signal

Also Published As

Publication number Publication date
CN109685859A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
KR100843089B1 (en) Apparatus and method for improving visibility for images
KR20190055289A (en) Method of converting color gamut and display device employing the same
US9196204B2 (en) Image processing apparatus and image processing method
KR101927968B1 (en) METHOD AND DEVICE FOR DISPLAYING IMAGE BASED ON METADATA, AND RECORDING MEDIUM THEREFOR
US9324283B2 (en) Display device, driving method of display device, and electronic apparatus
JP2015141333A (en) Image processing apparatus, image processing method, display device, display device control method, and program
US8467604B2 (en) Color enhancement
US8860745B2 (en) System and method for color gamut mapping
WO2021073304A1 (en) Image processing method and apparatus
CN113763878B (en) Display compensation method and device of display screen and display device
JP5387713B2 (en) Image adjustment apparatus, image adjustment system, and program
CN115801969A (en) Video data processing method, video display method and device, electronic equipment and readable storage medium
WO2022120799A9 (en) Image processing method and apparatus, electronic device, and storage medium
JP2002278500A (en) Device and method for displaying image
JP2018509835A (en) Adaptive color grade interpolation method and device
CN109685859B (en) Three-dimensional color automatic adjustment method based on 3D lookup table
CN116489377A (en) Image processing method and electronic device
CN113870756A (en) Correction method, system and device of display equipment
CN115761015A (en) Tone mapping method, device and related equipment
CN114999414A (en) Display compensation method, computer device, and medium
JP2007324665A (en) Image correction apparatus and video display apparatus
Wen Color management for future video Systems
CN115457920A (en) Image processing method, device and equipment
CN118429446A (en) Hue adjustment method and device, electronic equipment and medium
US8571310B2 (en) Creating a luminance effect using an ICC profile

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210608

CF01 Termination of patent right due to non-payment of annual fee