CN107222733B - Color gamut conversion method and device - Google Patents

Color gamut conversion method and device Download PDF

Info

Publication number
CN107222733B
CN107222733B CN201710563992.2A CN201710563992A CN107222733B CN 107222733 B CN107222733 B CN 107222733B CN 201710563992 A CN201710563992 A CN 201710563992A CN 107222733 B CN107222733 B CN 107222733B
Authority
CN
China
Prior art keywords
coordinate
signal
rgb
standard test
standard
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.)
Active
Application number
CN201710563992.2A
Other languages
Chinese (zh)
Other versions
CN107222733A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201710563992.2A priority Critical patent/CN107222733B/en
Publication of CN107222733A publication Critical patent/CN107222733A/en
Application granted granted Critical
Publication of CN107222733B publication Critical patent/CN107222733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Color Image Communication Systems (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention discloses a color gamut conversion method and a device, wherein the method comprises the following steps: converting the standard test signal into a display device RGB signal according to a space conversion matrix calculated according to the original coordinates; searching result coordinates corresponding to the RGB signals of the display equipment, and acquiring target coordinates to be displayed of the standard test signals on the display screen; judging whether the difference value between the result coordinate and the target coordinate is greater than a preset error or not; and if the difference value is larger than the preset error, adjusting the original coordinate, and converting the standard test signal into a new display device RGB signal according to a space conversion matrix calculated according to the adjusted original coordinate until the difference value between the result coordinate corresponding to the new display device RGB signal and the target coordinate is smaller than or equal to the preset error. The method not only considers the problem of over-range signals and avoids the limitation of system byte bits, but also has small error between the actual coordinates after color gamut conversion and the information source coordinates and high precision, and can eliminate the problem of color distortion.

Description

Color gamut conversion method and device
Technical Field
The present invention relates to the field of color gamut mapping technologies, and in particular, to a color gamut conversion method and device.
Background
In recent years, high-color-gamut televisions have rapidly occupied the position of various large-television brand flagship products, and the high-color-gamut televisions are a bright spot for television exhibition, whether on World-level CES (International Consumer Electronics Show, International Consumer Electronics exhibition) Consumer Electronics exhibition or on domestic largest AWE (application & Electronics World exhibition, chinese home appliances and Consumer Electronics exposition) home appliances exhibition. Currently, the color gamut of display devices such as high-color-gamut televisions has reached or exceeded 100% NTSC (National Television Standards Committee). However, since most of the signal sources are still manufactured according to the bt.709 standard or the bt.2020 standard, for example, the color gamut of the signal source manufactured according to the bt.709 standard is 72% NTSC, the signal source is not matched with the color gamut of the display device, and if the color gamut mapping process is not performed, the problems of partial color hue distortion and excessive color saturation may occur, and therefore, the problems need to be improved through the color gamut mapping.
Taking bt.709 standard source as an example, if the source is YCbCr signal, the mainstream mapping scheme of the display device chip is shown in fig. 1: a YCbCr signal receiving module receives a source YCbCr signal; the YCbCr decoding module converts the YCbCr signals into source RGB signals; the GAMMA matching module is used for carrying out GAMMA matching on the RGB signals of the information source and the information source; the color gamut conversion module converts the GAMMA-matched information source RGB signals into display equipment RGB signals to achieve the purpose of color gamut conversion between the information source and the display equipment; the compression/clipping module compresses or clips the out-of-range signal in the RGB signal of the display device to make the out-of-range signal meet the signal transmission standard. The color gamut conversion of the source and the display device comprises two steps: the RGB-to-standard space sub-module converts the acquired source RGB signals matched with GMAMMA into standard space signals, and the calculation method comprises the following steps: the converted standard space signal is the product of the RGB value of the source RGB signal after GAMMA matching and the product of the BT.709 standard source and the standard space conversion matrix; the standard space RGB conversion submodule converts the standard space signal into a display device RGB signal, and the calculation method comprises the following steps: the display device RGB signal is the product of the standard space and the display device RGB color space conversion matrix and the converted standard space signal RGB values. After the color gamut conversion of the display device chip is finished, the compressed/cut display device RGB signals are sent to a TCON (time sequence controller) of the display screen, the TCON processes the compressed/cut display device RGB signals to obtain RGB signals output to the display screen, and the RGB signals finally present a display result on the display screen through an optical device of the display screen.
However, in the color gamut conversion process, the process of converting the standard space signal into the RGB signal of the display device is usually obtained by matrix calculation, and since the problem of over-range signals cannot be considered in the matrix calculation process, and the restriction of the number of bytes of the system is added, the number of bits reserved for the decimal of the matrix calculation result is limited, which results in large error and insufficient precision, and the problem of color distortion cannot be solved.
Disclosure of Invention
To overcome the problems in the related art, the present invention provides a color gamut conversion method and apparatus.
According to a first aspect of embodiments of the present invention, there is provided a color gamut conversion method, the method comprising:
converting the standard test signal into a display device RGB signal according to a space conversion matrix calculated according to the original coordinates;
searching result coordinates corresponding to the RGB signals of the display equipment, and acquiring target coordinates to be displayed of the standard test signals on a display screen;
judging whether the difference value between the result coordinate and the target coordinate is greater than a preset error or not;
and if the difference is larger than the preset error, adjusting the original coordinate, and converting the standard test signal into a new display device RGB signal according to a space conversion matrix calculated according to the adjusted original coordinate until the difference between the result coordinate corresponding to the new display device RGB signal and the target coordinate is smaller than or equal to the preset error.
According to a second aspect of embodiments of the present invention, there is provided a color gamut conversion device including:
the standard test signal conversion module is used for converting the standard test signal into a display equipment RGB signal according to a space conversion matrix calculated according to the original coordinate;
the result coordinate and target coordinate acquisition module is used for searching a result coordinate corresponding to the RGB signal of the display equipment and acquiring a target coordinate to be displayed on a display screen by the standard test signal;
the judging module is used for judging whether the difference value between the result coordinate and the target coordinate is greater than a preset error or not;
and the coordinate adjusting module is used for adjusting the original coordinate if the difference value is larger than the preset error, and converting the standard test signal into a new display device RGB signal according to a space conversion matrix calculated according to the adjusted original coordinate until the difference value between the result coordinate corresponding to the new display device RGB signal and the target coordinate is smaller than or equal to the preset error.
It can be seen from the above technical solutions that, embodiments of the present invention provide a color gamut conversion method and apparatus, where a new spatial conversion matrix is obtained by adjusting an original coordinate of a display device, a standard test signal is converted into a display device RGB signal according to the new spatial conversion matrix, a result coordinate displayed on a display screen corresponding to the display device RGB signal converted by the standard test signal is compared with a target coordinate to be displayed on the display screen of the standard test signal, and a difference between the result coordinate obtained after color gamut conversion and the target coordinate is smaller than or equal to a preset error, so as to obtain a display result of the standard test signal on the display screen. According to the method, a standard test signal and a target coordinate to be displayed on a display screen are used for correcting a display device coordinate needed by a space conversion matrix, the space conversion matrix is corrected according to the corrected display device coordinate, the standard test signal and an information source signal are subjected to color gamut conversion according to the corrected space conversion matrix, and the difference value between a display result obtained on the display screen after the color gamut conversion and the target coordinate is smaller than or equal to a preset error. The difference value between the display result after the color gamut conversion and the target coordinate is within the preset error range by continuously adjusting and correcting the spatial conversion matrix, so that the problem of over-range signals is considered, the limitation of the byte number of a system is avoided, the error between the actual coordinate displayed on the display screen after the color gamut conversion and the information source coordinate is small, the precision is high, and the problem of color distortion can be solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any inventive exercise.
Fig. 1 is a schematic diagram of a mainstream mapping process of a main chip of a display device according to the prior art;
fig. 2 is a schematic flowchart of a color gamut conversion method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for adjusting original coordinates according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for calculating an adjusted original coordinate according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another color gamut conversion method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of another color gamut conversion method according to an embodiment of the present invention;
fig. 7 is a schematic flow chart of a method for searching an adjusted RGB original coordinate corresponding to an information source signal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a color gamut conversion device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a coordinate adjustment module according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an original coordinate adjustment unit according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another color gamut conversion device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of another color gamut conversion device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a second source conversion module according to an embodiment of the present invention.
Detailed Description
The color gamut conversion method provided by the embodiment of the invention is used for a display device chip debugging stage before the display device such as a high color gamut television receives the information source signal. By the method, the coordinates of the display equipment are adjusted, the standard test signals are subjected to color gamut conversion according to the space conversion matrix calculated by the adjusted original coordinates to obtain the RGB signals of the display equipment, and finally, the error between the result displayed on the display screen and the target coordinates is smaller than or equal to the preset error range. The color gamut conversion method provided by the embodiment of the invention is described in detail below by taking a high color gamut television as an example.
An embodiment of the present invention provides a color gamut conversion method, as shown in fig. 2, including:
step S100: the standard test signals are converted into display device RGB signals according to a spatial transformation matrix calculated from the original coordinates.
The space conversion matrix is a standard space and display equipment RGB color space conversion matrix calculated by taking the display equipment coordinates as the original coordinates.
In a specific implementation process, the television chip can send out a standard test signal, wherein the standard test signal, taking a bt.709 standard signal source as an example, comprises a bt.709 standard R test signal, a bt.709 standard G test signal and a bt.709 standard B test signal; taking the bt.2020 standard signal source as an example, the bt.2020 standard R test signal, the bt.2020 standard G test signal, and the bt.2020 standard B test signal are included.
Taking bt.709 standard R test signal as an example of a source signal, bt.709 standard R test signal is YCbCr signal. A YCbCr signal receiving module of the television chip receives a BT.709 standard R test signal; the YCbCr decoding module converts the BT.709 standard R test signal into an information source RGB signal; GAMMA matching module carries out GAMMA matching on the RGB signal of the information source and the BT.709 standard R test signal; and the color gamut conversion module converts the source RGB signals of the BT.709 standard R test signals after GAMMA matching into display equipment RGB signals.
The color gamut conversion of the source and the display device comprises two steps: the RGB-to-XYZ sub-module converts the source RGB signal of the BT.709 standard R test signal after GMAMMA matching into an XYZ standard space signal, and the calculation method is as follows:
Figure BDA0001347814420000041
wherein the content of the first and second substances,
Figure BDA0001347814420000042
a source RGB signal which is the bt.709 standard R test signal,
Figure BDA0001347814420000043
as the XYZ standard spatial signal, the spatial signal,
Figure BDA0001347814420000044
is a conversion matrix of the BT.709 standard source color space and the XYZ standard space.
After converting the source RGB signal of the BT.709 standard R test signal after GAMMA matching into XYZ standard space signal, when the coordinate of the display device is the original coordinate, calculating a space conversion matrix, wherein the space conversion matrix is a standard space and display device RGB color space conversion matrix calculated by the coordinate of the display device as the original coordinate, and the calculation method of the standard space and display device RGB color space conversion matrix is as follows:
Figure BDA0001347814420000045
wherein the content of the first and second substances,
Figure BDA0001347814420000046
a standard space and display device RGB color space conversion matrix,
Figure BDA0001347814420000047
is an XYZ matrix of display device coordinate transformations,
Figure BDA0001347814420000048
is the inverse of the XYZ matrix of the source coordinate transformation,
Figure BDA0001347814420000049
is the inverse of the transformation matrix of the bt.709 standard source color space and the XYZ standard space.
The method for converting the coordinates of the display device into an XYZ matrix comprises the following steps: such as display device coordinates of (x)Rd,yRd) According to the formula zRd=1-xRd-yRdAnd an
Figure BDA00013478144200000410
And
Figure BDA00013478144200000411
respectively calculate XRd、YRdAnd ZRdSince the R test signal of the BT.709 standard is R primary color, X, Y, Z corresponding to G and B are both 0, namely XGd、YGd、ZGd、XBd、YBdAnd ZBdAll are 0, adding XRd、YRd、ZRd、XGd、YGd、ZGd、XBd、YBdAnd ZBdFilling the matrix with values of
Figure BDA0001347814420000051
Thus obtaining the XYZ matrix of the BT.709 standard R test signal display device coordinate transformation.
Since the spatial transformation matrix is a transformation matrix of the standard space and the RGB color space of the display device calculated from the coordinates of the display device as the original coordinates, here,
Figure BDA0001347814420000052
the XYZ matrix for the original coordinate transformation should be, for example: the display device coordinates when calculating the conversion matrix of the XYZ standard space and the display device RGB color space adopt original coordinates (0.681192, 0.30539), the original coordinates are converted into an XYZ matrix by the method of converting the display device coordinates into an XYZ matrix, and the matrix is multiplied by an XYZ matrix of BT.709 standard R test signal conversion and an inverse matrix of the conversion matrix of BT.709 standard source color space and the XYZ standard space, namely, a space conversion matrix is obtained
Figure BDA0001347814420000053
Then, according to the formula
Figure BDA0001347814420000054
The XYZ standard spatial signal of the bt.709 standard R test signal is converted into a display device RGB signal, wherein,
Figure BDA0001347814420000055
to the bt.709 standard transformed according to a spatial transformation matrixR test signal.
When the BT.709 standard R test signal is converted into the RGB signal of the display device, after the signal is compressed/cut, the television chip can capture the RGB signal (X) of the display device converted by the BT.709 standard R test signal according to the space conversion matrix0,Y0,Z0),(X0,Y0,Z0) I.e. the output of the television chip in this step.
Step S200: and searching result coordinates corresponding to the RGB signals of the display equipment, and acquiring target coordinates to be displayed of the standard test signals on a display screen.
And the result coordinates are coordinates which correspond to the RGB signals of the display equipment and are displayed on the display screen. In a specific implementation process, the result coordinates corresponding to the RGB signals of the display device may be searched from a preset lookup table, where the preset lookup table is generally an initial ini file of a display screen. The television chip stores a preset lookup table, the preset lookup table is a file manufactured according to display characteristics of a display screen, and the preset lookup table comprises display equipment RGB signals input by TCON and result coordinates corresponding to the display equipment RGB signals, and the preset lookup table is shown in the following table:
Figure BDA0001347814420000061
in one application scenario, the tv chip captures that the RGB signal of the display device converted from the bt.709 standard R test signal has a value of (229, 0, 0), and when the TCON input (i.e., the tv chip output) is (229, 0, 0), the corresponding coordinate of the result displayed on the display screen is (0.678466, 0.304445).
The target coordinate to be displayed on the display screen is the coordinate of the signal source under the condition of no color distortion, the target coordinate is the same as the coordinate of the signal source, and for the BT.709 standard R test signal, (0.64, 0.33) is the coordinate of the BT.709 standard R test signal, and the target coordinate to be displayed on the display screen is also (0.64, 0.33).
In a possible implementation manner, the obtaining of the target coordinates of the standard test signal to be displayed on the display screen includes:
and searching a target coordinate to be displayed on the display screen of the standard test signal from a preset target coordinate file.
In the specific implementation process, for standard test signals of different colors or different types, a preset target coordinate file is established corresponding to target coordinates to be displayed on a display screen. For example, the preset target coordinate file may include target coordinates to be displayed on the display screen by the bt.709 standard R test signal, target coordinates to be displayed on the display screen by the bt.709 standard G test signal, and target coordinates to be displayed on the display screen by the bt.709 standard B test signal.
Step S300: and judging whether the difference value between the result coordinate and the target coordinate is greater than a preset error.
Calculating a difference value between the result coordinates (0.678466, 0.304445) and the target coordinates (0.64, 0.33) obtained in the step S200, wherein the difference value includes: the difference between the abscissa of the result coordinate and the target coordinate, and the difference between the ordinate of the result coordinate and the target coordinate. Taking the result coordinates (0.678466, 0.304445) and the target coordinates (0.64, 0.33) as an example, the difference between the abscissa and the ordinate of the calculated result coordinates is 0.038466 and the difference between the ordinate and the target coordinate is-0.025555.
In a specific implementation process, the preset error may be a preset abscissa target error or a preset ordinate target error, and taking the preset abscissa target error as an example, this step may determine whether the abscissa difference between the result coordinate and the target coordinate is greater than the preset abscissa target error.
If the difference is smaller than or equal to the preset error, the step is finished, that is, the coordinate of the display device of the bt.709 standard R test signal is determined as the original coordinate, the RGB signal of the display device converted by the spatial conversion matrix is the final color gamut converted result of the bt.709 standard R test signal, and the color gamut conversion of the bt.709 standard R test signal is finished.
If the difference is greater than the preset error, step S400 is executed.
Step S400: and adjusting the original coordinates, and converting the standard test signals into new display equipment RGB signals according to a space conversion matrix calculated according to the adjusted original coordinates until the difference value between the result coordinates corresponding to the new display equipment RGB signals and the target coordinates is less than or equal to the preset error.
And the space conversion matrix calculated according to the adjusted original coordinates is a standard space and display equipment RGB color space conversion matrix calculated according to the display equipment coordinates for the adjusted original coordinates.
In one possible embodiment, as shown in fig. 3, for how to adjust the original coordinates, the following steps are included:
step S401: and calculating the ratio K of the difference value to the preset error.
In the embodiment of the invention, the adjustment amplitude of the original coordinate is determined according to the ratio K of the difference value to the preset error. In a specific implementation process, K may be a ratio of a difference between an abscissa of the result coordinate and the target coordinate to a preset target error of the abscissa.
Of course, in a specific implementation process, K may be a ratio of a difference between the ordinate of the result coordinate and the ordinate of the target coordinate to a preset ordinate target error. The user may select K as any one of the above ratios according to the actual situation, which is not specifically limited herein.
Step S402: and taking the sum of 0.5K times of the difference value and the original coordinate as the adjusted original coordinate.
In a specific implementation process, 0.5K times of the difference is taken as the amplitude of the current adjustment on the original coordinate, and then the adjusted original coordinate is the sum of 0.5K times of the difference and the original coordinate.
In one application scenario, the difference is a difference between the abscissa of the result coordinate and the abscissa of the target coordinate, the result coordinate is (0.678466, 0.304445), the target coordinate is (0.64, 0.33), the abscissa of the result coordinate and the target coordinate is calculated to have a difference value of 0.038466, and the ordinate of the result coordinate and the target coordinate is calculated to have a difference value of-0.025555, for example, the target error of the abscissa is preset to be 0.01, and then K is 0.038466/0.01 or 3.8466. Since the horizontal coordinate difference between the resultant coordinate and the target coordinate is large, the adjustment range is relatively large.
The abscissa of the adjusted original coordinate is 0.681192+0.5 × 3.8466 × 0.038466 ═ 0.755173658, and the ordinate is 0.30539+0.5 × 3.8466 (-0.025555) ═ 0.256240069, that is, the adjusted original coordinate is (0.75517365, 0.256240069).
In an application scenario, as shown in fig. 4, the step of taking a sum of 0.5K times of the difference value and the original coordinate as the adjusted original coordinate further includes:
step S4021: and taking n significant figures from the ratio of the difference value to the preset error, and recording as K', wherein n is the same as the significant figure of the result coordinate.
In the specific implementation process, if the result coordinate has 5 significant digits, the calculated K value also takes 5 significant digits and is marked as K'.
Step S4022: and taking the sum of 0.5K' times of the difference value and the original coordinate as the adjusted original coordinate.
In the specific implementation process, in order to reduce the subsequent calculation amount, the adjusted original coordinate can also keep the same number of significant digits as the result coordinate. For example, the adjusted original coordinates are (0.75517365, 0.256240069), since the resulting coordinates retain 5 significant digits, the adjusted original coordinates are also retained 5 significant digits, which are (0.75517, 0.25624).
The display device coordinates calculating the standard space and display device RGB color space conversion matrix are changed to adjusted original coordinates (0.75517, 0.25624), i.e. a new space conversion matrix can be calculated according to the adjusted original coordinates, the television chip will retransmit the BT.709 Standard R test signal, the BT.709 Standard R test signal can be converted to a new display device RGB signal (X) according to the new space conversion matrix0,Y0,Z0)。
TV chip grabbing new display device RGB signal (X)0,Y0,Z0) Searching a result coordinate corresponding to the result from a preset lookup table, calculating a difference value between the result coordinate and the target coordinate, judging whether the difference value is greater than a preset error, and if the difference value is less than or equal to the preset error, testing the BT.709 standard RAnd determining the coordinates of the display equipment to be the adjusted original coordinates, and finishing the color gamut conversion of the BT.709 standard R test signal.
If the difference is larger than the preset error, the original coordinate is continuously adjusted, the calculation method of the adjustment amplitude is the same as the amplitude calculation method, the original coordinate is adjusted for multiple times, the difference between the result coordinate corresponding to the new RGB signal of the display device and the target coordinate is smaller than or equal to the preset error, at this time, the display device coordinate of the BT.709 standard R test signal is determined to be the latest adjusted original coordinate, and the color gamut conversion of the BT.709 standard R test signal is finished.
Through the adjustment of the original coordinates and the adjustment of the space conversion matrix in the step, the difference value between the result coordinates corresponding to the new display device RGB signal converted by the BT.709 standard R test signal and the target coordinates is smaller than or equal to the preset error, namely after the new display device RGB signal converted by the BT.709 standard R test signal is input in TCON, the actual coordinates on the display screen and the target coordinates (0.64 and 0.33) displayed on the display screen are within the preset error.
The above steps only describe in detail the color gamut conversion process when the signal source is a bt.709 standard R test signal, and in the specific implementation process, the signal source may also be a bt.709 standard G test signal, a bt.709 standard B test signal, or a standard RGB test signal of other standard signal sources, except that when the signal source is a bt.709 standard G test signal, a bt.709 standard B test signal, or a standard RGB test signal of other standard signal sources, the target coordinates displayed on the display screen are the target coordinates corresponding to these signals, and also the coordinates corresponding to these signal sources.
According to the color gamut conversion method provided by the embodiment of the invention, a new space conversion matrix is obtained by adjusting the coordinates of the display device, the standard test signal is converted into the RGB signal of the display device according to the new space conversion matrix, the result coordinates displayed on the display screen corresponding to the RGB signal of the display device converted by the standard test signal are compared with the target coordinates to be displayed on the display screen of the standard test signal, and the difference value between the result coordinates obtained after the color gamut conversion and the target coordinates is smaller than or equal to the preset error, so that the display result of the standard test signal is obtained on the display screen. According to the method, a standard test signal and a target coordinate to be displayed on a display screen are used for correcting a display device coordinate needed by a space conversion matrix, the space conversion matrix is corrected according to the corrected display device coordinate, the standard test signal and an information source signal are subjected to color gamut conversion according to the corrected space conversion matrix, and the difference value between a display result obtained on the display screen after the color gamut conversion and the target coordinate is smaller than or equal to a preset error. The difference value between the display result after the color gamut conversion and the target coordinate is within the preset error range by continuously adjusting and correcting the spatial conversion matrix, so that the problem of over-range signals is considered, the limitation of the byte number of a system is avoided, the error between the actual coordinate displayed on the display screen after the color gamut conversion and the information source coordinate is small, the precision is high, and the problem of color distortion can be solved.
In a first possible implementation, based on fig. 2, as shown in fig. 5, the method further includes:
step S510: and respectively acquiring adjusted original coordinates of other two colors in the RGB three primary colors corresponding to the standard test signal of the same type.
In the specific implementation process, the types of the signal sources include a bt.709 standard signal source, a bt.2020 standard signal source, and taking the bt.709 standard signal source as an example, in the above embodiment, the adjusted original coordinate of the bt.709 standard R test signal is obtained, and the adjusted original coordinate of the bt.709 standard G test signal and the adjusted original coordinate of the bt.709 standard B test signal can be obtained by using the same method.
Step S610: and calculating to obtain a new space conversion matrix of the type corresponding to the standard test signal according to the adjusted original coordinates corresponding to the RGB three primary colors respectively.
Adjusting the original coordinate of the BT.709 standard R test signal and the original coordinate of the BT.709 standard G test signalThe original coordinate after the regulation of standard BT.709 standard B test signal is converted into XYZ form and filled in
Figure BDA0001347814420000091
Calculating a standard space and display device RGB color space conversion matrix according to formula (1)
Figure BDA0001347814420000092
The standard space and display device RGB color space conversion matrix calculated at this time
Figure BDA0001347814420000093
A new spatial transformation matrix for the bt.709 standard source.
Step S710: and if an information source signal of the same type as the standard test signal is received, converting the information source signal into an RGB signal of the display equipment according to the new space conversion matrix.
In the specific implementation process, when the television chip receives a bt.709 standard source signal, the bt.709 source signal is converted into a source RGB signal, then GAMMA matching is performed, the obtained source RGB signal matched with GMAMMA is converted into an XYZ standard spatial signal, and then the signal is converted into a display device RGB signal according to a new spatial conversion matrix. And the television chip sends the converted RGB signals of the display equipment to the TCON, and finally BT.709 standard source signals are displayed on a display screen.
According to the color gamut conversion method provided by the embodiment of the invention, when the signal source signal of the same type as the standard test signal is received, the signal source signal is directly subjected to a new space conversion matrix calculated by the original coordinate after the standard R test signal is adjusted, the original coordinate after the standard G test signal is adjusted and the original coordinate after the standard B test signal is adjusted, the XYZ standard space signal converted by the signal source RGB signal matched with GMAMMA is converted into the RGB signal of the display device, and finally, the display result of the signal source signal is obtained on the television display screen. In the method, the source signals of the same type as the standard test signals are subjected to color gamut conversion by directly adopting a new space conversion matrix calculated by the original coordinates after the standard R test signals are adjusted, the original coordinates after the standard G test signals are adjusted and the original coordinates after the standard B test signals are adjusted. Therefore, the problem of over-range signals is considered, the limitation of the byte number of the system is avoided, the error between the actual coordinate displayed on the display screen after the color gamut conversion and the signal source signal coordinate is small, the precision is high, and the problem of color distortion can be solved.
In a second possible implementation, based on fig. 2, see fig. 6, the method further includes:
step S520: and respectively acquiring other two adjusted original coordinates in the RGB three primary colors corresponding to the same type of standard test signal, and storing the adjusted original coordinates corresponding to the RGB three primary colors in a coordinate file of display equipment.
In the specific implementation process, more than one signal source of display equipment such as a high-color-gamut television can be provided, such as a BT.709 standard signal source, a BT.2020 standard signal source and the like, the adjusted original coordinates of the BT.709 standard R test signal are obtained, the adjusted original coordinates of the BT.709 standard G test signal and the adjusted original coordinates of the BT.709 standard B test signal can be respectively obtained by using the same method, and the three adjusted original coordinates are stored in a coordinate file of the display equipment corresponding to the types of the standard test signals.
Step S620: and respectively acquiring adjusted original coordinates of RGB (red, green and blue) three primary colors corresponding to other types of standard test signals, and storing the correspondingly adjusted original coordinates into the coordinate file of the display equipment.
In an application scenario, the original coordinate after the bt.2020 standard R test signal is adjusted, the original coordinate after the bt.2020 standard G test signal is adjusted, and the original coordinate after the bt.2020 standard B test signal is adjusted are respectively obtained, and the types of the three adjusted original coordinates corresponding to the standard test signals are also stored in the coordinate file of the display device.
Step S720: if an information source signal is received, searching an adjusted RGB (red, green and blue) three-primary color original coordinate corresponding to the information source signal from the display equipment coordinate file, calculating to obtain a space conversion matrix of the information source signal, and converting the information source signal into an RGB (red, green and blue) signal of the display equipment according to the space conversion matrix of the information source signal.
In the specific implementation process, when an information source signal is received, the adjusted RGB three primary colors corresponding to the information source signal are searched from a display device file, the adjusted RGB three primary colors are converted into an XYZ form, a space conversion matrix of the information source signal is obtained through calculation according to a formula (1), the information source signal is converted into the RGB signal of the display device according to the space conversion matrix of the information source signal, and a display result of the information source signal can be obtained on a display screen.
In one possible implementation, the searching for the RGB three-primary-color-adjusted original coordinates corresponding to the source signal from the display device coordinate file, see fig. 7, includes,
step S721: and judging the source type of the source signal.
In the embodiment of the present invention, the type of the source is determined according to the coding range of the source signal.
Step S722: and determining the type of a standard test signal corresponding to the source signal according to the source type.
And determining the type of the standard test signal corresponding to the source signal according to the source type determined in step S721.
Step S723: and searching the adjusted original coordinates of the RGB three primary colors corresponding to the standard test signals of the same type from the coordinate file of the display equipment according to the type of the standard test signals.
According to the color gamut conversion method provided by the embodiment of the invention, when the received source signal is of a certain type, the adjusted original coordinate of RGB (red, green and blue) three primary colors corresponding to the source signal can be searched from the coordinate file of the display equipment according to the type of the source signal, the space conversion matrix of the source signal, namely the standard space of the source signal and the RGB (red, green and blue) color space conversion matrix of the display equipment are calculated according to the adjusted original coordinate of the RGB three primary colors, and the source signal is converted into the RGB signal of the display equipment according to the space conversion matrix, so that the display result of the source signal is obtained on the display screen. In the method, the original coordinate of the source signal after being adjusted by the corresponding standard R test signal, the original coordinate of the source signal after being adjusted by the standard G test signal and the new space conversion matrix calculated by the original coordinate of the source signal after being adjusted by the standard B test signal are directly adopted for color gamut conversion. Therefore, the problem of over-range signals is considered, the limitation of the byte number of the system is avoided, the error between the actual coordinate displayed on the display screen after the color gamut conversion and the signal source signal coordinate is small, the precision is high, and the problem of color distortion can be solved.
Based on the same technical solution, an embodiment of the present invention further provides a color gamut conversion device, as shown in fig. 8, the device includes: the system comprises a standard test signal conversion module 100, a result coordinate and target coordinate acquisition module 200, a judgment module 300 and a coordinate adjustment module 400 which are connected in sequence.
The standard test signal conversion module 100 is configured to convert the standard test signal into an RGB signal of the display device according to a spatial conversion matrix calculated according to the original coordinates.
The result coordinate and target coordinate obtaining module 200 is configured to search a result coordinate corresponding to the RGB signal of the display device, and obtain a target coordinate to be displayed on the display screen of the standard test signal.
In one possible embodiment, the result coordinate and target coordinate acquisition module 200 includes: and a target coordinate searching unit. And the target coordinate searching unit is used for searching a target coordinate to be displayed on the display screen by the standard test signal from a preset target coordinate file.
The judging module 300 is configured to judge whether a difference between the result coordinate and the target coordinate is greater than a preset error.
The coordinate adjusting module 400 is configured to adjust the original coordinate if the difference is greater than the preset error, and convert the standard test signal into a new display device RGB signal according to a space transformation matrix calculated according to the adjusted original coordinate until a difference between a result coordinate corresponding to the new display device RGB signal and the target coordinate is less than or equal to the preset error.
In one possible embodiment, the coordinate adjusting module 400, as shown in fig. 9, includes: a ratio calculation unit 401 and an original coordinate adjustment unit 402 connected in this order.
The ratio calculating unit 401 is configured to calculate a ratio K of the difference to the preset error.
The original coordinate adjusting unit 402 is configured to use a sum of 0.5K times of the difference and the original coordinate as an adjusted original coordinate.
In an application scenario, the original coordinate adjustment unit 402, as shown in fig. 10, includes: the K' determination subunit 4021 and the adjusted original coordinate calculation subunit 4022 are connected in sequence.
The K 'determining subunit 4021 is configured to take n significant digits for the ratio of the difference to the preset error, and record the n significant digits as K', where n is the same as the significant digit digits of the result coordinate;
the adjusted original coordinate calculating subunit 4022 is configured to use a sum of 0.5K' times of the difference and the original coordinate as the adjusted original coordinate.
In a first possible embodiment, the apparatus, based on fig. 8 and referring to fig. 11, further includes a first coordinate obtaining module 510, a spatial transformation matrix calculating module 610, and a first source transformation module 710, which are connected in sequence.
The first coordinate obtaining module 510 is configured to obtain adjusted original coordinates of the other two colors in the RGB three primary colors corresponding to the same type of standard test signal, respectively.
And the spatial transformation matrix calculation module 610 is configured to calculate a new spatial transformation matrix of a type corresponding to the standard test signal according to the adjusted original coordinates corresponding to the RGB three primary colors, respectively.
A first source conversion module 710, configured to, if a source signal of the same type as the standard test signal is received, convert the source signal into a display device RGB signal according to the new spatial conversion matrix.
In a second possible embodiment, the apparatus, based on fig. 8 and referring to fig. 12, further includes: a second coordinate obtaining module 520, a third coordinate obtaining module 620 and a second information source converting module 720, which are connected in sequence.
The second coordinate obtaining module 520 is configured to obtain adjusted original coordinates of the other two colors of the RGB three primary colors corresponding to the same type of the standard test signal, and store the adjusted original coordinates corresponding to the RGB three primary colors in a coordinate file of a display device.
The third coordinate obtaining module 620 is configured to obtain adjusted original coordinates of RGB three primary colors corresponding to other types of standard test signals, and store the corresponding adjusted original coordinates in the coordinate file of the display device.
The second source conversion module 720 is configured to, if a source signal is received, search an adjusted RGB three-primary color original coordinate corresponding to the source signal from the display device coordinate file, calculate a spatial conversion matrix of the source signal, and convert the source signal into a display device RGB signal according to the spatial conversion matrix of the source signal.
In one possible embodiment, the second source conversion module 720, as shown in fig. 13, includes: a source type judging unit 721, a standard test signal determining unit 722 and an adjusted original coordinate searching unit 723.
A source type determining unit 721, configured to determine a source type of the source signal.
A standard test signal determining unit 722, configured to determine a type of a standard test signal corresponding to the source signal according to the source type.
And the adjusted original coordinate searching unit 723 is configured to search, according to the type of the standard test signal, an adjusted original coordinate of RGB three primary colors corresponding to the standard test signal of the same type from the display device coordinate file.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the color gamut conversion device embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, refer to the description in the method embodiment.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (9)

