CN113393805A - RGB (red, green and blue) three-color gamma correction method and system for LED display screen and computer storage medium thereof - Google Patents

RGB (red, green and blue) three-color gamma correction method and system for LED display screen and computer storage medium thereof Download PDF

Info

Publication number
CN113393805A
CN113393805A CN202110708194.0A CN202110708194A CN113393805A CN 113393805 A CN113393805 A CN 113393805A CN 202110708194 A CN202110708194 A CN 202110708194A CN 113393805 A CN113393805 A CN 113393805A
Authority
CN
China
Prior art keywords
color
brightness
value
gray scale
theoretical
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.)
Granted
Application number
CN202110708194.0A
Other languages
Chinese (zh)
Other versions
CN113393805B (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 Uniview Led Co ltd
Original Assignee
Shenzhen Uniview Led 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 Shenzhen Uniview Led Co ltd filed Critical Shenzhen Uniview Led Co ltd
Priority to CN202110708194.0A priority Critical patent/CN113393805B/en
Publication of CN113393805A publication Critical patent/CN113393805A/en
Application granted granted Critical
Publication of CN113393805B publication Critical patent/CN113393805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0271Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0271Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping
    • G09G2320/0276Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping for the purpose of adaptation to the characteristics of a display device, i.e. gamma correction

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The method comprises a brightness measuring step, an initial brightness calculating step, an initial parameter value calculating step, a theoretical brightness table generating step and a correction gray scale value calculating step, wherein the measured brightness value, the initial parameter value and the theoretical brightness value of RGB three colors of image data are respectively obtained, and the correction gray scale value of each gray scale level of R color is obtained through the R color measured brightness value and the R color theoretical brightness value; acquiring a correction gray scale value of each gray scale of the G color through the G color measurement brightness value and the G color theoretical brightness value; and acquiring the corrected gray-scale value of each gray level of the B color through the B color measurement brightness value and the B color theoretical brightness value, so that the gray-scale values of the three RGB colors in the image data are independently corrected, and the image data is redisplayed according to the corrected gray-scale values, thereby reducing the color cast problem and realizing the white balance of each level of 1-255.

Description

RGB (red, green and blue) three-color gamma correction method and system for LED display screen and computer storage medium thereof
Technical Field
The present application relates to the technical field of LED display screen devices, and in particular, to a RGB three-color gamma correction method and system for an LED display screen, and a storage medium thereof.
Background
The gamma curve in the LED display screen refers to the mapping relation between the brightness of natural reality and subjective visual brightness,this relationship is usually defined by a power function Y ═ XgWhere Y is the luminance of natural reality, X is the subjective visual luminance, and g is the gamma value. The gamma correction of the LED display screen is to measure the brightness of each gray scale of the display screen through an optical device, adjust the gray scale value through the measured brightness value, and display the image data according to the adjusted gray scale value, so that the image data fits the brightness curve of the specified gamma value g (such as 2.2 or 2.8). The gamma correction adopted by the LED display screen at present uses one gamma table, namely the gamma tables of the three colors of RGB are the same.
Aiming at the related technology, because the electro-optic characteristics of the red, green and blue lamp beads are inconsistent, the brightness of each gray level can not reach the white balance easily because the three colors of RGB adopt one gamma table.
Disclosure of Invention
The invention aims to provide an RGB (red, green and blue) three-color gamma correction method for an LED display screen, which can improve the phenomenon that the brightness of each gray scale of RGB three colors cannot reach white balance.
The above object of the present invention is achieved by the following technical solutions:
a RGB tristimulus gamma correction method for an LED display screen, the method comprising:
measuring brightness, namely measuring the brightness value of each gray scale of the R color based on image data to generate an R color measurement brightness table, and acquiring the maximum brightness R of the R color according to the R color measurement brightness tableM(ii) a Measuring the brightness value of each gray scale of the G color based on the image data to generate a G color measurement brightness table, and acquiring the maximum brightness G of the G color according to the G color measurement brightness tableM(ii) a Measuring the brightness value of each gray scale of the B color based on the image data to generate a B color measurement brightness table, and acquiring the maximum brightness B of the B color according to the B color measurement brightness tableM
Calculating initial brightness, setting white initial brightness V of image dataSCalculating the initial brightness R of the R colorSG color initial luminance GSAnd initial brightness B of color BSWherein, in the step (A),
RS=VS·RM/(RM+GM+BM),
GS=VS·GM/(RM+GM+BM),
BS=VS·BM/(RM+GM+BM);
calculating initial parameter value, calculating R color initial parameter value RPG color initial parameter value GPAnd initial parameter value B of color BPWherein, in the step (A),
Rp=exp(ln(RS/RM) G) is a gamma value,
Gp=exp(ln(GS/GM) G) is a gamma value,
Bp=exp(ln(BS/BM) G) g is a gamma value;
generating a theoretical brightness table, calculating the theoretical brightness value S of each gray level j of R colorR(j) Based on the theoretical brightness value S of each gray level j of the R colorR(j) Generating an R color theoretical brightness table; calculating theoretical brightness value S at each gray level j of G colorG(j) Based on the theoretical brightness value S of each gray level j of the G colorG(j) Generating a G color theoretical brightness table; calculating theoretical brightness value S at each gray level j of B colorB(j) Based on the theoretical brightness value S of the B color at each gray level jB(j) Generating a B color theoretical brightness table, wherein j is an integer which is more than or equal to 1 and less than or equal to 255,
SR(j)=pow(Rp+(j-1)·(1-Rp)/254,g)·RMand g is a gamma value,
SG(j)=pow(Gp+(j-1)·(1-Gp)/254,g)·GMand g is a gamma value,
SB(j)=pow(Bp+(j-1)·(1-Bp)/254,g)·BMg is a gamma value;
calculating a corrected gray scale value, namely calculating an R color corrected gray scale value based on an R color theoretical brightness value and an R color measured brightness value, specifically, calculating error absolute values of the R color theoretical brightness value and the measured brightness values of all gray scales in an R color measured brightness table respectively, obtaining a gray scale value corresponding to the R color measured brightness value corresponding to the minimum error absolute value, and taking the gray scale value as the corrected gray scale value corresponding to the gray scale level in the R color theoretical brightness table;
calculating a G color correction gray scale value based on the G color theoretical brightness value and the G color measurement brightness value, specifically, calculating error absolute values of the G color theoretical brightness value and the measurement brightness value of each gray scale in the G color measurement brightness table respectively, obtaining a gray scale value corresponding to the G color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as a correction gray scale value corresponding to a gray scale level in the G color theoretical brightness table;
and calculating a B color correction gray scale value based on the B color theoretical brightness value and the B color measurement brightness value, specifically, calculating error absolute values of the B color theoretical brightness value and the measurement brightness value of each gray scale in the B color measurement brightness table respectively, obtaining a gray scale value corresponding to the B color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as a correction gray scale value corresponding to the gray scale in the B color theoretical brightness table.
By adopting the technical scheme, the measurement brightness value, the initial parameter value and the theoretical brightness value of RGB three colors in the image data are respectively obtained, and the correction gray scale value of each gray scale of R color is obtained through the R color measurement brightness value and the R color theoretical brightness value; acquiring a correction gray scale value of each gray scale of the G color through the G color measurement brightness value and the G color theoretical brightness value; the corrected gray scale values of all gray levels of the B color are obtained through the B color measurement brightness value and the B color theoretical brightness value, so that the gray scale values of the RGB three colors in the image data are independently corrected, the image data can be redisplayed according to the corrected gray scale values, the color cast problem is reduced, and the white balance of each gray level of 1-255 is realized.
Optionally, the method before the step of calculating a correction gray scale value further includes: setting a R color low brightness threshold RTMeasuring the R color brightness value of each gray scale and the R color low brightness threshold value RTComparing if the measured brightness value of the R color is less than or equal to the low brightness threshold value R of the R colorTCalculating an R color correction gray scale value based on the R color theoretical brightness value and the R color measurement brightness value; if the measured brightness value of the R color is larger than the low brightness threshold value R of the R colorTThen the measured brightness value of the R color is larger than the low brightness threshold value R of the R colorTIs divided into N sections, and the node of each section is set as a key point NRObtaining each key point NRGenerating an R color key point brightness table, and calculating an R color correction gray scale value based on the R color key point brightness table and the R color theoretical brightness table, wherein N is an integer greater than 0;
setting a G color low luminance threshold GTMeasuring the brightness value of G color of each gray scale and the low brightness threshold value G of G colorTComparing if the measured brightness value of the G color is less than or equal to the low brightness threshold G of the G colorTCalculating a G color correction gray scale value based on the G color theoretical brightness value and the G color measurement brightness value; if the measured brightness value of the G color is larger than the low brightness threshold value G of the G colorTThen the measured brightness value of the G color is larger than the low brightness threshold value G of the G colorTIs divided into N sections, and the node of each section is set as a key point NGObtaining each key point NGGenerating a G color key point brightness table, and calculating a G color correction gray scale value based on the G color key point brightness table and the G color theoretical brightness table, wherein N is an integer greater than 0;
setting a B color low brightness threshold BTMeasuring the brightness value of the B color of each gray scale and the low brightness threshold value B of the B colorTComparing if the measured brightness value of the B color is less than or equal to the low brightness threshold value B of the B colorTCalculating a B color correction gray scale value based on the B color theoretical brightness value and the B color measurement brightness value; if the measured brightness value of the B color is larger than the low brightness threshold value B of the B colorTThen the measured brightness value of the color B is larger than the low brightness threshold value B of the color BTIs divided into N sections, and the node of each section is set as a key point NBObtaining each key point NBAnd generating a B color key point brightness table, and calculating a B color correction gray scale value based on the B color key point brightness table and the B color theoretical brightness table, wherein N is an integer greater than 0.
By adopting the technical scheme, as the current lamp bead manufacturing technology and the technology of driving the IC are continuously improved, the gray scale expression capacity of the LED display screen is greatly improved, the gray scale value is increased, and the measurement time is prolonged by measuring the brightness value of RGB (red, green and blue) by gray scale. Human eyes are sensitive to the perception of the part with lower brightness and insensitive to the perception of the part with higher brightness, and the human eyes can only perceive the brightness change when the brightness change is large. Therefore, each gray scale brightness value is divided into two parts according to the low brightness threshold value, the parts smaller than or equal to the low brightness threshold value are corrected one by one, key points are arranged at intervals of the parts larger than the low brightness threshold value, and correction is carried out according to the brightness value at the key points, so that the measurement duration can be reduced, and the working efficiency can be improved.
Optionally, the method for setting the low brightness threshold specifically includes setting a white low brightness threshold V in the image dataTCalculating R color low brightness threshold value RTG color low luminance threshold value GTAnd a low luminance threshold B of the B colorTWherein, in the step (A),
RT=VT*RM/(RM+GM+BM),
GT=VT*GM/(RM+GM+BM),
BT=VT*BM/(RM+GM+BM)。
by adopting the technical scheme, when the brightness is low, human eyes are sensitive to the perception of brightness change, when the brightness is high, the human eyes are insensitive to the perception of brightness change, and the sensitive and insensitive intervals of human eyes can be distinguished conveniently by using the low brightness threshold value.
Optionally, the specific method for measuring the brightness values of the R color gray scales based on the image data and generating the R color measurement brightness table includes sequentially connecting the R color measurement brightness values of the R color gray scales with the R color low brightness threshold R from small to largeTComparing if the measured brightness value of R color is greater than the low brightness threshold value R of R colorTThe comparison is stopped, if the measured brightness value of the R color is less than or equal to the low brightness threshold value R of the R colorTGenerating an R color low brightness measuring table according to the R color measuring brightness value;
the specific method for measuring the brightness value of each gray scale of the G color based on the image data and generating the G color measurement brightness table comprises the steps of sequentially connecting the G color measurement brightness value of each gray scale with a G color low brightness threshold value G from small to largeTMaking a comparison, if G color measures brightnessValue greater than G color low luminance threshold GTThe comparison is stopped, if the measured brightness value of the G color is less than or equal to the low brightness threshold value G of the G colorTGenerating a G color low brightness measuring meter according to the G color measuring brightness value;
the specific method for measuring the brightness values of all gray scales of the B color based on the image data and generating the B color measurement brightness table comprises the steps of sequentially connecting the B color measurement brightness values of all gray scales with a B color low brightness threshold B from small to largeTComparing if the measured brightness value of B color is greater than the low brightness threshold value B of B colorTThe comparison is stopped, if the measured brightness value of the B color is less than or equal to the low brightness threshold value B of the B colorTAnd generating a B color low brightness measuring table according to the B color measuring brightness value.
By adopting the technical scheme, human eyes are very sensitive to brightness change when the brightness is low, so that the brightness value of the part with the brightness smaller than the low brightness threshold value needs to be measured gray scale by gray scale to generate a low brightness measuring table, and then the part needs to be corrected one by one based on the measured brightness value and the theoretical brightness value, so that the corrected gray scale value accords with the perception curve of the human eyes.
Optionally, obtaining each key point NRThe method before luminance value of (A) further comprises equaling the R color low luminance threshold RTOr greater than and closest to the R color low brightness threshold RTThe gray scale RSL corresponding to the R color measurement brightness valueTTo maximum R color gray scale SLMAveragely divided into N sections, and each section of nodes is a key point NRCalculating a key point N according to the corresponding gray level valueRCorresponding gray scale value RSLi=RSLT+(SLM-RSLT) The key points are arranged in the same row, wherein i is the serial number of the key points, and i is an integer which is more than or equal to 1 and less than or equal to N;
obtaining each key point NGThe method before luminance value of (A) further comprises equaling the G color low luminance threshold GTOr greater than and closest to the G color low brightness threshold GTG color measurement gray scale GSL corresponding to the brightness valueTTo maximum R color gray scale SLMAveragely divided into N sections, and each section of nodes is a key point NGCalculating a key point N according to the corresponding gray level valueGCorresponding gray scale value GSLi=GSLT+(SLM-GSLT) The key points are arranged in the same row, wherein i is the serial number of the key points, and i is an integer which is more than or equal to 1 and less than or equal to N;
obtaining each key point NBThe method before processing the luminance value further comprises equaling a B color low luminance threshold BTOr greater than and closest to the B color low luminance threshold BTThe gray scale BSL corresponding to the B color measurement brightness valueTTo maximum gray scale SL of color BMAveragely divided into N sections, and each section of nodes is a key point NBCalculating a key point N according to the corresponding gray level valueBCorresponding gray scale value BSLi=BSLT+(SLM-RSLT) and/N x i, wherein i is the serial number of the key point, and i is an integer which is greater than or equal to 1 and less than or equal to N.
By adopting the technical scheme, the gray-scale value corresponding to each key point is obtained and is used for measuring the brightness value corresponding to the gray-scale value.
Optionally, the specific method for generating the R color key illumination table is based on each key point NRCorresponding gray scale value RSLiMeasure each key point NRThe brightness value of (1) is determined according to each key point NRBrightness value of and each key point NRGenerating an R color key lightening table by using the gray scale value;
the specific method for generating the G color key illumination table is based on each key point NGCorresponding gray scale value GSLiMeasure each key point NGThe brightness value of (1) is determined according to each key point NGBrightness value of and each key point NGGenerating a G color measurement brightness table according to the gray scale value;
the specific method for generating the key illumination table of the B color is that each key point N is based onBCorresponding gray scale value BSLiMeasure each key point NBThe brightness value of (1) is determined according to each key point NBBrightness value of and each key point NBThe gray scale value of (A) generates a B color measurement brightness table.
By adopting the technical scheme, the brightness values at the key points are measured according to the gray-scale values at the key points, and the brightness values at the key points are integrated to generate the key lighting table.
Optionally, the specific method for calculating the R color correction gray scale value based on the R color key point brightness table and the R color theoretical brightness table is to obtain the position of the R color theoretical brightness value at each gray level in the R color key point brightness table, and calculate the R color correction gray scale value by using a linear interpolation method;
the specific method for calculating the G color correction gray scale value based on the G color key point brightness table and the G color theoretical brightness table comprises the steps of obtaining the position of the G color theoretical brightness value at each gray level in the G color key point brightness table, and calculating the G color correction gray scale value by adopting a linear interpolation method;
the specific method for calculating the B color correction gray scale value based on the B color key point brightness table and the B color theoretical brightness table is to obtain the position of the B color theoretical brightness value at each gray level in the B color key point brightness table and calculate the B color correction gray scale value by adopting a linear interpolation method.
By adopting the technical scheme, the linear interpolation method can determine the unknown quantity through the known quantity, so that the position of the theoretical brightness value in the key brightness table is obtained, and the gray-scale values corresponding to two key points adjacent to the theoretical brightness value are substituted into the linear interpolation formula, so that the corrected gray-scale value of the gray-scale level corresponding to the theoretical brightness value can be calculated.
The invention also aims to provide an RGB (red, green and blue) three-color gamma correction system of the LED display screen.
The second aim of the invention is realized by the following technical scheme:
an RGB tristimulus gamma correction system for an LED display screen, comprising:
a brightness measurement module for measuring brightness values of R gray scales based on image data, generating a R color measurement brightness table, and obtaining R color maximum brightness R according to the R color measurement brightness tableM(ii) a The method is used for measuring the brightness value of each gray scale of the G color based on the image data, generating a G color measurement brightness table and acquiring the maximum brightness G of the G color according to the G color measurement brightness tableM(ii) a Is used for measuring the brightness value of each gray scale of the B color based on the image data, generating a B color measurement brightness table and acquiring the maximum brightness B of the B color according to the B color measurement brightness tableM
Module for calculating initial brightness and testA brightness measuring module connected to receive the maximum brightness R of R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd setting the initial white brightness V in the image dataSCalculating the initial brightness R of the R colorSG color initial luminance GSAnd initial brightness B of color BSWherein, in the step (A),
RS=VS·RM/(RM+GM+BM),
GS=VS·GM/(RM+GM+BM),
BS=VS·BM/(RM+GM+BM);
an initial parameter value calculating module connected with the brightness measuring module and the initial brightness calculating module for receiving the maximum brightness R of the R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd receiving the R color initial brightness RSG color initial luminance GSAnd initial brightness B of color BSAnd calculating the R color initial parameter value RPG color initial parameter value GPAnd initial parameter value B of color BPWherein R isp=exp(ln(RS/RM) G) is a gamma value,
Gp=exp(ln(GS/GM) G) is a gamma value,
Bp=exp(ln(BS/BM) G) g is a gamma value;
a theoretical brightness table generation module connected with the brightness measurement module and the initial parameter value calculation module and used for receiving the maximum brightness R of the R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd receiving the R color initial parameter value RpG color initial parameter value GpAnd initial parameter value B of color BpAnd calculating theoretical brightness value S of R color at each gray level jR(j) Based on the theoretical brightness value S of each gray level j of the R colorR(j) Generating an R color theoretical brightness table; calculating theoretical brightness value S at each gray level j of G colorG(j) Based on the theoretical brightness value S of each gray level j of the G colorG(j) Generating a G color theoretical brightness table; calculating theoretical brightness value S at each gray level j of B colorB(j) Based on the theoretical brightness value S of the B color at each gray level jB(j) Generating a B color theoretical brightness table, wherein j is an integer which is more than or equal to 1 and less than or equal to 255,
SR(j)=pow(Rp+(j-1)·(1-Rp)/254,g)·RMand g is a gamma value,
SG(j)=pow(Gp+(j-1)·(1-Gp)/254,g)·GMand g is a gamma value,
SB(j)=pow(Bp+(j-1)·(1-Bp)/254,g)·BMg is a gamma value;
the calculation and correction gray scale value module is connected with the measurement brightness module and the theoretical brightness table generation module and is used for acquiring R color measurement brightness values and theoretical brightness values of all gray scales in the R color theoretical brightness table and calculating R color correction gray scale values based on the R color theoretical brightness values and the R color measurement brightness values, specifically, calculating error absolute values of the R color theoretical brightness values and the measurement brightness values of all gray scales in the R color measurement brightness table respectively, acquiring a gray scale value corresponding to the R color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as a correction gray scale value corresponding to the gray scale in the R color theoretical brightness table;
the gray scale correction method comprises the steps of obtaining a G color measurement brightness value and theoretical brightness values of all gray scales in a G color theoretical brightness table, and calculating a G color correction gray scale value based on the G color theoretical brightness value and the G color measurement brightness value, specifically, calculating error absolute values of the G color theoretical brightness value and the measurement brightness values of all gray scales in the G color measurement brightness table respectively, obtaining a gray scale value corresponding to the G color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as the correction gray scale value corresponding to the gray scale in the G color theoretical brightness table;
the method is used for obtaining a B color measurement brightness value and a theoretical brightness value of each gray level in a B color theoretical brightness table, and calculating a B color correction gray level value based on the B color theoretical brightness value and the B color measurement brightness value, specifically, calculating an error absolute value between the B color theoretical brightness value and the measurement brightness value of each gray level in the B color measurement brightness table, obtaining a gray level value corresponding to the B color measurement brightness value corresponding to the minimum error absolute value, and taking the gray level value as the correction gray level value corresponding to the gray level in the B color theoretical brightness table.
By adopting the technical scheme, the brightness measuring module is used for measuring the brightness values of RGB in the image data respectively, the initial brightness calculating module is used for calculating the initial brightness of RGB respectively, the initial parameter value calculating module is used for calculating the initial parameter values of RGB respectively, the theoretical brightness table generating module generates the theoretical brightness tables of RGB respectively, the gray scale value calculating and correcting module is used for calculating the corrected gray scale values of RGB three colors respectively according to the measured brightness values and the theoretical brightness values, the image data can be displayed again according to the corrected gray scale values, and the color cast problem can be improved.
The invention also provides a computer device.
The third object of the invention is realized by the following technical scheme:
a computer device comprising a memory and a processor, said memory having stored thereon a computer program that can be loaded by the processor and executed to perform any of the steps of the RGB tristimulus gamma correction method for an LED display screen described above.
The invention also provides a computer readable storage medium.
The fourth object of the invention is realized by the following technical scheme:
a computer-readable storage medium storing a computer program capable of being loaded and executing any one of the steps of the RGB three-color gamma correction method of the LED display panel described above.
In summary, the present application includes at least one of the following beneficial technical effects:
the RGB three colors in the image data are respectively and independently corrected, and the image data are displayed again according to the corrected gray scale values, so that the color cast problem is improved.
Drawings
Fig. 1 is a flowchart of an RGB tristimulus gamma correction method according to an embodiment of the present application.
Detailed Description
The present invention is described in further detail below with reference to fig. 1.
The present embodiment is only for explaining the present invention, and it is not limited to the present invention, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present invention.
The embodiment of the application provides a RGB three-color gamma correction method for an LED display screen, which specifically includes, with reference to fig. 1: the method comprises the steps of measuring brightness in step S100, calculating initial brightness in step S200, calculating initial parameter values in step S300, generating a theoretical brightness table in step S400 and calculating a corrected gray scale value in step S500.
The specific implementation manner of the step of measuring the brightness is that the image data is displayed through an LED box body with an LED display screen, the brightness value of each gray scale of R color, the brightness value of each gray scale of G color and the brightness value of each gray scale of B color in the image data are respectively measured by using a colorimeter, an R color measurement brightness table, a G color measurement brightness table and a B color measurement brightness table are generated, and the maximum brightness R of the R color is obtained according to the R color measurement brightness tableMObtaining the maximum brightness G of the G color according to the G color measurement brightness tableMAnd obtaining the maximum brightness B of the B color according to the B color measurement brightness tableM
In combination with the embodiment, the measurement process is further explained by specific data, a certain LED box with an LED display screen is lighted, the gray scale display capability of the LED display screen is 16 bits, a colorimeter is called to measure the brightness value of each gray scale of R color, an R color measurement brightness table is generated, and the maximum brightness R of the R color is obtained according to the R color measurement brightness tableM309.1198, and then obtaining the maximum brightness G of the G color by the same methodM697.5598 maximum brightness B of color BM=122.4798。
As another specific implementation mode of the step of measuring the brightness, the gray scale expression capability of the LED display screen is greatly improved, the gray scale value is increased more and more due to the continuous improvement of the current lamp bead manufacturing technology and the technology of driving an IC (integrated circuit), and the measurement is carried out by gray scaleThe brightness values of RGB make the measurement time longer. Thus setting the R color low luminance threshold RTMeasuring the R color brightness value and the R color low brightness threshold value R according to the sequence from small to large in gray scaleTComparing when the measured brightness value of the R color is equal to or greater than the low brightness threshold value R of the R colorTStopping the comparison, measuring the brightness value less than or equal to R color low brightness threshold value R for R colorTThe R color low brightness measurement table is generated. Setting G color low brightness threshold G by the same methodTGenerating a G color low-brightness measuring meter; setting a B color low brightness threshold BTAnd generating a B color low brightness measuring meter. Adjusting the LED display screen to the R color gray scale of 255, and calling a colorimeter to measure the maximum brightness R of the R colorMMeasuring the maximum brightness G of the G color by the same methodMAnd maximum brightness G of G colorM
The specific method for setting the low-brightness threshold value is that firstly, a white low-brightness threshold value V in the image data is setT,VTThe larger the correction effect, the better, but VTThe larger the correction time, the more rapidly the white color is to be corrected, and the lower the brightness threshold V is generallyTSetting the maximum brightness R of the R color obtained in the step as 1% -2% of the maximum brightness of the white colorMMaximum brightness G of G colorMMaximum brightness B of color BMAnd a white low luminance threshold VTSubstituting formula to calculate R color low brightness threshold value RT=VT*RM/(RM+GM+BM) G color low luminance threshold GT=VT*GM/(RM+GM+BM) Low brightness threshold of B color BT=VT*BM/(RM+GM+BM)。
According to the embodiment of the application, the measurement process is further explained through specific data, the LED box body is lightened, the gray level of the R color is adjusted to be 255, and the maximum brightness R of the R color is measured by calling a colorimeterM309.1198; adjusting the gray scale of the G color to be 255, and calling a colorimeter to measure the maximum brightness G of the G colorM697.5598; adjusting the gray scale of the B color to be 255, and calling a colorimeter to measure the maximum brightness B of the B colorM=122.4798。
Setting a white low luminance threshold VT=1.0cd/m2Maximum brightness R of R colorM309.1198G color maximum brightness GM697.5598 maximum brightness B of color BM122.4798 and a white low luminance threshold VTSubstituting formula for 1 to calculate R color low brightness threshold value RT
RT=1.0*309.1198/(309.1198+697.5598+122.4798)≈0.2738。
Measuring R color brightness value by using a colorimeter from gray level 1 to gray level, sequentially increasing the gray levels, and when the R color measurement brightness value is equal to or greater than R color low brightness threshold value RTWhen the measurement is stopped at 0.2738, an R color low brightness measurement table is generated based on the R color measurement brightness value:
TABLE 1R color low brightness measuring meter
Gray scale Brightness value Gray scale Brightness value Gray scale Brightness value Gray scale Brightness value
1 0.0053 14 0.076 27 0.1426 40 0.208
2 0.0106 15 0.081 28 0.1486 41 0.2141
3 0.0159 16 0.0861 29 0.1527 42 0.22
4 0.0212 17 0.0913 30 0.1567 43 0.2268
5 0.0263 18 0.0966 31 0.1611 44 0.2335
6 0.0311 19 0.1028 32 0.1657 45 0.2381
7 0.0363 20 0.1088 33 0.1711 46 0.2429
8 0.0413 21 0.1131 34 0.1766 47 0.248
9 0.0474 22 0.1173 35 0.1821 48 0.2532
10 0.0534 23 0.122 36 0.1874 49 0.2586
11 0.06 24 0.1267 37 0.1925 50 0.2639
12 0.0666 25 0.1318 38 0.1975 51 0.2701
13 0.0713 26 0.1367 39 0.2029 52 0.2763
As a specific implementation mode of the step of calculating the initial brightness, the image data is displayed by using an LED display screen, the initial brightness is different due to different display effects of the LED display screens of different devices, and a worker can freely set the initial white brightness V in the image data according to the display effect of the LED display screen at firstSMaximum brightness R of R colorMMaximum brightness G of G colorMMaximum brightness B of color BMAnd white initial brightness VSSubstituting formula to calculate R color initial brightness RS,RS=VS*RM/(RM+GM+BM) Calculating the initial brightness G of the G colorS,GS=VS*GM/(RM+GM+BM) And calculating the initial brightness B of the color BS,BS=VS*BM/(RM+GM+BM). The staff can set multiple groups of white initial brightness VSCorrecting, and comparing the correction result to determine the optimal initial white brightness value VS
With reference to this embodiment, the calculation process is further described by specific data, and for this LED box, the brightness of white at a gray scale level of 1 is set as the initial brightness VSInitial brightness VS=0.3cd/m2Maximum brightness R of R colorMMaximum brightness G of G colorMMaximum brightness B of color BMAnd white initial brightness VSSubstituting the formula to calculate the initial brightness value of the R color: rS=0.3*309.1198/(309.1198+697.5598+122.4798)≈0.0821。
As a specific implementation mode of the step of calculating the initial parameter value, the maximum brightness R of the R color obtained in the step is usedMR color initial luminance RSSubstituting the gamma value g into a formula to calculate the R color initial parameter value RP,Rp=exp(ln(RS/RM) (iv)/g); maximum brightness G of G colorMG color initial luminance GSSubstituting the gamma value G into a formula to calculate the G color initial parameter value GP,Gp=exp(ln(GS/GM) (iv)/g); maximum brightness B of B colorMB initial brightness of color BSSubstituting the gamma value g into a formula to calculate the initial parameter value B of the color BP,Bp=exp(ln(BS/BM) In terms of/g). Wherein the gamma value g can be selected from 2.2 to 2.8.
In combination with the embodiment of the present application, the measurement process is further explained by specific data, the gamma value g is set to 2.8, and the maximum brightness R of the R color is setM309.1198, R color initial luminance RSSubstituting 0.0821 and gamma value g 2.8 into formula to calculate R color initial parameter value RP,Rp=exp(ln(0.0821/309.1198)/2.8)≈0.052837。
As a specific embodiment of the step of generating the theoretical luminance table, the maximum luminance R of the R color obtained in the above stepMR color initial luminance RSR color initial parameter value RPSubstituting the gamma value g into a formula to calculate the theoretical brightness value S at each gray level j of the R colorR(j) Based on the theoretical brightness value S at each gray level j of the R colorR(j) Generating an R color theoretical brightness table; the maximum brightness G of the G color obtained in the stepMG color initial luminance GSG color initial parameter value GPSubstituting the gamma value G into a formula to calculate the theoretical brightness value S at each gray level j of the G colorG(j) Based on the theoretical brightness value S at each gray level j of the G colorG(j) Generating a G color theoretical brightness table; the maximum brightness B of the color B obtained in the above stepMB initial brightness of color BSInitial parameter value B of color BPSubstituting the gamma value g into a formula to calculate the theoretical brightness value S at each gray level j of the B colorB(j) Based on the theoretical brightness value S at each gray level j of the B colorB(j) Generating a B color theoretical brightness table, wherein j is an integer greater than or equal to 1 and less than or equal to 255, the gamma value g can be selected from 2.2 to 2.8,
SR(j)=pow(Rp+(j-1)·(1-Rp)/254,g)·RM
SG(j)=pow(Gp+(j-1)·(1-Gp)/254,g)·GM
SB(j)=pow(Bp+(j-1)·(1-Bp)/254,g)·BM
in conjunction with the embodiment of the present application, the measurement process is further described by specific data, the gamma value g is set to 2.8, and the maximum brightness R of the R color in the above step is set as RM309.1198, R color initial luminance RS0.0821, R color initial parameter value RpSubstituting 0.052837 and gamma value g 2.8 into formula to calculate SR(j)=pow(Rp+(j-1)*(1-Rp)/254,g)*RMAnd an R color theoretical luminance table with a gamma value of 2.8 is generated.
TABLE 2 theoretical brightness table of R color with gamma value of 2.8
Figure BDA0003132188280000111
Figure BDA0003132188280000121
Figure BDA0003132188280000131
Figure BDA0003132188280000141
Figure BDA0003132188280000151
As a specific implementation manner of the step of calculating and correcting the gray scale value, based on the R color theoretical brightness table and the R color measured brightness table obtained in the above steps, the theoretical brightness value of each gray scale in the R color theoretical brightness table is sequentially obtained, the error absolute value between the R color theoretical brightness value and the measured brightness value of each gray scale in the R color measured brightness table is calculated, the gray scale value of the measured brightness value corresponding to the minimum error absolute value is obtained, and the gray scale value is used as the corrected gray scale value of the gray scale of the R color;
based on the G color theoretical brightness table and the G color measurement brightness table obtained in the above steps, sequentially obtaining theoretical brightness values of all gray levels in the G color theoretical brightness table, calculating error absolute values of the G color theoretical brightness values and the measurement brightness values of all gray levels in the G color measurement brightness table, obtaining a gray level value of the measurement brightness value corresponding to the minimum error absolute value, and taking the gray level value as a correction gray level value of the gray level of the G color;
and based on the B color theoretical brightness table and the B color measured brightness table obtained in the step, sequentially obtaining the theoretical brightness value of each gray level in the B color theoretical brightness table, calculating the error absolute value of the B color theoretical brightness value and the measured brightness value of each gray level in the B color measured brightness table, obtaining the gray level value of the measured brightness value corresponding to the minimum error absolute value, and taking the gray level value as the corrected gray level value of the gray level of the B color.
In conjunction with the embodiment of the present application, the measurement process is further described by specific data, and if the theoretical luminance value of R color gray scale level 4 is 0.1406, the measured luminance of gray scale 27 in the R color measured luminance table is 0.1426, and the absolute value of the error between the theoretical luminance value of gray scale level 4 of R color and the theoretical luminance value of gray scale level 0.1406 is the smallest, the corrected gray scale value at R color gray scale level 4 is 27, and the corrected gray scale values of other gray scale levels of R color are calculated in the same manner.
As another specific embodiment of the step of calculating the corrected gray scale value, for the portion of the measured luminance value smaller than the low luminance threshold, the calculation is performed using the specific embodiment of calculating the corrected gray scale value described above. And for the part of which the measured brightness value is greater than the low brightness threshold value, setting key points, acquiring the brightness at the key points, generating a key brightness table, and calculating a correction gray-scale value based on the key brightness table and the theoretical brightness table.
The specific implementation manner of setting the key point of the R color is that the measured brightness value of the R color is larger than the low brightness threshold value R of the R colorTIs divided into N sections, and the node of each section is R color key point NR(ii) a The specific implementation mode for setting the key point of the G color is that the measured brightness value of the G color is larger than the low brightness threshold value G of the G colorTIs divided into N sections, and the node of each section is G color key point NG(ii) a The specific implementation mode for setting key points of the color B is to set the color BMeasuring brightness value greater than B color low brightness threshold value BTIs divided into N sections, and the node of each section is a B color key point NB(ii) a Wherein N is an integer greater than 0, the larger the value is, the better the correction effect is, and the general value range is 30-50.
In obtaining R color key point NBThe method before the brightness value comprises that the R color low brightness threshold value R is equal toTOr greater than and closest to the R color low brightness threshold RTThe gray scale RSL corresponding to the R color measurement brightness valueTTo maximum R color gray scale SLMAveragely divided into N sections, and each section of nodes is a key point NRCalculating a key point N according to the corresponding gray level valueRCorresponding gray scale value RSLi=RSLT+(SLM-RSLT) N x i; obtaining G color key point NGThe method before the brightness value of (A) includes equaling the G color low brightness threshold GTOr greater than and closest to the G color low brightness threshold GTG color measurement gray scale GSL corresponding to the brightness valueTTo maximum R color gray scale SLMAveragely divided into N sections, and each section of nodes is a key point NGCalculating a key point N according to the corresponding gray level valueGCorresponding gray scale value GSLi=GSLT+(SLM-GSLT) N x i; obtaining key point N of color BBThe method before processing the luminance value comprises that the luminance value is equal to a B color low luminance threshold value BTOr greater than and closest to the B color low luminance threshold BTThe gray scale BSL corresponding to the B color measurement brightness valueTTo maximum gray scale SL of color BMAveragely divided into N sections, and each section of nodes is a key point NBCalculating a key point N according to the corresponding gray level valueBCorresponding gray scale value BSLi=BSLT+(SLM-RSLT) N x i; wherein i is the serial number of the key point, and i is an integer greater than or equal to 1 and less than or equal to N.
The specific implementation mode for generating the R color key lighting table is to call the colorimeter and carry out comparison on the gray scale value RSLiMeasuring corresponding brightness values to obtain each key point N of the R colorRProcessing brightness value according to each key point NRBrightness value of and each key point NRGenerating an R color key lightening table by using the gray scale value; for gray scale value GSLiCorresponding toMeasuring the brightness value to obtain each key point N of G colorGProcessing brightness value according to each key point NGBrightness value of and each key point NGGenerating a G color key lightening table by using the gray scale value; for gray scale value BSLiMeasuring corresponding brightness values to obtain key points N of B colorBProcessing brightness value according to each key point NBBrightness value of and each key point NBThe gray scale value of (B) generates a B color key lighting table.
The specific implementation mode of calculating the corrected gray level value based on the key point brightness table and the theoretical brightness table is that the position of the R color theoretical brightness value at each gray level in the R color key brightness table is obtained, and the gray level values corresponding to two key points adjacent to the theoretical brightness value are substituted into a linear interpolation formula for calculation, so that the corrected gray level value at the gray level corresponding to the R color theoretical brightness value can be obtained; acquiring the position of a theoretical brightness value of the G color at each gray level in a key brightness table of the G color, substituting gray values corresponding to two key points adjacent to the theoretical brightness value into a linear interpolation formula for calculation, and acquiring a corrected gray value at the gray level corresponding to the theoretical brightness value of the G color; and acquiring the position of the theoretical brightness value of the B color at each gray level in a key brightness table of the B color, substituting the gray level values corresponding to two key points adjacent to the theoretical brightness value into a linear interpolation formula for calculation, and acquiring the corrected gray level value at the gray level corresponding to the theoretical brightness value of the B color.
In the embodiment of the present application, the measurement process is further explained by specific data, and the gray scale display capability of the LED display screen in the embodiment of the present application is 16 bits, so that the maximum gray scale values of RGB are 65535, and N is set to 30. The color R is greater than and closest to the low brightness threshold value R of the color R measured by a colorimeterTThe measured brightness value of 0.2738 is 0.2763, the corresponding gray scale value is 52, the gray scale value 52 is divided into 30 segments, the highest gray scale value 65535 of each segment is the key point NRThe number of key points is 30.
Greater than and closest to the R color low luminance threshold RTThe gray scale RSL corresponding to the R color measurement brightness valueTIs a number of the order of 52,maximum R-tone SLM65535, assume that i is 1 to 30 of a certain key point NRThe gray scale value RSL at ii52+ (65535-52)/30 × i, and calculating the key point N in turnRAnd calling a colorimeter to measure the brightness value corresponding to each gray value to generate a key lighting table of the R color.
TABLE 3 key lightening Table for R color
Number i Gray scale Brightness value Number i Gray scale Brightness value Number i Gray scale Brightness value
0 52 0.2763
1 2234 11.6018 11 24054 118.1198 21 45874 223.7998
2 4416 22.4018 12 26236 128.1498 22 48056 233.1298
3 6598 33.0418 13 28418 139.0898 23 50238 243.5098
4 8780 43.6968 14 30600 149.9898 24 52420 253.6198
5 10962 54.3278 15 32782 159.8898 25 54602 263.9498
6 13144 64.9458 16 34964 171.0298 26 56784 274.8898
7 15326 75.5378 17 37146 181.4198 27 58966 286.2098
8 17508 86.1328 18 39328 191.0598 28 61148 295.1698
9 19690 96.6498 19 41510 202.2998 29 63330 306.6198
10 21872 107.3498 20 43692 212.5198 30 65535 309.1198
Calculating an R color correction gray scale value based on the R color key point brightness table and the R color theoretical brightness table, wherein if the R color gray scale is 3.3301 with the theoretical brightness value of 40, the R color correction gray scale value is positioned between the key point 0 and the key point 1, the gray scale value of the key point 0 is 52, and the measured brightness of the key point 0 is 0.2763; the gray scale value of the key point 1 is 2234, the measured brightness of the key point 1 is 11.6018, and the corrected gray scale value at the R color gray scale level 40 is (2234-52)/(11.6018-0.2763) × (3.3301-0.2763) +52 ≈ 640, and the corrected gray scale values of the other R color gray scales are calculated in the same way.
And integrating the corrected gray-scale values obtained by the two implementation modes to obtain the corrected gray-scale values of the RGB three colors.
TABLE 4 corrected grayscale values of RGB three colors
Figure BDA0003132188280000181
Figure BDA0003132188280000191
Figure BDA0003132188280000201
Figure BDA0003132188280000211
Figure BDA0003132188280000221
Figure BDA0003132188280000231
Figure BDA0003132188280000241
Figure BDA0003132188280000251
Figure BDA0003132188280000261
Figure BDA0003132188280000271
Based on the method, the embodiment of the application also discloses a three-color gamma correction system for the LED display screen, which comprises the following modules:
a brightness measurement module for measuring brightness values of R gray scales based on image data, generating a R color measurement brightness table, and obtaining R color maximum brightness R according to the R color measurement brightness tableM(ii) a The method is used for measuring the brightness value of each gray scale of the G color based on the image data, generating a G color measurement brightness table and acquiring the maximum brightness G of the G color according to the G color measurement brightness tableM(ii) a Is used for measuring the brightness value of each gray scale of the B color based on the image data, generating a B color measurement brightness table and acquiring the maximum brightness B of the B color according to the B color measurement brightness tableM
A module for calculating initial brightness connected with the brightness measuring module and used for receiving the maximum brightness R of the R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd setting the initial white brightness V in the image dataSCalculating the initial brightness R of the R colorSG color initial luminance GSAnd initial brightness B of color BSWherein, in the step (A),
RS=VS·RM/(RM+GM+BM),
GS=VS·GM/(RM+GM+BM),
BS=VS·BM/(RM+GM+BM);
an initial parameter value calculating module connected with the brightness measuring module and the initial brightness calculating module for receiving the maximum brightness R of the R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd receiving the R color initial brightness RSG color initial luminance GSAnd initial brightness B of color BSAnd calculating the R color numberStarting parameter value RPG color initial parameter value GPAnd initial parameter value B of color BPWherein R isp=exp(ln(RS/RM) G) is a gamma value,
Gp=exp(ln(GS/GM) G) is a gamma value,
Bp=exp(ln(BS/BM) G) g is a gamma value;
a theoretical brightness table generation module connected with the brightness measurement module and the initial parameter value calculation module and used for receiving the maximum brightness R of the R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd receiving the R color initial parameter value RpG color initial parameter value GpAnd initial parameter value B of color BpAnd calculating theoretical brightness value S of R color at each gray level jR(j) Based on the theoretical brightness value S of each gray level j of the R colorR(j) Generating an R color theoretical brightness table; calculating theoretical brightness value S at each gray level j of G colorG(j) Based on the theoretical brightness value S of each gray level j of the G colorG(j) Generating a G color theoretical brightness table; calculating theoretical brightness value S at each gray level j of B colorB(j) Based on the theoretical brightness value S of the B color at each gray level jB(j) Generating a B color theoretical brightness table, wherein j is an integer which is more than or equal to 1 and less than or equal to 255,
SR(j)=pow(Rp+(j-1)·(1-Rp)/254,g)·RMand g is a gamma value,
SG(j)=pow(Gp+(j-1)·(1-Gp)/254,g)·GMand g is a gamma value,
SB(j)=pow(Bp+(j-1)·(1-Bp)/254,g)·BMg is a gamma value;
the calculation and correction gray scale value module is connected with the measurement brightness module and the theoretical brightness table generation module and is used for acquiring R color measurement brightness values and theoretical brightness values of all gray scales in the R color theoretical brightness table and calculating R color correction gray scale values based on the R color theoretical brightness values and the R color measurement brightness values, specifically, calculating error absolute values of the R color theoretical brightness values and the measurement brightness values of all gray scales in the R color measurement brightness table respectively, acquiring a gray scale value corresponding to the R color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as a correction gray scale value corresponding to the gray scale in the R color theoretical brightness table;
the gray scale correction method comprises the steps of obtaining a G color measurement brightness value and theoretical brightness values of all gray scales in a G color theoretical brightness table, and calculating a G color correction gray scale value based on the G color theoretical brightness value and the G color measurement brightness value, specifically, calculating error absolute values of the G color theoretical brightness value and the measurement brightness values of all gray scales in the G color measurement brightness table respectively, obtaining a gray scale value corresponding to the G color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as the correction gray scale value corresponding to the gray scale in the G color theoretical brightness table;
the method is used for obtaining a B color measurement brightness value and a theoretical brightness value of each gray level in a B color theoretical brightness table, and calculating a B color correction gray level value based on the B color theoretical brightness value and the B color measurement brightness value, specifically, calculating an error absolute value between the B color theoretical brightness value and the measurement brightness value of each gray level in the B color measurement brightness table, obtaining a gray level value corresponding to the B color measurement brightness value corresponding to the minimum error absolute value, and taking the gray level value as the correction gray level value corresponding to the gray level in the B color theoretical brightness table.
Based on the method, the embodiment of the application further discloses a computer device, which comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes any step of the RGB three-color gamma correction method of the LED display screen.
Based on the above method, the embodiment of the present application further discloses a computer readable storage medium storing a computer program capable of being loaded and executing any step of the RGB three-color gamma correction method for the LED display screen.

Claims (10)

1. An RGB (red, green and blue) three-color gamma correction method for an LED display screen is characterized by comprising the following steps:
measuring brightness, namely measuring the brightness value of each gray scale of the R color based on image data to generate an R color measurement brightness table, and acquiring the maximum brightness R of the R color according to the R color measurement brightness tableM(ii) a Measuring the brightness value of each gray scale of the G color based on the image data to generate a G color measurement brightness table, and acquiring the maximum brightness G of the G color according to the G color measurement brightness tableM(ii) a Measuring the brightness value of each gray scale of the B color based on the image data to generate a B color measurement brightness table, and acquiring the maximum brightness B of the B color according to the B color measurement brightness tableM
Calculating initial brightness, setting white initial brightness V of image dataSCalculating the initial brightness R of the R colorSG color initial luminance GSAnd initial brightness B of color BSWherein, in the step (A),
RS=VS·RM/(RM+GM+BM),
GS=VS·GM/(RM+GM+BM),
BS=VS·BM/(RM+GM+BM);
calculating initial parameter value, calculating R color initial parameter value RPG color initial parameter value GPAnd initial parameter value B of color BPWherein, in the step (A),
Rp=exp(ln(RS/RM) G) is a gamma value,
Gp=exp(ln(GS/GM) G) is a gamma value,
Bp=exp(ln(BS/BM) G) g is a gamma value;
generating a theoretical brightness table, calculating the theoretical brightness value S of each gray level j of R colorR(j) Based on the theoretical brightness value S of each gray level j of the R colorR(j) Generating an R color theoretical brightness table; calculating theoretical brightness value S at each gray level j of G colorG(j) Based on the theoretical brightness value S of each gray level j of the G colorG(j) Generating a G color theoretical brightness table; calculating theoretical brightness value S at each gray level j of B colorB(j) Based on the theoretical brightness value S of the B color at each gray level jB(j) Generating a B color theoretical brightness table, wherein j is an integer which is more than or equal to 1 and less than or equal to 255,
SR(j)=pow(Rp+(j-1)·(1-Rp)/254,g)·RMand g is a gamma value,
SG(j)=pow(Gp+(j-1)·(1-Gp)/254,g)·GMand g is a gamma value,
SB(j)=pow(Bp+(j-1)·(1-Bp)/254,g)·BMg is a gamma value;
calculating a corrected gray scale value, namely calculating an R color corrected gray scale value based on an R color theoretical brightness value and an R color measured brightness value, specifically, calculating error absolute values of the R color theoretical brightness value and the measured brightness values of all gray scales in an R color measured brightness table respectively, obtaining a gray scale value corresponding to the R color measured brightness value corresponding to the minimum error absolute value, and taking the gray scale value as the corrected gray scale value corresponding to the gray scale level in the R color theoretical brightness table;
calculating a G color correction gray scale value based on the G color theoretical brightness value and the G color measurement brightness value, specifically, calculating error absolute values of the G color theoretical brightness value and the measurement brightness value of each gray scale in the G color measurement brightness table respectively, obtaining a gray scale value corresponding to the G color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as a correction gray scale value corresponding to a gray scale level in the G color theoretical brightness table;
and calculating a B color correction gray scale value based on the B color theoretical brightness value and the B color measurement brightness value, specifically, calculating error absolute values of the B color theoretical brightness value and the measurement brightness value of each gray scale in the B color measurement brightness table respectively, obtaining a gray scale value corresponding to the B color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as a correction gray scale value corresponding to the gray scale in the B color theoretical brightness table.
2. The RGB tristimulus gamma correction method for LED display screen of claim 1, wherein the method before the step of calculating the correction gray scale value further comprises: setting a R color low brightness threshold RTMeasuring the R color brightness value of each gray scale and the R color low brightness threshold value RTComparing if the measured brightness value of the R color is less than or equal to the low brightness threshold value R of the R colorTBased on the theoretical luminance values of R colors and RCalculating an R color correction gray scale value by using the color measurement brightness value; if the measured brightness value of the R color is larger than the low brightness threshold value R of the R colorTThen the measured brightness value of the R color is larger than the low brightness threshold value R of the R colorTIs divided into N sections, and the node of each section is set as a key point NRObtaining each key point NRGenerating an R color key point brightness table, and calculating an R color correction gray scale value based on the R color key point brightness table and the R color theoretical brightness table, wherein N is an integer greater than 0;
setting a G color low luminance threshold GTMeasuring the brightness value of G color of each gray scale and the low brightness threshold value G of G colorTComparing if the measured brightness value of the G color is less than or equal to the low brightness threshold G of the G colorTCalculating a G color correction gray scale value based on the G color theoretical brightness value and the G color measurement brightness value; if the measured brightness value of the G color is larger than the low brightness threshold value G of the G colorTThen the measured brightness value of the G color is larger than the low brightness threshold value G of the G colorTIs divided into N sections, and the node of each section is set as a key point NGObtaining each key point NGGenerating a G color key point brightness table, and calculating a G color correction gray scale value based on the G color key point brightness table and the G color theoretical brightness table, wherein N is an integer greater than 0;
setting a B color low brightness threshold BTMeasuring the brightness value of the B color of each gray scale and the low brightness threshold value B of the B colorTComparing if the measured brightness value of the B color is less than or equal to the low brightness threshold value B of the B colorTCalculating a B color correction gray scale value based on the B color theoretical brightness value and the B color measurement brightness value; if the measured brightness value of the B color is larger than the low brightness threshold value B of the B colorTThen the measured brightness value of the color B is larger than the low brightness threshold value B of the color BTIs divided into N sections, and the node of each section is set as a key point NBObtaining each key point NBAnd generating a B color key point brightness table, and calculating a B color correction gray scale value based on the B color key point brightness table and the B color theoretical brightness table, wherein N is an integer greater than 0.
3. The RGB three-color gamma correction method for LED display screen as claimed in claim 2, wherein the method comprisesThe method for setting the low brightness threshold is to set a white low brightness threshold V in the image dataTCalculating R color low brightness threshold value RTG color low luminance threshold value GTAnd a low luminance threshold B of the B colorTWherein, in the step (A),
RT=VT*RM/(RM+GM+BM),
GT=VT*GM/(RM+GM+BM),
BT=VT*BM/(RM+GM+BM)。
4. the RGB three-color gamma correction method of LED display screen of claim 2, wherein said measuring the brightness values of R color gray scales based on the image data to generate the R color measurement brightness table comprises sequentially comparing the R color measurement brightness values of the gray scales with a R color low brightness threshold R in descending order of magnitudeTComparing if the measured brightness value of R color is greater than the low brightness threshold value R of R colorTThe comparison is stopped, if the measured brightness value of the R color is less than or equal to the low brightness threshold value R of the R colorTGenerating an R color low brightness measuring table according to the R color measuring brightness value;
the specific method for measuring the brightness value of each gray scale of the G color based on the image data and generating the G color measurement brightness table comprises the steps of sequentially connecting the G color measurement brightness value of each gray scale with a G color low brightness threshold value G from small to largeTComparing if the measured brightness value of the G color is greater than the low brightness threshold value G of the G colorTThe comparison is stopped, if the measured brightness value of the G color is less than or equal to the low brightness threshold value G of the G colorTGenerating a G color low brightness measuring meter according to the G color measuring brightness value;
the specific method for measuring the brightness values of all gray scales of the B color based on the image data and generating the B color measurement brightness table comprises the steps of sequentially connecting the B color measurement brightness values of all gray scales with a B color low brightness threshold B from small to largeTComparing if the measured brightness value of B color is greater than the low brightness threshold value B of B colorTThe comparison is stopped, if color B is presentMeasuring a brightness value less than or equal to the B color low brightness threshold BTAnd generating a B color low brightness measuring table according to the B color measuring brightness value.
5. The RGB three-color gamma correction method for LED display screen as claimed in claim 2, wherein each key point N is obtainedRThe method before luminance value of (A) further comprises equaling the R color low luminance threshold RTOr greater than and closest to the R color low brightness threshold RTThe gray scale RSL corresponding to the R color measurement brightness valueTTo maximum R color gray scale SLMAveragely divided into N sections, and each section of nodes is a key point NRCalculating a key point N according to the corresponding gray level valueRCorresponding gray scale value RSLi=RSLT+(SLM-RSLT) The key points are arranged in the same row, wherein i is the serial number of the key points, and i is an integer which is more than or equal to 1 and less than or equal to N;
obtaining each key point NGThe method before luminance value of (A) further comprises equaling the G color low luminance threshold GTOr greater than and closest to the G color low brightness threshold GTG color measurement gray scale GSL corresponding to the brightness valueTTo maximum R color gray scale SLMAveragely divided into N sections, and each section of nodes is a key point NGCalculating a key point N according to the corresponding gray level valueGCorresponding gray scale value GSLi=GSLT+(SLM-GSLT) The key points are arranged in the same row, wherein i is the serial number of the key points, and i is an integer which is more than or equal to 1 and less than or equal to N;
obtaining each key point NBThe method before processing the luminance value further comprises equaling a B color low luminance threshold BTOr greater than and closest to the B color low luminance threshold BTThe gray scale BSL corresponding to the B color measurement brightness valueTTo maximum gray scale SL of color BMAveragely divided into N sections, and each section of nodes is a key point NBCalculating a key point N according to the corresponding gray level valueBCorresponding gray scale value BSLi=BSLT+(SLM-RSLT) and/N x i, wherein i is the serial number of the key point, and i is an integer which is greater than or equal to 1 and less than or equal to N.
6. The RGB three-color gamma correction method of LED display screen as claimed in claim 5, wherein the R color key-lighting table is generated based on each key point NRCorresponding gray scale value RSLiMeasure each key point NRThe brightness value of (1) is determined according to each key point NRBrightness value of and each key point NRGenerating an R color key lightening table by using the gray scale value;
the specific method for generating the G color key illumination table is based on each key point NGCorresponding gray scale value GSLiMeasure each key point NGThe brightness value of (1) is determined according to each key point NGBrightness value of and each key point NGGenerating a G color measurement brightness table according to the gray scale value;
the specific method for generating the key illumination table of the B color is that each key point N is based onBCorresponding gray scale value BSLiMeasure each key point NBThe brightness value of (1) is determined according to each key point NBBrightness value of and each key point NBThe gray scale value of (A) generates a B color measurement brightness table.
7. The RGB three-color gamma correction method of LED display screen of claim 6, wherein the specific method for calculating R color correction gray scale value based on R color key point brightness table and R color theoretical brightness table is to obtain the position of R color theoretical brightness value at each gray level in R color key brightness table, and calculate R color correction gray scale value by linear interpolation method;
the specific method for calculating the G color correction gray scale value based on the G color key point brightness table and the G color theoretical brightness table comprises the steps of obtaining the position of the G color theoretical brightness value at each gray level in the G color key point brightness table, and calculating the G color correction gray scale value by adopting a linear interpolation method;
the specific method for calculating the B color correction gray scale value based on the B color key point brightness table and the B color theoretical brightness table is to obtain the position of the B color theoretical brightness value at each gray level in the B color key point brightness table and calculate the B color correction gray scale value by adopting a linear interpolation method.
8. An RGB three-color gamma correction system for an LED display screen, comprising:
a brightness measurement module for measuring brightness values of R gray scales based on image data, generating a R color measurement brightness table, and obtaining R color maximum brightness R according to the R color measurement brightness tableM(ii) a The method is used for measuring the brightness value of each gray scale of the G color based on the image data, generating a G color measurement brightness table and acquiring the maximum brightness G of the G color according to the G color measurement brightness tableM(ii) a Is used for measuring the brightness value of each gray scale of the B color based on the image data, generating a B color measurement brightness table and acquiring the maximum brightness B of the B color according to the B color measurement brightness tableM
A module for calculating initial brightness connected with the brightness measuring module and used for receiving the maximum brightness R of the R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd setting the initial white brightness V in the image dataSCalculating the initial brightness R of the R colorSG color initial luminance GSAnd initial brightness B of color BSWherein, in the step (A),
RS=VS·RM/(RM+GM+BM),
GS=VS·GM/(RM+GM+BM),
BS=VS·BM/(RM+GM+BM);
an initial parameter value calculating module connected with the brightness measuring module and the initial brightness calculating module for receiving the maximum brightness R of the R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd receiving the R color initial brightness RSG color initial luminance GSAnd initial brightness B of color BSAnd calculating the R color initial parameter value RPG color initial parameter value GPAnd initial parameter value B of color BPWherein, in the step (A),
Rp=exp(ln(RS/RM) G) is a gamma value,
Gp=exp(ln(GS/GM) G) is a gamma value,
Bp=exp(ln(BS/BM) G) g is a gamma value;
a theoretical brightness table generation module connected with the brightness measurement module and the initial parameter value calculation module and used for receiving the maximum brightness R of the R colorMMaximum brightness G of G colorMAnd maximum brightness B of B colorMAnd receiving the R color initial parameter value RpG color initial parameter value GpAnd initial parameter value B of color BpAnd calculating theoretical brightness value S of R color at each gray level jR(j) Based on the theoretical brightness value S of each gray level j of the R colorR(j) Generating an R color theoretical brightness table; calculating theoretical brightness value S at each gray level j of G colorG(j) Based on the theoretical brightness value S of each gray level j of the G colorG(j) Generating a G color theoretical brightness table; calculating theoretical brightness value S at each gray level j of B colorB(j) Based on the theoretical brightness value S of the B color at each gray level jB(j) Generating a B color theoretical brightness table, wherein j is an integer which is more than or equal to 1 and less than or equal to 255,
SR(j)=pow(Rp+(j-1)·(1-Rp)/254,g)·RMand g is a gamma value,
SG(j)=pow(Gp+(j-1)·(1-Gp)/254,g)·GMand g is a gamma value,
SB(j)=pow(Bp+(j-1)·(1-Bp)/254,g)·BMg is a gamma value;
the calculation and correction gray scale value module is connected with the measurement brightness module and the theoretical brightness table generation module and is used for acquiring R color measurement brightness values and theoretical brightness values of all gray scales in the R color theoretical brightness table and calculating R color correction gray scale values based on the R color theoretical brightness values and the R color measurement brightness values, specifically, calculating error absolute values of the R color theoretical brightness values and the measurement brightness values of all gray scales in the R color measurement brightness table respectively, acquiring a gray scale value corresponding to the R color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as a correction gray scale value corresponding to the gray scale in the R color theoretical brightness table;
the gray scale correction method comprises the steps of obtaining a G color measurement brightness value and theoretical brightness values of all gray scales in a G color theoretical brightness table, and calculating a G color correction gray scale value based on the G color theoretical brightness value and the G color measurement brightness value, specifically, calculating error absolute values of the G color theoretical brightness value and the measurement brightness values of all gray scales in the G color measurement brightness table respectively, obtaining a gray scale value corresponding to the G color measurement brightness value corresponding to the minimum error absolute value, and taking the gray scale value as the correction gray scale value corresponding to the gray scale in the G color theoretical brightness table;
the method is used for obtaining a B color measurement brightness value and a theoretical brightness value of each gray level in a B color theoretical brightness table, and calculating a B color correction gray level value based on the B color theoretical brightness value and the B color measurement brightness value, specifically, calculating an error absolute value between the B color theoretical brightness value and the measurement brightness value of each gray level in the B color measurement brightness table, obtaining a gray level value corresponding to the B color measurement brightness value corresponding to the minimum error absolute value, and taking the gray level value as the correction gray level value corresponding to the gray level in the B color theoretical brightness table.
9. A computer device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that executes the method according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored which can be loaded and which executes the method according to any one of claims 1 to 7.
CN202110708194.0A 2021-06-24 2021-06-24 RGB (red, green and blue) three-color gamma correction method and system for LED display screen and computer storage medium thereof Active CN113393805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110708194.0A CN113393805B (en) 2021-06-24 2021-06-24 RGB (red, green and blue) three-color gamma correction method and system for LED display screen and computer storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110708194.0A CN113393805B (en) 2021-06-24 2021-06-24 RGB (red, green and blue) three-color gamma correction method and system for LED display screen and computer storage medium thereof

Publications (2)

Publication Number Publication Date
CN113393805A true CN113393805A (en) 2021-09-14
CN113393805B CN113393805B (en) 2022-02-22

Family

ID=77623974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110708194.0A Active CN113393805B (en) 2021-06-24 2021-06-24 RGB (red, green and blue) three-color gamma correction method and system for LED display screen and computer storage medium thereof

Country Status (1)

Country Link
CN (1) CN113393805B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211035A (en) * 2006-12-29 2008-07-02 群康科技(深圳)有限公司 LCD display gamma correction system and method
US20080180375A1 (en) * 2007-01-26 2008-07-31 Innocom Technology (Shenzhen) Co., Ltd. Method for establishing gamma correction table for liquid crystal display
CN101419783A (en) * 2007-10-22 2009-04-29 中华映管股份有限公司 Gamma curve correcting method
US20110057944A1 (en) * 2009-09-07 2011-03-10 Innocom Technology (Shenzhen) Co., Ltd. Method of establishing a gamma table
CN102855842A (en) * 2012-09-04 2013-01-02 京东方科技集团股份有限公司 Method and device for displaying and controlling images
CN103761956A (en) * 2013-12-20 2014-04-30 武汉精立电子技术有限公司 Gamma-Flicker comprehensive adjustment method for liquid crystal display
CN105427788A (en) * 2015-12-31 2016-03-23 武汉天马微电子有限公司 Method and system for automatically adjusting brightness and chroma of display device
CN106373527A (en) * 2016-11-11 2017-02-01 武汉精测电子技术股份有限公司 Maximum and minimum gray scale gamma and color temperature automatic adjusting method
CN108182914A (en) * 2017-12-28 2018-06-19 武汉华星光电半导体显示技术有限公司 Gamma corrects system and Gamma bearing calibrations
CN111326099A (en) * 2018-12-14 2020-06-23 西安诺瓦星云科技股份有限公司 Display correction method, device and system, storage medium and display system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211035A (en) * 2006-12-29 2008-07-02 群康科技(深圳)有限公司 LCD display gamma correction system and method
US20080180375A1 (en) * 2007-01-26 2008-07-31 Innocom Technology (Shenzhen) Co., Ltd. Method for establishing gamma correction table for liquid crystal display
CN101419783A (en) * 2007-10-22 2009-04-29 中华映管股份有限公司 Gamma curve correcting method
US20110057944A1 (en) * 2009-09-07 2011-03-10 Innocom Technology (Shenzhen) Co., Ltd. Method of establishing a gamma table
CN102855842A (en) * 2012-09-04 2013-01-02 京东方科技集团股份有限公司 Method and device for displaying and controlling images
CN103761956A (en) * 2013-12-20 2014-04-30 武汉精立电子技术有限公司 Gamma-Flicker comprehensive adjustment method for liquid crystal display
CN105427788A (en) * 2015-12-31 2016-03-23 武汉天马微电子有限公司 Method and system for automatically adjusting brightness and chroma of display device
CN106373527A (en) * 2016-11-11 2017-02-01 武汉精测电子技术股份有限公司 Maximum and minimum gray scale gamma and color temperature automatic adjusting method
CN108182914A (en) * 2017-12-28 2018-06-19 武汉华星光电半导体显示技术有限公司 Gamma corrects system and Gamma bearing calibrations
CN111326099A (en) * 2018-12-14 2020-06-23 西安诺瓦星云科技股份有限公司 Display correction method, device and system, storage medium and display system

Also Published As

Publication number Publication date
CN113393805B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
US9858853B2 (en) OLED display system and method
WO2019214449A1 (en) Screen brightness control method and device, and terminal device
WO2023000631A1 (en) Method and apparatus for determining correction coefficient of display screen light point, and computer device
CN110024020A (en) Display device, calibrating installation and its calibration method
TWI413977B (en) A method for creating a gamma look-up table and a displayer
JP4633035B2 (en) Liquid crystal display device and liquid crystal display device control method
JP4651647B2 (en) Method and apparatus for finding a new color temperature point
CN108541327B (en) Correction method for display panel spots
JP2003333614A (en) Image processing system, projector, image processing method, program, and information storage medium
CN110634437B (en) Gamma curve acquisition method and device for multi-segment display brightness and display equipment
CN110910847B (en) Gamma correction method and device for display module
CN107221272B (en) Display screen parameter setting method
JP4151643B2 (en) Color conversion matrix creation device, color conversion matrix creation program, and image display device
CN112992059B (en) Method and related device for adjusting Gamma of OLED display screen
CN110785803B (en) Image display device
WO2022120799A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN113393805B (en) RGB (red, green and blue) three-color gamma correction method and system for LED display screen and computer storage medium thereof
CN110896466B (en) White balance adjustment method and system of display device
CN116860143A (en) Image display processing method and device
CN114170960B (en) Custom Gamma correction method for silicon-based OLED micro-display screen
CN107274857B (en) Method for adjusting output image of display and display system
TWI455107B (en) Method for panel color correction and associated color correction system
CN112331121B (en) System and method for improving color uniformity of display panel
TWI739322B (en) Color calibrating auxiliary module and color calibrating method
KR100588156B1 (en) Control Method Of White Blance For Display Apparatus

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