1. A method of color gamut conversion, the method comprising:
converting the standard test signal into a display device RGB signal according to a space conversion matrix calculated when the display device coordinate is an original coordinate;
searching result coordinates corresponding to the RGB signals of the display equipment, and acquiring target coordinates to be displayed of the standard test signals on a display screen;
judging whether the difference value between the result coordinate and the target coordinate is greater than a preset error or not;
if the difference is larger than the preset error, calculating a ratio K of the difference to the preset error, taking the sum of 0.5K times of the difference and the original coordinate as an adjusted original coordinate, and converting the standard test signal into a new display device RGB signal according to a space conversion matrix calculated according to the adjusted original coordinate until the difference between a result coordinate corresponding to the new display device RGB signal and the target coordinate is smaller than or equal to the preset error.
2. The method of claim 1, wherein the method further comprises:
respectively acquiring adjusted original coordinates corresponding to RGB three primary colors corresponding to the same type of standard test signals;
calculating to obtain a new space conversion matrix of the type corresponding to the standard test signal according to the adjusted original coordinates corresponding to the RGB three primary colors respectively;
and if an information source signal of the same type as the standard test signal is received, converting the information source signal into an RGB signal of the display equipment according to the new space conversion matrix.
3. The method of claim 1, wherein the method further comprises:
respectively acquiring adjusted original coordinates corresponding to RGB (red, green and blue) three primary colors corresponding to the same type of standard test signals, and storing the adjusted original coordinates corresponding to the RGB three primary colors in a coordinate file of display equipment;
respectively acquiring adjusted original coordinates of RGB (red, green and blue) three primary colors corresponding to other types of standard test signals, and storing the correspondingly adjusted original coordinates into the coordinate file of the display equipment;
if an information source signal is received, searching an adjusted RGB (red, green and blue) three-primary color original coordinate corresponding to the information source signal from the display equipment coordinate file, calculating to obtain a space conversion matrix of the information source signal, and converting the information source signal into an RGB (red, green and blue) signal of the display equipment according to the space conversion matrix of the information source signal.
4. The method of claim 3, wherein said searching for RGB three primary color adjusted original coordinates corresponding to said source signal from said display device coordinate file comprises:
judging the information source type of the information source signal;
determining the type of a standard test signal corresponding to the information source signal according to the information source type;
and searching the adjusted original coordinates of the RGB three primary colors corresponding to the standard test signals of the same type from the coordinate file of the display equipment according to the type of the standard test signals.
5. The method of claim 1, wherein said taking a sum of 0.5K times the difference value and the original coordinates as adjusted original coordinates comprises:
taking n significant figures from the ratio of the difference value to the preset error, and recording as K', wherein n is the same as the significant figure of the result coordinate;
and taking the sum of 0.5K' times of the difference value and the original coordinate as the adjusted original coordinate.
6. The method of claim 1, wherein said obtaining target coordinates of said standard test signal to be displayed on a display screen comprises:
and searching a target coordinate to be displayed on the display screen of the standard test signal from a preset target coordinate file.
7. A color gamut conversion device, characterized in that the device comprises:
the standard test signal conversion module is used for converting the standard test signal into a display equipment RGB signal according to a space conversion matrix calculated when the display equipment coordinate is an original coordinate;
the result coordinate and target coordinate acquisition module is used for searching a result coordinate corresponding to the RGB signal of the display equipment and acquiring a target coordinate to be displayed on a display screen by the standard test signal;
the judging module is used for judging whether the difference value between the result coordinate and the target coordinate is greater than a preset error or not;
and the coordinate adjusting module is used for adjusting the original coordinate if the difference value is larger than the preset error, and converting the standard test signal into a new display device RGB signal according to a space conversion matrix calculated according to the adjusted original coordinate until the difference value between the result coordinate corresponding to the new display device RGB signal and the target coordinate is smaller than or equal to the preset error.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the first coordinate acquisition module is used for respectively acquiring adjusted original coordinates corresponding to RGB (red, green and blue) three primary colors corresponding to the same type of standard test signals;
the space conversion matrix calculation module is used for calculating and obtaining a new space conversion matrix of the type corresponding to the standard test signal according to the adjusted original coordinates corresponding to the RGB three primary colors respectively;
and the first information source conversion module is used for converting the information source signals into RGB signals of the display equipment according to the new space conversion matrix if the information source signals of the same type as the standard test signals are received.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the second coordinate acquisition module is used for respectively acquiring adjusted original coordinates corresponding to RGB (red, green and blue) three primary colors corresponding to the same type of standard test signals and storing the adjusted original coordinates corresponding to the RGB three primary colors into a coordinate file of the display equipment;
the third coordinate acquisition module is used for respectively acquiring RGB (red, green and blue) three-primary-color adjusted original coordinates corresponding to other types of standard test signals and storing the corresponding adjusted original coordinates into the coordinate file of the display equipment;
and the second information source conversion module is used for searching the adjusted RGB three primary colors corresponding to the information source signal from the display equipment coordinate file if the information source signal is received, calculating to obtain a space conversion matrix of the information source signal, and converting the information source signal into the RGB signal of the display equipment according to the space conversion matrix of the information source signal.
CN201710563992.2A 2017-07-12 2017-07-12 Color gamut conversion method and device Active CN107222733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710563992.2A CN107222733B (en) 2017-07-12 2017-07-12 Color gamut conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710563992.2A CN107222733B (en) 2017-07-12 2017-07-12 Color gamut conversion method and device

Publications (2)

Publication Number Publication Date
CN107222733A CN107222733A (en) 2017-09-29
CN107222733B true CN107222733B (en) 2020-06-23

Family

ID=59952639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710563992.2A Active CN107222733B (en) 2017-07-12 2017-07-12 Color gamut conversion method and device

Country Status (1)

Country Link
CN (1) CN107222733B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110299102A (en) * 2019-07-09 2019-10-01 康佳集团股份有限公司 A kind of method, display equipment and the storage medium of chip interior pretreatment color
CN110459176A (en) * 2019-08-16 2019-11-15 合肥工业大学 A kind of gamut conversion method of displayer
CN110767198B (en) * 2019-09-29 2020-11-24 深圳吉迪思电子科技有限公司 Color gamut correction method and system and display driving integrated circuit
CN113345386B (en) * 2020-03-02 2022-10-04 苏州佳世达电通有限公司 Display device and color adjustment method
CN113920961B (en) * 2020-07-10 2023-03-03 苏州佳世达电通有限公司 Display device and color adjustment method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100782826B1 (en) * 2005-12-10 2007-12-06 삼성전자주식회사 Image capture device and method, and recording medium storing program for performing the method
CN101794565B (en) * 2010-03-31 2013-12-11 青岛海信电器股份有限公司 Image display method, device and system
CN103634580B (en) * 2013-12-19 2016-05-25 敦泰科技有限公司 A kind of colour gamut method of adjustment and device of coloured image
CN103761948B (en) * 2013-12-30 2017-11-21 华显光电技术(惠州)有限公司 The display methods and device of white balance debugging method and apparatus and display
CN103747223B (en) * 2014-01-15 2015-11-25 京东方科技集团股份有限公司 Colour gamut adjusting device, method and display system

Also Published As

Publication number Publication date
CN107222733A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN107222733B (en) Color gamut conversion method and device
KR102493933B1 (en) Video signal processing method and apparatus
CN107197225B (en) Color digital camera white balance correcting based on chromatic adaptation model
CN109863549B (en) Electronic device, display apparatus, and control method thereof
KR101990956B1 (en) Device for converting color gamut and method thereof
US20080204469A1 (en) Color Transformation Luminance Correction Method and Device
US8411936B2 (en) Apparatus and method for color reproduction
JP2008295034A (en) Image processor and processing method
CN111091789B (en) Display device and color correction method thereof
JPH09200790A (en) Method and device for processing color for using two-dimensional chromaticity separation
CN103383830B (en) Method for viewing virtual display outputs
EP3136379B1 (en) Image processing apparatus and display determination method
JP5460805B1 (en) Image display device
WO2020135224A1 (en) Color space mapping method and device, computer readable storage medium and apparatus
CN107533832A (en) Image processing apparatus, image processing method and program
KR20030083613A (en) Image processing apparatus, image processing method, and program
CN113870756B (en) Correction method, system and device of display equipment
US20140314317A1 (en) Method and apparatus for converting gray level of color image
JP5879120B2 (en) Video signal processing apparatus, vector scope, and program
US8411946B2 (en) Color conversion system and method
CN112309312A (en) Image display method and device, receiving card, sending card and LED display system
KR100723050B1 (en) Method of color correction for display and apparatus thereof
KR100827128B1 (en) Method of forming image in a portable display apparatus
TW201110107A (en) Color management circuit and related color management method
CN117319620B (en) HDR preview-level on-site real-time color mixing method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co.,Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

GR01 Patent grant
GR01 Patent grant