WO2017049949A1 - Analog/digital signal compensation method and apparatus - Google Patents

Analog/digital signal compensation method and apparatus Download PDF

Info

Publication number
WO2017049949A1
WO2017049949A1 PCT/CN2016/084290 CN2016084290W WO2017049949A1 WO 2017049949 A1 WO2017049949 A1 WO 2017049949A1 CN 2016084290 W CN2016084290 W CN 2016084290W WO 2017049949 A1 WO2017049949 A1 WO 2017049949A1
Authority
WO
WIPO (PCT)
Prior art keywords
primary color
gain value
color gain
red
signal source
Prior art date
Application number
PCT/CN2016/084290
Other languages
French (fr)
Chinese (zh)
Inventor
李佳
曹芝勇
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017049949A1 publication Critical patent/WO2017049949A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Definitions

  • the present invention relates to the field of image display technologies, and in particular, to a method and apparatus for analog-digital signal compensation.
  • White balance is produced by the reproduction of color in electronic images.
  • a series of problems with color reproduction and tone processing can be solved by white balance adjustment. Since there are hardware and software differences between the displays of different terminals, especially TV terminals, if all the TV terminals use the same white balance parameters, it is easy to produce color cast, which affects the display quality of the terminal. Therefore, in the production process of the television terminal, the factory often needs to adjust the white balance parameters of each television terminal to achieve better color reproduction and image quality improvement.
  • the main object of the present invention is to provide a method and device for analog-digital signal compensation, which aims to solve the technical problem that adjusting the white balance parameter of the television terminal takes a long time and is inefficient, resulting in the TV terminal being unable to test.
  • the invention provides a method for analog signal compensation, the first signal source is a digital signal source, the second signal source is an analog signal source, and the analog signal compensation method comprises:
  • the terminal After the terminal performs white balance adjustment on the first signal source, acquiring a white balance parameter of the first signal source of the terminal, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value;
  • the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold value, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter by a first numerical multiple, the first numerical multiple a ratio of the first threshold value to the green primary color gain value; wherein the increased green primary color gain value is used as the first green primary color gain value and the increased red primary color gain value is used as the first red primary color gain value, and is increased.
  • the blue primary color gain value is used as the first blue primary color gain value;
  • the step of setting the white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value comprises:
  • the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value are set to a white balance parameter of the second source of the terminal.
  • the method further includes:
  • the method for modulating the analog signal further comprises:
  • Adjusting the first threshold, the second threshold, and/or the red gain pole if the image formed by the green primary gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast The value is adjusted to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set to the terminal second signal source.
  • the method for modulating the analog signal further comprises:
  • Adjusting the first threshold, the second threshold, and/or the red gain pole if the image formed by the green primary gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast The value is adjusted to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set to the terminal second signal source.
  • the present invention provides a method for analog-digital signal compensation, and a method for analog-digital signal compensation includes:
  • the terminal After the terminal performs white balance adjustment on the first signal source, acquiring a white balance parameter of the first signal source of the terminal, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value;
  • the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold value, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter by a first numerical multiple, the first numerical multiple a ratio of the first threshold to the green primary gain value;
  • the white balance parameter of the second source of the terminal is set according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value.
  • the increased green primary color gain value is used as the first green primary color gain value and the increased red primary color gain value as the first red primary color gain value and the increased blue primary color gain value as the first blue primary color gain value.
  • the value, the step of setting the white balance parameter of the second source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value includes:
  • the step of setting the white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value comprises:
  • the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value are set to a white balance parameter of the second source of the terminal.
  • the method further includes:
  • the method for modulating the analog signal further comprises:
  • Adjusting the first threshold, the second threshold, and/or the red gain pole if the image formed by the green primary gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast The value is adjusted to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set to the terminal second signal source.
  • the present invention also provides an apparatus for analog-digital signal compensation, and the apparatus for analog-digital signal compensation includes:
  • the parameter obtaining module is configured to obtain a white balance parameter of the first signal source of the terminal after the terminal performs white balance adjustment on the first signal source, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value. ;
  • a determining module configured to determine whether a green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source
  • the first numerical multiple is a ratio of the first threshold value to the green primary color gain value
  • a parameter setting module configured to set a white balance parameter of the second source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value.
  • parameter setting module includes:
  • a gain value determining unit configured to determine whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source
  • a first gain increasing unit configured to increase a first red primary color gain value to a second threshold when the first red primary color gain value is less than a second threshold, wherein the increased first red primary color gain value is used as a second Red primary color gain value;
  • a second gain increasing unit configured to increase a first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color a gain value as a second blue primary color gain value;
  • a parameter setting unit configured to set a white balance parameter of the second signal source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
  • the parameter setting unit comprises:
  • a ratio determining unit configured to determine whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source
  • a first secondary setting unit configured to reduce a second red primary color gain value to a red gain extreme value to obtain a third red primary color gain when the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source And setting a first green primary color gain value, a third red primary color gain value, and a second blue primary color gain value to a white balance parameter of the second source of the terminal.
  • the number setting unit further comprises:
  • a second secondary setting unit configured to: when the second red primary color gain value is less than or equal to a red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue primary color The gain value is set to the white balance parameter of the second source of the terminal.
  • the device for analog signal compensation further comprises:
  • a color cast detection module configured to detect, according to the chroma system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set as the second source of the terminal is color cast; if set, Adjusting the first threshold, the second threshold, and/or the red gain extreme value by performing color cast on the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the second source of the terminal Adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value set to the white balance parameter of the second source of the terminal.
  • the white balance parameter of the first signal source When detecting that the white balance parameter of the first signal source is unreasonable, the white balance parameter is adjusted, and finally the adjusted white balance parameter is used as the white balance parameter of the second signal source, thereby ensuring the second signal source.
  • the adjustment of the white balance parameter of the second signal source is automatically realized, without the need for the factory to perform a time-consuming and inefficient white balance adjustment process on the second signal source of the terminal, and also ensuring that the display brightness of the terminal is not It is small and can pass the energy consumption test smoothly.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for compensating analog-digital signals according to the present invention
  • FIG. 2 is a schematic diagram showing the refinement process of setting the white balance parameter of the second signal source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value in the method of analog modulus signal compensation according to the present invention.
  • the present invention provides a method for compensating analog-to-digital signals.
  • the method for compensating for analog-to-digital signals includes:
  • Step S10 after the terminal performs white balance adjustment on the first signal source, acquiring a white balance parameter of the first signal source of the terminal, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value;
  • the terminal is a smart TV
  • the first signal source is a digital signal source
  • the second signal source is an analog signal source.
  • the terminal may also be other types of terminals.
  • the first signal source may be an analog signal source
  • the second signal source may be a digital signal source, first to the terminal.
  • the analog signal source performs white balance adjustment, and then obtains the white balance parameter of the analog signal source to obtain a white balance parameter corresponding to the digital signal source according to the white balance parameter of the analog signal, and the execution process is basically the same as the embodiment.
  • Step S20 determining whether the green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source
  • the brightness may be too small, so the green base color gain needs to be increased; if the green base color gain of the first signal source is greater than or equal to the first threshold, the green base color gain is sufficiently large, and the second signal source is based on the green base color increase. The resulting brightness is not too small, so there is no need for increasing the gain of the green primary process.
  • the first threshold in the present invention is obtained based on the brightness formula
  • the first threshold of the digital signal source is obtained based on the brightness formula under the digital signal
  • the analog signal source is obtained.
  • a threshold value is 128, that is, when the green primary color gain value is greater than or equal to 128, the white balance parameter including the green primary color gain value can substantially ensure that the brightness is not too small.
  • Step S30 when the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter by a first numerical multiple, the first a numerical multiple is a ratio of the first threshold to the green primary gain value;
  • Step S40 setting a white balance parameter of the second signal source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value.
  • the green primary color gain value of the first signal source is smaller than the first threshold corresponding to the first signal source, indicating that applying the white balance parameter of the first signal source to the second signal source may cause the second signal source to be displayed
  • the brightness of the image is low, so the green primary color gain value of the white balance parameter of the first signal source is increased to the first threshold, and the red primary color gain value and the blue primary color gain value of the white balance parameter are increased by the first numerical multiple.
  • the first numerical multiple is a ratio of the first threshold to the green primary gain value.
  • the value B2 2, then R2, G2, B2 are used as the white balance parameters of the second signal source.
  • the white balance parameter of the first signal source can be directly used as the white balance parameter of the second signal source.
  • the white balance parameter of the first signal source of the terminal is obtained, and then the green primary color gain value of the acquired white balance parameter is compared with the first signal. Comparing the first threshold corresponding to the source, if the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold, and obtaining the red primary color gain value and the blue primary color gain in the obtained white balance parameter The value is increased by the same multiple as the multiple of the green primary color gain value, so that when the white balance parameter of the first signal source is detected to be unreasonable, the white balance parameter is adjusted, and finally the adjusted white balance parameter is used as the second.
  • the white balance parameter of the signal source automatically adjusts the white balance parameter of the second signal source under the premise of ensuring the brightness of the output image of the second signal source, without requiring the factory to take time-consuming and inefficient second terminal source
  • the white balance adjustment process also ensures that the terminal display brightness is not too small and can pass the energy consumption test smoothly.
  • the increased The green primary color gain value is used as the first green primary color gain value
  • the increased red primary color gain value as the first red primary color gain value
  • the increased blue primary color gain value as the first blue primary color gain value
  • the step S40 includes:
  • Step S41 determining whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source
  • Step S42 when the first red primary color gain value is less than the second threshold, increasing the first red primary color gain value to a second threshold, wherein the increased first red primary color gain value is used as the second red primary color gain value;
  • Step S43 increasing the first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color gain value is used as the second blue color Primary color gain value;
  • Step S44 setting a white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
  • the green primary color gain value When determining that the green primary color gain value is smaller than the first threshold in the white balance parameter of the first signal source, increasing the green primary color gain to the first threshold corresponding to the first signal source to obtain the first green primary color gain value, and increasing in proportion Corresponding red primary color gain value and blue primary color gain value to obtain a first red primary color gain value and a first blue primary color gain value, and then the first red primary color gain value and the second threshold corresponding to the first signal source (second threshold).
  • the determining process is substantially the same as the first threshold. The comparison is performed.
  • the surface uses the first green primary color gain value, the first red primary color gain value, and the first blue primary color gain value as the second signal.
  • the source may cause the brightness of the image displayed by the second signal source to be low, so that the first red gain value is increased to the second threshold to obtain the second red gain value, and the first blue gain value is increased by the second value multiple.
  • a second blue gain value wherein the second value is a ratio of the second threshold value to the first red primary color gain value, and the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value are set as terminals White balance parameters two sources.
  • the first red gain value is greater than or equal to the second threshold, indicating that applying the first green primary color gain value, the first red primary color gain value, and the first blue primary color gain value to the second signal source does not cause the second signal source to be displayed
  • the image brightness is low, so the first green primary color gain value, the first red primary color gain value, and the first blue primary color gain value can be directly used as the white balance parameter of the second signal source.
  • the first red primary color gain value of the first signal source is less than a second threshold, if the first red primary color gain value is less than the second threshold, increasing the first red primary color gain value to the first The second threshold obtains the second red primary color gain value, and the first blue primary color gain value is increased by the second numerical multiple to obtain the second blue primary color gain value, and the first green primary color gain value, the first red primary color gain value, and the first The blue primary color gain value is used as the white balance parameter of the second signal source, so that when the green primary color gain value is sufficiently large, the red primary color gain value is further ensured to be sufficiently large, and the green primary color gain value can be assisted to ensure the brightness of the second secondary signal source. Further ensure that the terminal passes the energy consumption test.
  • the step S44 includes:
  • Step S441 determining whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source
  • Step S442 when the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, the second red primary color gain value is reduced to the red gain extreme value to obtain the third red primary color gain value;
  • Step S443 setting the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value as white balance parameters of the second source of the terminal.
  • the red primary color gain value of the first signal source is adjusted twice to obtain the second red primary color gain value, it is determined whether the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, and if the second red primary color is The gain value is greater than the red gain extreme value, indicating that the image displayed by the white balance parameter including the second red primary color gain value is reddish, and the second red primary color gain value is reduced to the red gain extreme value and the reduced second value is obtained.
  • the red primary color gain value is used as the third red primary color gain value, the second blue primary color gain value is unchanged, and then the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value are set as the terminal second signal source.
  • White balance parameters are used as the third red primary color gain value, the second blue primary color gain value is unchanged, and then the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value are set as the terminal second signal source.
  • the second red primary color gain value red gain pole obtained by the two adjustments is further adjusted.
  • the values are compared to prevent the second red primary color gain value from being too large, so that the image displayed by the white balance parameter including the second red primary color gain value is reddish, and the white balance parameter acquired by the second signal source is displayed to have a moderate image chromaticity. .
  • the method further includes:
  • Step S444 when the second red primary color gain value is less than or equal to the red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value are set as the terminal number.
  • the white balance parameter of the two sources when the second red primary color gain value is less than or equal to the red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value are set as the terminal number.
  • the red primary color gain value of the first signal source is adjusted twice to obtain the second red primary color gain value, it is determined whether the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, and if the second red primary color is The gain value is less than or equal to the red gain extreme value, indicating that the white balance parameter including the second red primary color gain value displays a moderate image chromaticity, and does not need to adjust the second red primary color gain value, thereby further increasing the first green primary color gain value, The second red primary color gain value and the second blue primary color gain value are set to a white balance parameter of the second source of the terminal.
  • the second red primary color gain value red gain pole obtained by the two adjustments is further adjusted.
  • the values are compared to prevent the second red primary color gain value from being too large, so that the image displayed by the white balance parameter including the second red primary color gain value is reddish, and the white balance parameter acquired by the second signal source is displayed to have a moderate image chromaticity. .
  • the method for analog-digital signal compensation further includes:
  • Step S50 detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set as the second signal source of the terminal is color cast;
  • step S50 may be set after step S443 or step S444, and the chrominance system may adopt the 1931 CIE-XYZ standard chromaticity system (ie, CIE-XYZ chromaticity system), and obtain the adjusted after the second signal source.
  • CIE-XYZ standard chromaticity system ie, CIE-XYZ chromaticity system
  • the green primary color gain value, the red primary color gain value, and the blue primary color gain value in the adjusted white balance parameter are obtained, and then the green primary color gain value (G) obtained by the second signal source.
  • the red primary color gain value (R) and the blue primary color gain value (B) are converted from the values in the CIE-RGB chromaticity system to the values in the CIE-XYZ chromaticity system, and the obtained green primary color gain value (G) is determined.
  • the red primary color gain value (R) and the blue primary color gain value (B) correspond to whether the value in the CIE-XYZ chromaticity system is up to standard, that is, based on the CIE-XYZ chromaticity system, the green balance parameter set as the terminal second signal source is determined. Whether the image formed by the primary color gain value, the red primary color gain value, and the blue primary color gain value is color cast.
  • Step S60 if the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast, adjust the first threshold, the second threshold, and/or The red gain extreme value is used to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value set to the white balance parameter of the second source of the terminal.
  • the first threshold, the second threshold, and the red are increased or decreased.
  • One or more of three values of the gain extremum, and re-executing the analog-to-digital signal of the present invention after increasing or decreasing one or more of the three values of the first threshold, the second threshold, and the red gain extremum a step of the first, second, third or fourth embodiment of the method for compensating to adjust a green primary color gain value, a red primary color gain value, and a blue primary color gain value of the white balance parameter set as the second source of the terminal, And according to the chrominance system (for example, CIE-XYZ chromaticity system), detecting whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter currently set as the second source of the terminal is biased.
  • the chrominance system for example, CIE-XYZ chromaticity system
  • Color if no color cast occurs, save the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter currently set as the second source of the terminal; if there is a color cast, continue to increase or Reducing one or more of the three values of the first threshold, the second threshold, and the red gain extreme value until the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the current second signal source The formed image does not undergo color cast.
  • the size can be set according to actual needs, for example, whether the first threshold is first increased or the second threshold is increased first, and the actual demand can be set.
  • the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the second source of the terminal are adjusted to avoid displaying the color cast image, and an empirical value (eg, a first threshold, The combination of the second threshold or the red gain extreme value) and the actual color detection avoids that the second signal source generates a color cast based on the acquired white balance parameter due to the difference in the hardware and software of the terminal, which is not adapted to the empirical value. It is also possible to adjust the empirical value according to the actual situation of the terminal hardware and the software, so that the image formed by the green primary color gain value, the red primary color gain value and the blue primary color gain value of the white balance parameter set as the second signal source does not undergo color cast.
  • an empirical value eg, a first threshold, The combination of the second threshold or the red gain extreme value
  • the actual color detection avoids that the second signal source generates a color cast based on the acquired white balance parameter due to the difference in the hardware and software of the terminal, which is not
  • the present invention also provides an apparatus for compensating for analog-to-digital signals.
  • the apparatus for compensating for analog-to-digital signals includes:
  • the parameter obtaining module is configured to obtain a white balance parameter of the first signal source of the terminal after the terminal performs white balance adjustment on the first signal source, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value. ;
  • a determining module configured to determine whether a green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source
  • the first numerical multiple is a ratio of the first threshold value to the green primary color gain value
  • a parameter setting module configured to set a white balance parameter of the second source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value.
  • the parameter setting module includes:
  • a gain value determining unit configured to determine whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source
  • a first gain increasing unit configured to increase a first red primary color gain value to a second threshold when the first red primary color gain value is less than a second threshold, wherein the increased first red primary color gain value is used as a second Red primary color gain value;
  • a second gain increasing unit configured to increase a first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color a gain value as a second blue primary color gain value;
  • a parameter setting unit configured to set a white balance parameter of the second signal source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
  • the parameter setting unit includes:
  • a ratio determining unit configured to determine whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source
  • a first secondary setting unit configured to reduce a second red primary color gain value to a red gain extreme value to obtain a third red primary color gain when the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source And setting a first green primary color gain value, a third red primary color gain value, and a second blue primary color gain value to a white balance parameter of the second source of the terminal.
  • the parameter setting unit further includes:
  • a second secondary setting unit configured to: when the second red primary color gain value is less than or equal to a red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue primary color The gain value is set to the white balance parameter of the second source of the terminal.
  • the apparatus for analog-digital signal compensation further includes:
  • a color cast detection module configured to detect, according to the chroma system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set as the second source of the terminal is color cast; if set, Adjusting the first threshold, the second threshold, and/or the red gain extreme value by performing color cast on the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the second source of the terminal Adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value set to the white balance parameter of the second source of the terminal.

Abstract

Disclosed are an analog/digital signal compensation method and apparatus. The method comprises: after a terminal performs white balance adjustment on a first signal source, obtaining a white balance parameter of the first signal source of the terminal; determining whether a green-primary-color gain value in the white balance parameter is less than a first threshold corresponding to the first signal source; when the green-primary-color gain value is less than the first threshold, increasing the green-primary-color gain value to the first threshold, to obtain a first green-primary-color gain value, and increasing a red-primary-color gain value and a blue-primary-color gain value of the white balance parameter by a multiple which is a first numerical value, to obtain the first red-primary-color gain value and a first blue-primary-color gain value, the first numerical value being the ratio of the first threshold to the green-primary-color gain value; and setting the first green-primary-color gain value, the first red-primary-color gain value, and the first blue-primary-color gain value as a white balance parameter of a second signal source of the terminal. By means of the present invention, there is no need to perform a time-consuming and inefficient white balance adjustment process on all signal sources by a factory, and it is ensured that the terminal can successfully pass an energy-consumption test.

Description

模数信号补偿的方法及装置  Method and device for analog signal compensation
技术领域Technical field
本发明涉及图像显示技术领域,尤其涉及一种模数信号补偿的方法及装置。The present invention relates to the field of image display technologies, and in particular, to a method and apparatus for analog-digital signal compensation.
背景技术Background technique
白平衡是随着电子影像再现色彩真实而产生的, 通过白平衡调节可以解决色彩还原和色调处理的一系列问题。由于不同终端,特别是电视终端,的显示屏之间存在硬件和软件等方面的差异,如果所有电视终端都使用相同的白平衡参数则很容易产生偏色,影响终端的显示画质。因此,在电视终端的生产过程中,工厂往往需要对每一台电视终端的白平衡参数进行调整,以达到更好的还原色彩、提升画质的目的。White balance is produced by the reproduction of color in electronic images. A series of problems with color reproduction and tone processing can be solved by white balance adjustment. Since there are hardware and software differences between the displays of different terminals, especially TV terminals, if all the TV terminals use the same white balance parameters, it is easy to produce color cast, which affects the display quality of the terminal. Therefore, in the production process of the television terminal, the factory often needs to adjust the white balance parameters of each television terminal to achieve better color reproduction and image quality improvement.
在电视终端的生产过程中,对电视终端的白平衡参数调整有两种方式:一种是对电视终端所有信号源的白平衡参数进行逐个调整,但是这种方式非常耗费时间,白平衡参数调整效率低;另一种是只调整数字信号(例如HDMI信号(High Definition Multimedia Interface,高清晰度多媒体接口))或者只调整模拟信号的白平衡参数,然后其余信源全部采用与数字信号或模拟信号相同的白平衡参数,但是,根据亮度公式(例如,模拟信号下:Y1=0.3R+0.6G+0.1B;数字信号下:Y2=0.21R+0.72G+0.07B,其中Y1为模拟信号下的亮度,Y2为数字信号下的亮度,R为红基色增益值,G为绿基色增益值,B为蓝基色增益值)定义,同样的白平衡参数,得到的模拟信号与数字信号的亮度是有差异的,可能会导致模拟信号或数字信号成像偏暗,导致电视终端不能通过能耗测试。In the production process of the television terminal, there are two ways to adjust the white balance parameter of the television terminal: one is to adjust the white balance parameters of all the signal sources of the television terminal one by one, but this method is very time consuming, and the white balance parameter is adjusted. Inefficient; the other is to only adjust digital signals (such as HDMI signals (High Definition Multimedia Interface, high-definition multimedia interface)) or only adjust the white balance parameter of the analog signal, and then all the other sources use the same white balance parameter as the digital signal or analog signal, but according to the brightness formula (for example, under the analog signal: Y1 =0.3R+0.6G+0.1B; under the digital signal: Y2=0.21R+0.72G+0.07B, where Y1 is the brightness under the analog signal, Y2 is the brightness under the digital signal, and R is the red base color gain value, G For the green base gain value, B is the blue base color gain value), the same white balance parameter, the resulting analog signal and the digital signal brightness are different, may cause the analog signal or digital signal to be dark, resulting in the TV terminal Can not pass the energy test.
发明内容Summary of the invention
本发明的主要目的在于提供一种模数信号补偿的方法及装置,旨在解决调整电视终端白平衡参数耗费时间长、效率低、导致电视终端不能测试的技术问题。The main object of the present invention is to provide a method and device for analog-digital signal compensation, which aims to solve the technical problem that adjusting the white balance parameter of the television terminal takes a long time and is inefficient, resulting in the TV terminal being unable to test.
本发明提供一种模数信号补偿的方法,第一信号源为数字信号源,第二信号源为模拟信号源,模数信号补偿的方法包括:The invention provides a method for analog signal compensation, the first signal source is a digital signal source, the second signal source is an analog signal source, and the analog signal compensation method comprises:
在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,其中白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值;After the terminal performs white balance adjustment on the first signal source, acquiring a white balance parameter of the first signal source of the terminal, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value;
判断白平衡参数中的绿基色增益值是否小于第一信号源对应的第一阈值,其中第一阈值基于预设的亮度公式确定;Determining whether the green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source, wherein the first threshold is determined based on a preset brightness formula;
当绿基色增益值小于第一阈值时,将绿基色增益值增大至第一阈值,并将白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为第一阈值与绿基色增益值的比值;其中,将增大后的绿基色增益值作为第一绿基色增益值、增大后的红基色增益值作为第一红基色增益值、增大后的蓝基色增益值作为第一蓝基色增益值;When the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold value, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter by a first numerical multiple, the first numerical multiple a ratio of the first threshold value to the green primary color gain value; wherein the increased green primary color gain value is used as the first green primary color gain value and the increased red primary color gain value is used as the first red primary color gain value, and is increased. The blue primary color gain value is used as the first blue primary color gain value;
判断第一红基色增益值是否小于第一信号源对应的第二阈值;Determining whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source;
当第一红基色增益值小于第二阈值时,将第一红基色增益值增大至第二阈值,其中增大后的第一红基色增益值作为第二红基色增益值;When the first red primary color gain value is less than the second threshold, increasing the first red primary color gain value to a second threshold, wherein the increased first red primary color gain value is used as the second red primary color gain value;
将第一蓝基色增益值增大第二数值倍,该第二数值为第二阈值与第一红基色增益值的比值,其中增大后的第一蓝基色增益值作为第二蓝基色增益值;And increasing a first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color gain value is used as the second blue primary color gain value ;
根据第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置终端第二信号源的白平衡参数。And setting a white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
优选地,根据第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置终端第二信号源的白平衡参数的步骤包括:Preferably, the step of setting the white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value comprises:
判断第二红基色增益值是否大于第一信号源对应的红增益极值;Determining whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source;
当第二红基色增益值大于第一信号源对应的红增益极值时,将第二红基色增益值减小至红增益极值而获取第三红基色增益值;When the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, reducing the second red primary color gain value to the red gain extreme value to obtain the third red primary color gain value;
将第一绿基色增益值、第三红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。The first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value are set to a white balance parameter of the second source of the terminal.
优选地,判断第二红基色增益值是否大于第一信号源对应的红增益极值的步骤之后还包括:Preferably, after the step of determining whether the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, the method further includes:
当第二红基色增益值小于或等于第一信号源对应的红增益极值时,将第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。When the second red primary color gain value is less than or equal to the red gain extreme value corresponding to the first signal source, setting the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value as the terminal second signal source White balance parameters.
优选地,模数信号补偿的方法还包括:Preferably, the method for modulating the analog signal further comprises:
根据色度系统检测设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;Detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast;
若设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整第一阈值、第二阈值和/或红增益极值,以调整设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。Adjusting the first threshold, the second threshold, and/or the red gain pole if the image formed by the green primary gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast The value is adjusted to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set to the terminal second signal source.
优选地,模数信号补偿的方法还包括:Preferably, the method for modulating the analog signal further comprises:
根据色度系统检测设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;Detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast;
若设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整第一阈值、第二阈值和/或红增益极值,以调整设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。Adjusting the first threshold, the second threshold, and/or the red gain pole if the image formed by the green primary gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast The value is adjusted to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set to the terminal second signal source.
为实现上述目的,本发明提供的一种模数信号补偿的方法,模数信号补偿的方法包括:To achieve the above object, the present invention provides a method for analog-digital signal compensation, and a method for analog-digital signal compensation includes:
在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,其中白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值;After the terminal performs white balance adjustment on the first signal source, acquiring a white balance parameter of the first signal source of the terminal, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value;
判断白平衡参数中的绿基色增益值是否小于第一信号源对应的第一阈值;Determining whether the green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source;
当绿基色增益值小于第一阈值时,将绿基色增益值增大至第一阈值,并将白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为第一阈值与绿基色增益值的比值;When the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold value, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter by a first numerical multiple, the first numerical multiple a ratio of the first threshold to the green primary gain value;
根据增大后的绿基色增益值、红基色增益值和蓝基色增益值设置为终端第二信号源的白平衡参数。The white balance parameter of the second source of the terminal is set according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value.
优选地,将增大后的绿基色增益值作为第一绿基色增益值、增大后的红基色增益值作为第一红基色增益值、增大后的蓝基色增益值作为第一蓝基色增益值,根据增大后的绿基色增益值、红基色增益值和蓝基色增益值设置终端第二信号源的白平衡参数的步骤包括:Preferably, the increased green primary color gain value is used as the first green primary color gain value and the increased red primary color gain value as the first red primary color gain value and the increased blue primary color gain value as the first blue primary color gain value. The value, the step of setting the white balance parameter of the second source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value includes:
判断第一红基色增益值是否小于第一信号源对应的第二阈值;Determining whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source;
当第一红基色增益值小于第二阈值时,将第一红基色增益值增大至第二阈值,其中增大后的第一红基色增益值作为第二红基色增益值;When the first red primary color gain value is less than the second threshold, increasing the first red primary color gain value to a second threshold, wherein the increased first red primary color gain value is used as the second red primary color gain value;
将第一蓝基色增益值增大第二数值倍,该第二数值为第二阈值与第一红基色增益值的比值,其中增大后的第一蓝基色增益值作为第二蓝基色增益值;And increasing a first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color gain value is used as the second blue primary color gain value ;
根据第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置终端第二信号源的白平衡参数。And setting a white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
优选地,根据第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置终端第二信号源的白平衡参数的步骤包括:Preferably, the step of setting the white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value comprises:
判断第二红基色增益值是否大于第一信号源对应的红增益极值;Determining whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source;
当第二红基色增益值大于第一信号源对应的红增益极值时,将第二红基色增益值减小至红增益极值而获取第三红基色增益值;When the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, reducing the second red primary color gain value to the red gain extreme value to obtain the third red primary color gain value;
将第一绿基色增益值、第三红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。The first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value are set to a white balance parameter of the second source of the terminal.
优选地,判断第二红基色增益值是否大于第一信号源对应的红增益极值的步骤之后还包括:Preferably, after the step of determining whether the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, the method further includes:
当第二红基色增益值小于或等于第一信号源对应的红增益极值时,将第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。When the second red primary color gain value is less than or equal to the red gain extreme value corresponding to the first signal source, setting the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value as the terminal second signal source White balance parameters.
优选地,模数信号补偿的方法还包括:Preferably, the method for modulating the analog signal further comprises:
根据色度系统检测设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;Detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast;
若设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整第一阈值、第二阈值和/或红增益极值,以调整设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。Adjusting the first threshold, the second threshold, and/or the red gain pole if the image formed by the green primary gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast The value is adjusted to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set to the terminal second signal source.
为实现上述目的,本发明还提供一种模数信号补偿的装置,模数信号补偿的装置包括:To achieve the above object, the present invention also provides an apparatus for analog-digital signal compensation, and the apparatus for analog-digital signal compensation includes:
参数获取模块,用于在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,其中白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值;The parameter obtaining module is configured to obtain a white balance parameter of the first signal source of the terminal after the terminal performs white balance adjustment on the first signal source, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value. ;
判断模块,用于判断白平衡参数中的绿基色增益值是否小于第一信号源对应的第一阈值;a determining module, configured to determine whether a green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source;
增大模块,用于当绿基色增益值小于第一阈值时,将绿基色增益值增大至第一阈值,并将白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为第一阈值与绿基色增益值的比值;And increasing the module, when the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter by a first numerical multiple The first numerical multiple is a ratio of the first threshold value to the green primary color gain value;
参数设置模块,用于根据增大后的绿基色增益值、红基色增益值和蓝基色增益值设置终端第二信号源的白平衡参数。And a parameter setting module, configured to set a white balance parameter of the second source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value.
优选地,将增大后的绿基色增益值作为第一绿基色增益值、增大后的红基色增益值作为第一红基色增益值、增大后的蓝基色增益值作为第一蓝基色增益值,参数设置模块包括:Preferably, the increased green primary color gain value is used as the first green primary color gain value and the increased red primary color gain value as the first red primary color gain value and the increased blue primary color gain value as the first blue primary color gain value. Value, parameter setting module includes:
增益值判断单元,用于判断第一红基色增益值是否小于第一信号源对应的第二阈值;a gain value determining unit, configured to determine whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source;
第一增益增大单元,用于当第一红基色增益值小于第二阈值时,将第一红基色增益值增大至第二阈值,其中增大后的第一红基色增益值作为第二红基色增益值;a first gain increasing unit, configured to increase a first red primary color gain value to a second threshold when the first red primary color gain value is less than a second threshold, wherein the increased first red primary color gain value is used as a second Red primary color gain value;
第二增益增大单元,用于将第一蓝基色增益值增大第二数值倍,该第二数值为第二阈值与第一红基色增益值的比值,其中增大后的第一蓝基色增益值作为第二蓝基色增益值;a second gain increasing unit, configured to increase a first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color a gain value as a second blue primary color gain value;
参数设置单元,用于根据第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置终端第二信号源的白平衡参数。And a parameter setting unit, configured to set a white balance parameter of the second signal source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
优选地,参数设置单元包括:Preferably, the parameter setting unit comprises:
比值判断单元,用于判断第二红基色增益值是否大于第一信号源对应的红增益极值;a ratio determining unit, configured to determine whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source;
第一次级设置单元,用于当第二红基色增益值大于第一信号源对应的红增益极值时,将第二红基色增益值减小至红增益极值而获取第三红基色增益值,并将第一绿基色增益值、第三红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。a first secondary setting unit, configured to reduce a second red primary color gain value to a red gain extreme value to obtain a third red primary color gain when the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source And setting a first green primary color gain value, a third red primary color gain value, and a second blue primary color gain value to a white balance parameter of the second source of the terminal.
优选地,数设置单元还包括:Preferably, the number setting unit further comprises:
第二次级设置单元,用于当第二红基色增益值小于或等于第一信号源对应的红增益极值时,将第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。a second secondary setting unit, configured to: when the second red primary color gain value is less than or equal to a red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue primary color The gain value is set to the white balance parameter of the second source of the terminal.
优选地,模数信号补偿的装置还包括:Preferably, the device for analog signal compensation further comprises:
偏色检测模块,用于根据色度系统检测设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;若设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整第一阈值、第二阈值和/或红增益极值,以调整设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。a color cast detection module, configured to detect, according to the chroma system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set as the second source of the terminal is color cast; if set, Adjusting the first threshold, the second threshold, and/or the red gain extreme value by performing color cast on the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the second source of the terminal Adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value set to the white balance parameter of the second source of the terminal.
本发明在检测到第一信号源的白平衡参数不合理时,对该白平衡参数进行调整,最后将调整后的白平衡参数作为第二信号源的白平衡参数,从而在保证第二信号源输出图像亮度的前提下,自动实现了对第二信号源白平衡参数的调整,而不需要工厂对终端第二信号源进行费时、效率低的白平衡调整过程,也保证了终端显示亮度不会偏小、能够顺利通过能耗测试。When detecting that the white balance parameter of the first signal source is unreasonable, the white balance parameter is adjusted, and finally the adjusted white balance parameter is used as the white balance parameter of the second signal source, thereby ensuring the second signal source. Under the premise of outputting the brightness of the image, the adjustment of the white balance parameter of the second signal source is automatically realized, without the need for the factory to perform a time-consuming and inefficient white balance adjustment process on the second signal source of the terminal, and also ensuring that the display brightness of the terminal is not It is small and can pass the energy consumption test smoothly.
附图说明DRAWINGS
图1为本发明模数信号补偿的方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a method for compensating analog-digital signals according to the present invention;
图2为本发明模数信号补偿的方法中根据增大后的绿基色增益值、红基色增益值和蓝基色增益值设置终端第二信号源的白平衡参数的细化流程示意图。FIG. 2 is a schematic diagram showing the refinement process of setting the white balance parameter of the second signal source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value in the method of analog modulus signal compensation according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种模数信号补偿的方法,在本发明模数信号补偿的方法的第一实施例中,参照图1,该模数信号补偿的方法包括:The present invention provides a method for compensating analog-to-digital signals. In a first embodiment of the method for compensating analog-to-digital signals according to the present invention, referring to FIG. 1, the method for compensating for analog-to-digital signals includes:
步骤S10,在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,其中白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值;Step S10, after the terminal performs white balance adjustment on the first signal source, acquiring a white balance parameter of the first signal source of the terminal, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value;
在本实施例中,终端为智能电视,第一信号源为数字信号源,第二信号源为模拟信号源,在工厂的技术人员完成了对电视终端的数字信号源的白平衡调整后,获取数字信号源的白平衡参数,该数字信号源的白平衡参数包括三基色的增益值,即该白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值。In this embodiment, the terminal is a smart TV, the first signal source is a digital signal source, and the second signal source is an analog signal source. After the factory technician completes the white balance adjustment of the digital signal source of the television terminal, the acquisition is performed. A white balance parameter of the digital signal source, the white balance parameter of the digital signal source includes a gain value of the three primary colors, that is, the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value.
此外,终端也可为其它类型的终端,在本发明模数信号补偿的方法的其它实施例中,第一信号源可以为模拟信号源,第二信号源可以为数字信号源,先对终端的模拟信号源进行白平衡调整,然后获取该模拟信号源的白平衡参数,以根据该模拟信号的白平衡参数得到数字信号源对应的白平衡参数,执行过程与本实施例基本相同。In addition, the terminal may also be other types of terminals. In other embodiments of the method for modulating the analog signal of the present invention, the first signal source may be an analog signal source, and the second signal source may be a digital signal source, first to the terminal. The analog signal source performs white balance adjustment, and then obtains the white balance parameter of the analog signal source to obtain a white balance parameter corresponding to the digital signal source according to the white balance parameter of the analog signal, and the execution process is basically the same as the embodiment.
步骤S20,判断白平衡参数中的绿基色增益值是否小于第一信号源对应的第一阈值;Step S20, determining whether the green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source;
基于亮度公式(例如,模拟信号下:Y1=0.3R+0.6G+0.1B;数字信号下:Y2=0.21R+0.72G+0.07B,其中Y1为模拟信号下的亮度,Y2为数字信号下的亮度,R为红基色增益值,G为绿基色增益值,B为蓝基色增益值),绿基色增益值对数字信号的亮度贡献最大,红基色增益值贡献次之,蓝基色增益值贡献最小,故先判断获取的白平衡参数(第一信号源(在本实施例中第一信号源为数字信号源)的白平衡参数)中的绿基色增益值是否小于第一信号源对应的第一阈值(该第一阈值可以是用户设置或者终端自动设置),若第一信号源的绿基色增益值小于第一阈值,表明绿基色增益过小,第二信号源基于该绿基色增益所得到的亮度可能会偏小,故需要对该绿基色增益进行增大处理;若第一信号源的绿基色增益大于等于第一阈值,表明绿基色增益足够大,第二信号源基于该绿基色增益所得到的亮度不会偏小,故无需要对该绿基色增益进行增大处理。Based on the brightness formula (for example, under analog signal: Y1=0.3R+0.6G+0.1B; under digital signal: Y2=0.21R+0.72G+0.07B, where Y1 is the brightness under the analog signal and Y2 is the digital signal The brightness, R is the red primary color gain value, G is the green primary color gain value, B is the blue primary color gain value), the green primary color gain value contributes the most to the luminance of the digital signal, the red primary color gain value contributes the second, and the blue primary color gain value contributes. The smallest, so first determine whether the acquired white balance parameter (the first signal source (in this embodiment, the first signal source is a digital signal source) white balance parameter) in the green primary color gain value is smaller than the first signal source corresponding to the first a threshold (the first threshold may be set by the user or automatically set by the terminal), if the green primary color gain value of the first signal source is less than the first threshold, indicating that the green primary color gain is too small, and the second signal source is obtained based on the green primary color gain The brightness may be too small, so the green base color gain needs to be increased; if the green base color gain of the first signal source is greater than or equal to the first threshold, the green base color gain is sufficiently large, and the second signal source is based on the green base color increase. The resulting brightness is not too small, so there is no need for increasing the gain of the green primary process.
为了更好的理解本方案,对第一阈值的确定进行解释,本发明中的第一阈值是基于亮度公式得到的,数字信号源的第一阈值基于数字信号下的亮度公式得到,模拟信号源的第一阈值基于模拟信号下的亮度公式(亮度公式是基于终端显示屏特性和各类芯片技术参数并经过多次试验或测试得到的)得到,例如数字信号下亮度公式为 Y3=0.2126R+0.7152G+0.0722B(Y3为数字信号下的亮度,R为红基色增益值,G为绿基色增益值,B为蓝基色增益值),该数字信号的亮度公式对应的第一阈值为128,即绿基色增益值大于等于128时,包含该绿基色增益值的白平衡参数能够基本保证亮度不会偏小。In order to better understand the solution, the determination of the first threshold is explained. The first threshold in the present invention is obtained based on the brightness formula, and the first threshold of the digital signal source is obtained based on the brightness formula under the digital signal, and the analog signal source is obtained. The first threshold is based on the brightness formula under the analog signal (the brightness formula is based on the characteristics of the terminal display and various chip technical parameters and has been tested or tested many times), for example, the brightness formula under the digital signal is Y3=0.2126R+0.7152G+0.0722B (Y3 is the brightness under the digital signal, R is the red primary color gain value, G is the green primary color gain value, B is the blue primary color gain value), and the brightness formula of the digital signal corresponds to the first When a threshold value is 128, that is, when the green primary color gain value is greater than or equal to 128, the white balance parameter including the green primary color gain value can substantially ensure that the brightness is not too small.
步骤S30,当绿基色增益值小于第一阈值时,将绿基色增益值增大至第一阈值,并将白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为第一阈值与绿基色增益值的比值;Step S30, when the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter by a first numerical multiple, the first a numerical multiple is a ratio of the first threshold to the green primary gain value;
步骤S40,根据增大后的绿基色增益值、红基色增益值和蓝基色增益值设置终端第二信号源的白平衡参数。Step S40, setting a white balance parameter of the second signal source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value.
在判定第一信号源的白平衡参数中绿基色增益值小于第一信号源对应的第一阈值时,表明第一信号源的白平衡参数应用到第二信号源可能会导致第二信号源显示的图像亮度偏低,故将该第一信号源的白平衡参数中绿基色增益值增大至第一阈值,同时将白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为第一阈值与绿基色增益值的比值。例如第一信号源的白平衡参数中红基色增益值R1=2、绿基色增益值G1=4,蓝基色增益值B1=1,第一信号源对应的第一阈值为8,则G1调整为8,第一数值为2,R1调整为4,B1调整为2,即增大后的红基色增益值R2=4,增大后的绿基色增益值G2=8,增大后的蓝基色增益值B2=2,然后将R2、G2、B2作为第二信号源的白平衡参数。在判定第一信号源的白平衡参数中绿基色增益值大于等于第一信号源对应的第一阈值时,表明第一信号源的白平衡参数应用到第二信号源不会导致第二信号源显示的图像亮度偏低,故可直接将第一信号源的白平衡参数作为第二信号源的白平衡参数。When determining that the green primary color gain value of the first signal source is smaller than the first threshold corresponding to the first signal source, indicating that applying the white balance parameter of the first signal source to the second signal source may cause the second signal source to be displayed The brightness of the image is low, so the green primary color gain value of the white balance parameter of the first signal source is increased to the first threshold, and the red primary color gain value and the blue primary color gain value of the white balance parameter are increased by the first numerical multiple. The first numerical multiple is a ratio of the first threshold to the green primary gain value. For example, in the white balance parameter of the first signal source, the red primary color gain value R1=2, the green primary color gain value G1=4, the blue primary color gain value B1=1, and the first threshold corresponding to the first signal source is 8, then G1 is adjusted to 8. The first value is 2, R1 is adjusted to 4, B1 is adjusted to 2, that is, the increased red primary color gain value R2=4, the increased green primary color gain value G2=8, and the increased blue primary color gain. The value B2 = 2, then R2, G2, B2 are used as the white balance parameters of the second signal source. When determining that the green primary color gain value of the first signal source is greater than or equal to the first threshold corresponding to the first signal source, indicating that applying the white balance parameter of the first signal source to the second signal source does not cause the second signal source The brightness of the displayed image is low, so the white balance parameter of the first signal source can be directly used as the white balance parameter of the second signal source.
在本实施例中,通过在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,然后将获取的白平衡参数中的绿基色增益值与该第一信号源对应的第一阈值进行比较,若该绿基色增益值小于第一阈值,则将该绿基色增益值增大至第一阈值,并将获取的白平衡参数中红基色增益值和蓝基色增益值增大与绿基色增益值增大倍数相同的倍数,从而在检测到第一信号源的白平衡参数不合理时,对该白平衡参数进行调整,最后将调整后的白平衡参数作为第二信号源的白平衡参数,从而在保证第二信号源输出图像亮度的前提下,自动实现了对第二信号源白平衡参数的调整,而不需要工厂对终端第二信号源进行费时、效率低的白平衡调整过程,也保证了终端显示亮度不会偏小、能够顺利通过能耗测试。In this embodiment, after the terminal adjusts the white balance of the first signal source, the white balance parameter of the first signal source of the terminal is obtained, and then the green primary color gain value of the acquired white balance parameter is compared with the first signal. Comparing the first threshold corresponding to the source, if the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold, and obtaining the red primary color gain value and the blue primary color gain in the obtained white balance parameter The value is increased by the same multiple as the multiple of the green primary color gain value, so that when the white balance parameter of the first signal source is detected to be unreasonable, the white balance parameter is adjusted, and finally the adjusted white balance parameter is used as the second. The white balance parameter of the signal source automatically adjusts the white balance parameter of the second signal source under the premise of ensuring the brightness of the output image of the second signal source, without requiring the factory to take time-consuming and inefficient second terminal source The white balance adjustment process also ensures that the terminal display brightness is not too small and can pass the energy consumption test smoothly.
进一步地,在本发明模数信号补偿的方法的第一实施例的基础上,提出模数信号补偿的方法的第二实施例,参照图2,在第二实施例中,将增大后的绿基色增益值作为第一绿基色增益值、增大后的红基色增益值作为第一红基色增益值、增大后的蓝基色增益值作为第一蓝基色增益值,步骤S40包括:Further, based on the first embodiment of the method for compensating the analog-digital signal of the present invention, a second embodiment of the method for compensating the analog-digital signal is proposed. Referring to FIG. 2, in the second embodiment, the increased The green primary color gain value is used as the first green primary color gain value, the increased red primary color gain value as the first red primary color gain value, and the increased blue primary color gain value as the first blue primary color gain value, and the step S40 includes:
步骤S41,判断第一红基色增益值是否小于第一信号源对应的第二阈值;Step S41, determining whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source;
步骤S42,当第一红基色增益值小于第二阈值时,将第一红基色增益值增大至第二阈值,其中增大后的第一红基色增益值作为第二红基色增益值;Step S42, when the first red primary color gain value is less than the second threshold, increasing the first red primary color gain value to a second threshold, wherein the increased first red primary color gain value is used as the second red primary color gain value;
步骤S43,将第一蓝基色增益值增大第二数值倍,该第二数值为第二阈值与第一红基色增益值的比值,其中增大后的第一蓝基色增益值作为第二蓝基色增益值;Step S43, increasing the first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color gain value is used as the second blue color Primary color gain value;
步骤S44,根据第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置终端第二信号源的白平衡参数。Step S44, setting a white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
在判定第一信号源的白平衡参数中绿基色增益值小于第一阈值时,对绿基色增益增大至第一信号源对应的第一阈值得到第一绿基色增益值,并同比例增大对应的红基色增益值和蓝基色增益值后得到第一红基色增益值和第一蓝基色增益值,然后将第一红基色增益值与第一信号源对应的第二阈值(第二阈值的确定过程与第一阈值基本相同)进行比较,当第一红色增益值小于第二阈值时,表面将第一绿基色增益值、第一红基色增益值和第一蓝基色增益值作为第二信号源可能会导致第二信号源显示的图像亮度偏低,故将第一红色增益值增大至第二阈值得到第二红色增益值,同时将第一蓝色增益值增大第二数值倍得到第二蓝色增益值,该第二数值为第二阈值与第一红基色增益值的比,将第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。当第一红色增益值大于等于第二阈值时,表明将第一绿基色增益值、第一红基色增益值和第一蓝基色增益值应用到第二信号源不会导致第二信号源显示的图像亮度偏低,故可直接将第一绿基色增益值、第一红基色增益值和第一蓝基色增益值作为第二信号源的白平衡参数。When determining that the green primary color gain value is smaller than the first threshold in the white balance parameter of the first signal source, increasing the green primary color gain to the first threshold corresponding to the first signal source to obtain the first green primary color gain value, and increasing in proportion Corresponding red primary color gain value and blue primary color gain value to obtain a first red primary color gain value and a first blue primary color gain value, and then the first red primary color gain value and the second threshold corresponding to the first signal source (second threshold The determining process is substantially the same as the first threshold. The comparison is performed. When the first red gain value is less than the second threshold, the surface uses the first green primary color gain value, the first red primary color gain value, and the first blue primary color gain value as the second signal. The source may cause the brightness of the image displayed by the second signal source to be low, so that the first red gain value is increased to the second threshold to obtain the second red gain value, and the first blue gain value is increased by the second value multiple. a second blue gain value, wherein the second value is a ratio of the second threshold value to the first red primary color gain value, and the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value are set as terminals White balance parameters two sources. When the first red gain value is greater than or equal to the second threshold, indicating that applying the first green primary color gain value, the first red primary color gain value, and the first blue primary color gain value to the second signal source does not cause the second signal source to be displayed The image brightness is low, so the first green primary color gain value, the first red primary color gain value, and the first blue primary color gain value can be directly used as the white balance parameter of the second signal source.
接上述步骤S40的例子,第一红基色增益值R2=4,第一绿基色增益值G2=8,第一蓝基色增益值B2=2,若第二阈值为6,则将R2调整至6,G2不变,B2调整为3,即第二红基色增益值R3=6,第二蓝基色增益值B3=3,并将R3、G2、B3作为第二信号源的白平衡参数。Following the example of the above step S40, the first red primary color gain value R2=4, the first green primary color gain value G2=8, the first blue primary color gain value B2=2, and if the second threshold value is 6, the R2 is adjusted to 6 G2 is unchanged, B2 is adjusted to 3, that is, the second red primary color gain value R3=6, the second blue primary color gain value B3=3, and R3, G2, B3 are used as the white balance parameters of the second signal source.
在本实施例中,通过进一步判断第一信号源的第一红基色增益值是否小于第二阈值,若第一红基色增益值小于第二阈值,则将第一红基色增益值增大至第二阈值得到第二红基色增益值,同时将第一蓝基色增益值增大第二数值倍得到第二蓝基色增益值,并将第一绿基色增益值、第一红基色增益值和第一蓝基色增益值作为第二信号源的白平衡参数,从而在保证绿基色增益值足够大时,进一步保证红基色增益值足够大,能辅助绿基色增益值来保证终端第二信号源的亮度,进一步保证终端通过能耗测试。In this embodiment, by further determining whether the first red primary color gain value of the first signal source is less than a second threshold, if the first red primary color gain value is less than the second threshold, increasing the first red primary color gain value to the first The second threshold obtains the second red primary color gain value, and the first blue primary color gain value is increased by the second numerical multiple to obtain the second blue primary color gain value, and the first green primary color gain value, the first red primary color gain value, and the first The blue primary color gain value is used as the white balance parameter of the second signal source, so that when the green primary color gain value is sufficiently large, the red primary color gain value is further ensured to be sufficiently large, and the green primary color gain value can be assisted to ensure the brightness of the second secondary signal source. Further ensure that the terminal passes the energy consumption test.
进一步地,在本发明模数信号补偿的方法的第二实施例的基础上,提出模数信号补偿的方法的第三实施例,在第三实施例中,步骤S44包括:Further, based on the second embodiment of the method for compensating the analog-digital signal of the present invention, a third embodiment of the method for compensating the analog-digital signal is proposed. In the third embodiment, the step S44 includes:
步骤S441,判断第二红基色增益值是否大于第一信号源对应的红增益极值;Step S441, determining whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source;
步骤S442,当第二红基色增益值大于第一信号源对应的红增益极值时,将第二红基色增益值减小至红增益极值而获取第三红基色增益值;Step S442, when the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, the second red primary color gain value is reduced to the red gain extreme value to obtain the third red primary color gain value;
步骤S443,将第一绿基色增益值、第三红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。Step S443, setting the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value as white balance parameters of the second source of the terminal.
在第一信号源的红基色增益值经过两次调整后得到第二红基色增益值时,判断该第二红基色增益值是否大于第一信号源对应的红增益极值,若第二红基色增益值大于红增益极值,表明包含第二红基色增益值的白平衡参数所显示的图像会偏红,将第二红基色增益值减小至红增益极值而将减小后的第二红基色增益值作为第三红基色增益值,第二蓝基色增益值不变,然后将第一绿基色增益值、第三红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。When the red primary color gain value of the first signal source is adjusted twice to obtain the second red primary color gain value, it is determined whether the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, and if the second red primary color is The gain value is greater than the red gain extreme value, indicating that the image displayed by the white balance parameter including the second red primary color gain value is reddish, and the second red primary color gain value is reduced to the red gain extreme value and the reduced second value is obtained. The red primary color gain value is used as the third red primary color gain value, the second blue primary color gain value is unchanged, and then the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value are set as the terminal second signal source. White balance parameters.
在本实施例中,在对绿基色增益值进行一次调整、对红基色增益值和蓝基色增益值进行二次调整后,进一步将经两次调整后得到的第二红基色增益值红增益极值进行比较,防止第二红基色增益值过大而导致包含第二红基色增益值的白平衡参数所显示的图像偏红,保证第二信号源获取的白平衡参数所显示的图像色度适中。In this embodiment, after the green color gain value is adjusted once, the red primary color gain value and the blue primary color gain value are secondarily adjusted, the second red primary color gain value red gain pole obtained by the two adjustments is further adjusted. The values are compared to prevent the second red primary color gain value from being too large, so that the image displayed by the white balance parameter including the second red primary color gain value is reddish, and the white balance parameter acquired by the second signal source is displayed to have a moderate image chromaticity. .
进一步地,在本发明模数信号补偿的方法的第三实施例的基础上,提出模数信号补偿的方法的第四实施例,在第四实施例中,步骤S441之后还包括:Further, based on the third embodiment of the method for compensating the analog-to-digital signal of the present invention, a fourth embodiment of the method for compensating the analog-to-digital signal is proposed. In the fourth embodiment, after the step S441, the method further includes:
步骤S444,当第二红基色增益值小于或等于第一信号源对应的红增益极值时,将第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。Step S444, when the second red primary color gain value is less than or equal to the red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value are set as the terminal number. The white balance parameter of the two sources.
在第一信号源的红基色增益值经过两次调整后得到第二红基色增益值时,判断该第二红基色增益值是否大于第一信号源对应的红增益极值,若第二红基色增益值小于或等于红增益极值,表明包含第二红基色增益值的白平衡参数所显示的图像色度适中,无需对第二红基色增益值进行调整,进而将第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。When the red primary color gain value of the first signal source is adjusted twice to obtain the second red primary color gain value, it is determined whether the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, and if the second red primary color is The gain value is less than or equal to the red gain extreme value, indicating that the white balance parameter including the second red primary color gain value displays a moderate image chromaticity, and does not need to adjust the second red primary color gain value, thereby further increasing the first green primary color gain value, The second red primary color gain value and the second blue primary color gain value are set to a white balance parameter of the second source of the terminal.
在本实施例中,在对绿基色增益值进行一次调整、对红基色增益值和蓝基色增益值进行二次调整后,进一步将经两次调整后得到的第二红基色增益值红增益极值进行比较,防止第二红基色增益值过大而导致包含第二红基色增益值的白平衡参数所显示的图像偏红,保证第二信号源获取的白平衡参数所显示的图像色度适中。In this embodiment, after the green color gain value is adjusted once, the red primary color gain value and the blue primary color gain value are secondarily adjusted, the second red primary color gain value red gain pole obtained by the two adjustments is further adjusted. The values are compared to prevent the second red primary color gain value from being too large, so that the image displayed by the white balance parameter including the second red primary color gain value is reddish, and the white balance parameter acquired by the second signal source is displayed to have a moderate image chromaticity. .
进一步地,在本发明模数信号补偿的方法的第三或第四实施例的基础上,模数信号补偿的方法还包括:Further, based on the third or fourth embodiment of the method for analog-digital signal compensation of the present invention, the method for analog-digital signal compensation further includes:
步骤S50,根据色度系统检测设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;Step S50, detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set as the second signal source of the terminal is color cast;
在本实施例中,步骤S50可以设置在步骤S443或步骤S444之后,色度系统可以采用1931CIE-XYZ标准色度系统(即CIE-XYZ色度系统),在第二信号源获取经过调整后的第一信号源对应白平衡参数后,获取调整后的白平衡参数中的绿基色增益值、红基色增益值以及蓝基色增益值,然后将第二信号源获取的绿基色增益值(G)、红基色增益值(R)以及蓝基色增益值(B)从CIE-RGB色度系统中的值转同转换为CIE-XYZ色度系统中的值,判断获取的绿基色增益值(G)、红基色增益值(R)以及蓝基色增益值(B)对应CIE-XYZ色度系统中的值是否达标,即基于CIE-XYZ色度系统判断设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色。In this embodiment, step S50 may be set after step S443 or step S444, and the chrominance system may adopt the 1931 CIE-XYZ standard chromaticity system (ie, CIE-XYZ chromaticity system), and obtain the adjusted after the second signal source. After the first signal source corresponds to the white balance parameter, the green primary color gain value, the red primary color gain value, and the blue primary color gain value in the adjusted white balance parameter are obtained, and then the green primary color gain value (G) obtained by the second signal source, The red primary color gain value (R) and the blue primary color gain value (B) are converted from the values in the CIE-RGB chromaticity system to the values in the CIE-XYZ chromaticity system, and the obtained green primary color gain value (G) is determined. The red primary color gain value (R) and the blue primary color gain value (B) correspond to whether the value in the CIE-XYZ chromaticity system is up to standard, that is, based on the CIE-XYZ chromaticity system, the green balance parameter set as the terminal second signal source is determined. Whether the image formed by the primary color gain value, the red primary color gain value, and the blue primary color gain value is color cast.
步骤S60,若设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整第一阈值、第二阈值和/或红增益极值,以调整设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。Step S60, if the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast, adjust the first threshold, the second threshold, and/or The red gain extreme value is used to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value set to the white balance parameter of the second source of the terminal.
若设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则增大或减小第一阈值、第二阈值和红增益极值三个值中的一个或多个,并在增大或减小第一阈值、第二阈值和红增益极值三个值中的一个或多个后,重新执行本发明模数信号补偿的方法的第一、第二、第三或第四实施例中的步骤,以调整设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值,并再次根据色度系统(例如CIE-XYZ色度系统)检测当前设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色,若没有发生偏色,则保存当前设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值;若有发生偏色,则继续增大或减小第一阈值、第二阈值和红增益极值三个值中的一个或多个,直至当前第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像不发生偏色。If the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast, the first threshold, the second threshold, and the red are increased or decreased. One or more of three values of the gain extremum, and re-executing the analog-to-digital signal of the present invention after increasing or decreasing one or more of the three values of the first threshold, the second threshold, and the red gain extremum a step of the first, second, third or fourth embodiment of the method for compensating to adjust a green primary color gain value, a red primary color gain value, and a blue primary color gain value of the white balance parameter set as the second source of the terminal, And according to the chrominance system (for example, CIE-XYZ chromaticity system), detecting whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter currently set as the second source of the terminal is biased. Color, if no color cast occurs, save the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter currently set as the second source of the terminal; if there is a color cast, continue to increase or Reducing one or more of the three values of the first threshold, the second threshold, and the red gain extreme value until the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the current second signal source The formed image does not undergo color cast.
此外,增大或减小第一阈值、第二阈值和红增益极值三个值中的一个或多个的调整过程中,增大或减小对象的先后顺序、增大或减小的幅度大小均可根据实际需求设定,例如是先增大第一阈值、还是先增大第二阈值可以实际需求设定。Further, in the process of increasing or decreasing one or more of the three values of the first threshold, the second threshold, and the red gain extremum, increasing or decreasing the order of the objects, increasing or decreasing The size can be set according to actual needs, for example, whether the first threshold is first increased or the second threshold is increased first, and the actual demand can be set.
在本实施例中,调整设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值而避免显示偏色的图像,采用经验值(例如第一阈值、第二阈值或红增益极值)和实际色度检测相结合的方案,避免因终端硬件和软件的差异不适应经验值而使第二信号源基于所获取的白平衡参数显示图像发生偏色,也能够根据终端硬件和软件实际情况去调整经验值,使设置为第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像不发生偏色。In this embodiment, the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the second source of the terminal are adjusted to avoid displaying the color cast image, and an empirical value (eg, a first threshold, The combination of the second threshold or the red gain extreme value) and the actual color detection avoids that the second signal source generates a color cast based on the acquired white balance parameter due to the difference in the hardware and software of the terminal, which is not adapted to the empirical value. It is also possible to adjust the empirical value according to the actual situation of the terminal hardware and the software, so that the image formed by the green primary color gain value, the red primary color gain value and the blue primary color gain value of the white balance parameter set as the second signal source does not undergo color cast.
本发明还提供一种模数信号补偿的装置,在模数信号补偿的装置的第一实施例中,该模数信号补偿的装置包括:The present invention also provides an apparatus for compensating for analog-to-digital signals. In a first embodiment of the apparatus for compensating for analog-digital signals, the apparatus for compensating for analog-to-digital signals includes:
参数获取模块,用于在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,其中白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值;The parameter obtaining module is configured to obtain a white balance parameter of the first signal source of the terminal after the terminal performs white balance adjustment on the first signal source, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value. ;
判断模块,用于判断白平衡参数中的绿基色增益值是否小于第一信号源对应的第一阈值;a determining module, configured to determine whether a green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source;
增大模块,用于当绿基色增益值小于第一阈值时,将绿基色增益值增大至第一阈值,并将白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为第一阈值与绿基色增益值的比值;And increasing the module, when the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter by a first numerical multiple The first numerical multiple is a ratio of the first threshold value to the green primary color gain value;
参数设置模块,用于根据增大后的绿基色增益值、红基色增益值和蓝基色增益值设置终端第二信号源的白平衡参数。And a parameter setting module, configured to set a white balance parameter of the second source of the terminal according to the increased green primary color gain value, the red primary color gain value, and the blue primary color gain value.
本实施例的解释和效果可参照本发明模数信号补偿的方法的第一实施例的说明书内容。The explanation and effect of the present embodiment can be referred to the contents of the description of the first embodiment of the method of analog-digital signal compensation of the present invention.
进一步地,在本发明模数信号补偿的装置的第一实施例的基础上,提出模数信号补偿的装置的第二实施例,在第二实施例中,参数设置模块包括:Further, based on the first embodiment of the apparatus for analog-digital signal compensation of the present invention, a second embodiment of the apparatus for compensating the analog-digital signal is proposed. In the second embodiment, the parameter setting module includes:
增益值判断单元,用于判断第一红基色增益值是否小于第一信号源对应的第二阈值;a gain value determining unit, configured to determine whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source;
第一增益增大单元,用于当第一红基色增益值小于第二阈值时,将第一红基色增益值增大至第二阈值,其中增大后的第一红基色增益值作为第二红基色增益值;a first gain increasing unit, configured to increase a first red primary color gain value to a second threshold when the first red primary color gain value is less than a second threshold, wherein the increased first red primary color gain value is used as a second Red primary color gain value;
第二增益增大单元,用于将第一蓝基色增益值增大第二数值倍,该第二数值为第二阈值与第一红基色增益值的比值,其中增大后的第一蓝基色增益值作为第二蓝基色增益值;a second gain increasing unit, configured to increase a first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color a gain value as a second blue primary color gain value;
参数设置单元,用于根据第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置终端第二信号源的白平衡参数。And a parameter setting unit, configured to set a white balance parameter of the second signal source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
本实施例的解释和效果可参照本发明模数信号补偿的方法的第二实施例的说明书内容。The explanation and effects of the present embodiment can be referred to the contents of the description of the second embodiment of the method of analog-digital signal compensation of the present invention.
进一步地,在本发明模数信号补偿的装置的第二实施例的基础上,提出模数信号补偿的装置的第三实施例,在第三实施例中,Further, based on the second embodiment of the apparatus for analog-digital signal compensation of the present invention, a third embodiment of the apparatus for compensating for analog-digital signals is proposed. In the third embodiment,
参数设置单元包括:The parameter setting unit includes:
比值判断单元,用于判断第二红基色增益值是否大于第一信号源对应的红增益极值;a ratio determining unit, configured to determine whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source;
第一次级设置单元,用于当第二红基色增益值大于第一信号源对应的红增益极值时,将第二红基色增益值减小至红增益极值而获取第三红基色增益值,并将第一绿基色增益值、第三红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。a first secondary setting unit, configured to reduce a second red primary color gain value to a red gain extreme value to obtain a third red primary color gain when the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source And setting a first green primary color gain value, a third red primary color gain value, and a second blue primary color gain value to a white balance parameter of the second source of the terminal.
本实施例的解释和效果可参照本发明模数信号补偿的方法的第三实施例的说明书内容。The explanation and effect of the present embodiment can be referred to the contents of the description of the third embodiment of the method of analog-digital signal compensation of the present invention.
进一步地,在本发明模数信号补偿的装置的第三实施例的基础上,提出模数信号补偿的装置的第四实施例,在第四实施例中,参数设置单元还包括:Further, in the fourth embodiment of the apparatus for compensating the analog-to-digital signal, the fourth embodiment of the present invention, the parameter setting unit further includes:
第二次级设置单元,用于当第二红基色增益值小于或等于第一信号源对应的红增益极值时,将第一绿基色增益值、第二红基色增益值以及第二蓝基色增益值设置为终端第二信号源的白平衡参数。a second secondary setting unit, configured to: when the second red primary color gain value is less than or equal to a red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue primary color The gain value is set to the white balance parameter of the second source of the terminal.
本实施例的解释和效果可参照本发明模数信号补偿的方法的第四实施例的说明书内容。The explanation and effect of the present embodiment can be referred to the contents of the description of the fourth embodiment of the method of analog-digital signal compensation of the present invention.
进一步地,在本发明模数信号补偿的装置的第三或第四实施例的基础上,模数信号补偿的装置还包括:Further, based on the third or fourth embodiment of the apparatus for analog-digital signal compensation of the present invention, the apparatus for analog-digital signal compensation further includes:
偏色检测模块,用于根据色度系统检测设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;若设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整第一阈值、第二阈值和/或红增益极值,以调整设置为终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。a color cast detection module, configured to detect, according to the chroma system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter set as the second source of the terminal is color cast; if set, Adjusting the first threshold, the second threshold, and/or the red gain extreme value by performing color cast on the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the second source of the terminal Adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value set to the white balance parameter of the second source of the terminal.
本实施例的解释和效果可参照本发明模数信号补偿的方法的第四实施例后较优实施例的说明书内容。For the explanation and effect of the present embodiment, reference may be made to the contents of the description of the preferred embodiment of the fourth embodiment of the method for compensating the analog-digital signal of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (17)

  1. 一种模数信号补偿的方法,其特征在于,第一信号源为数字信号源,第二信号源为模拟信号源,所述模数信号补偿的方法包括:A method for compensating analog-to-digital signals, characterized in that: the first signal source is a digital signal source, and the second signal source is an analog signal source, and the method for compensating the analog-to-digital signal comprises:
    在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,其中所述白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值;After the terminal performs white balance adjustment on the first signal source, acquiring a white balance parameter of the first signal source of the terminal, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value;
    判断所述白平衡参数中的绿基色增益值是否小于所述第一信号源对应的第一阈值,其中第一阈值基于预设的亮度公式确定;Determining whether the green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source, where the first threshold is determined based on a preset brightness formula;
    当所述绿基色增益值小于所述第一阈值时,将所述绿基色增益值增大至所述第一阈值,并将所述白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为所述第一阈值与所述绿基色增益值的比值;其中,将增大后的绿基色增益值作为第一绿基色增益值、增大后的红基色增益值作为第一红基色增益值、增大后的蓝基色增益值作为第一蓝基色增益值;When the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold value, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter a first numerical multiple, the first numerical multiple is a ratio of the first threshold value to the green primary color gain value; wherein, the increased green primary color gain value is used as the first green primary color gain value, and the increased red color The primary color gain value is used as the first red primary color gain value and the increased blue primary color gain value as the first blue primary color gain value;
    判断所述第一红基色增益值是否小于所述第一信号源对应的第二阈值;Determining whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source;
    当所述第一红基色增益值小于所述第二阈值时,将所述第一红基色增益值增大至所述第二阈值,其中增大后的所述第一红基色增益值作为第二红基色增益值;When the first red primary color gain value is less than the second threshold, increasing the first red primary color gain value to the second threshold, wherein the increased first red primary color gain value is used as the first Two red primary color gain values;
    将所述第一蓝基色增益值增大第二数值倍,该第二数值为所述第二阈值与所述第一红基色增益值的比值,其中增大后的所述第一蓝基色增益值作为第二蓝基色增益值;And increasing the first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color gain The value is used as the second blue primary color gain value;
    根据所述第一绿基色增益值、所述第二红基色增益值以及所述第二蓝基色增益值设置所述终端第二信号源的白平衡参数。And setting a white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
  2. 如权利要求1所述的模数信号补偿的方法,其特征在于,所述根据所述第一绿基色增益值、所述第二红基色增益值以及所述第二蓝基色增益值设置所述终端第二信号源的白平衡参数的步骤包括:The method of analog-digital signal compensation according to claim 1, wherein said setting is based on said first green primary color gain value, said second red primary color gain value, and said second blue primary color gain value The steps of the white balance parameter of the second signal source of the terminal include:
    判断所述第二红基色增益值是否大于所述第一信号源对应的红增益极值;Determining whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source;
    当所述第二红基色增益值大于所述第一信号源对应的红增益极值时,将所述第二红基色增益值减小至所述红增益极值而获取第三红基色增益值;When the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, reducing the second red primary color gain value to the red gain extreme value to obtain a third red primary color gain value ;
    将所述第一绿基色增益值、所述第三红基色增益值以及所述第二蓝基色增益值设置为所述终端第二信号源的白平衡参数。And setting the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value to a white balance parameter of the terminal second signal source.
  3. 如权利要求2所述的模数信号补偿的方法,其特征在于,所述判断所述第二红基色增益值是否大于所述第一信号源对应的红增益极值的步骤之后还包括:The method of claim 2, wherein the step of determining whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source further comprises:
    当所述第二红基色增益值小于或等于所述第一信号源对应的红增益极值时,将所述第一绿基色增益值、所述第二红基色增益值以及所述第二蓝基色增益值设置为所述终端第二信号源的白平衡参数。When the second red primary color gain value is less than or equal to a red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue The primary color gain value is set to the white balance parameter of the second source of the terminal.
  4. 如权利要求3所述的模数信号补偿的方法,其特征在于,所述模数信号补偿的方法还包括:The method of compensating for analog-to-digital signals according to claim 3, wherein the method for compensating the analog-to-digital signal further comprises:
    根据色度系统检测设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;Detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast;
    若设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整所述第一阈值、第二阈值和/或红增益极值,以调整设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。Adjusting the first threshold, the second threshold, and/or if the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast. Or a red gain extremum to adjust a green primary color gain value, a red primary color gain value, and a blue primary color gain value set to a white balance parameter of the terminal second signal source.
  5. 如权利要求2所述的模数信号补偿的方法,其特征在于,所述模数信号补偿的方法还包括:The method of compensating for analog-to-digital signals according to claim 2, wherein the method for compensating the analog-to-digital signal further comprises:
    根据色度系统检测设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;Detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast;
    若设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整所述第一阈值、第二阈值和/或红增益极值,以调整设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。Adjusting the first threshold, the second threshold, and/or if the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast. Or a red gain extremum to adjust a green primary color gain value, a red primary color gain value, and a blue primary color gain value set to a white balance parameter of the terminal second signal source.
  6. 一种模数信号补偿的方法,其特征在于,所述模数信号补偿的方法包括:A method for compensating analog-to-digital signals, characterized in that the method for compensating for analog-to-digital signals comprises:
    在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,其中所述白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值;After the terminal performs white balance adjustment on the first signal source, acquiring a white balance parameter of the first signal source of the terminal, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color gain value;
    判断所述白平衡参数中的绿基色增益值是否小于所述第一信号源对应的第一阈值;Determining whether a green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source;
    当所述绿基色增益值小于所述第一阈值时,将所述绿基色增益值增大至所述第一阈值,并将所述白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为所述第一阈值与所述绿基色增益值的比值;When the green primary color gain value is less than the first threshold, increasing the green primary color gain value to the first threshold value, and increasing the red primary color gain value and the blue primary color gain value of the white balance parameter a first numerical multiple, the first numerical multiple being a ratio of the first threshold to the green primary gain value;
    根据增大后的所述绿基色增益值、红基色增益值和蓝基色增益值设置所述终端第二信号源的白平衡参数。And setting a white balance parameter of the second signal source of the terminal according to the increased green primary color gain value, red primary color gain value, and blue primary color gain value.
  7. 如权利要求6所述的模数信号补偿的方法,其特征在于,将增大后的绿基色增益值作为第一绿基色增益值、增大后的红基色增益值作为第一红基色增益值、增大后的蓝基色增益值作为第一蓝基色增益值,The method for compensating analog-to-digital signals according to claim 6, wherein the increased green primary color gain value is used as the first green primary color gain value and the increased red primary color gain value is used as the first red primary color gain value. The increased blue primary color gain value is used as the first blue primary color gain value.
    所述根据增大后的所述绿基色增益值、红基色增益值和蓝基色增益值设置所述终端第二信号源的白平衡参数的步骤包括:The step of setting the white balance parameter of the second signal source of the terminal according to the increased green primary color gain value, red primary color gain value, and blue primary color gain value includes:
    判断所述第一红基色增益值是否小于所述第一信号源对应的第二阈值;Determining whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source;
    当所述第一红基色增益值小于所述第二阈值时,将所述第一红基色增益值增大至所述第二阈值,其中增大后的所述第一红基色增益值作为第二红基色增益值;When the first red primary color gain value is less than the second threshold, increasing the first red primary color gain value to the second threshold, wherein the increased first red primary color gain value is used as the first Two red primary color gain values;
    将所述第一蓝基色增益值增大第二数值倍,该第二数值为所述第二阈值与所述第一红基色增益值的比值,其中增大后的所述第一蓝基色增益值作为第二蓝基色增益值;And increasing the first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increased first blue primary color gain The value is used as the second blue primary color gain value;
    根据所述第一绿基色增益值、所述第二红基色增益值以及所述第二蓝基色增益值设置所述终端第二信号源的白平衡参数。And setting a white balance parameter of the second source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
  8. 如权利要求7所述的模数信号补偿的方法,其特征在于,所述根据所述第一绿基色增益值、所述第二红基色增益值以及所述第二蓝基色增益值设置所述终端第二信号源的白平衡参数的步骤包括:The method of analog-to-digital signal compensation according to claim 7, wherein said setting is based on said first green primary color gain value, said second red primary color gain value, and said second blue primary color gain value The steps of the white balance parameter of the second signal source of the terminal include:
    判断所述第二红基色增益值是否大于所述第一信号源对应的红增益极值;Determining whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source;
    当所述第二红基色增益值大于所述第一信号源对应的红增益极值时,将所述第二红基色增益值减小至所述红增益极值而获取第三红基色增益值;When the second red primary color gain value is greater than the red gain extreme value corresponding to the first signal source, reducing the second red primary color gain value to the red gain extreme value to obtain a third red primary color gain value ;
    将所述第一绿基色增益值、所述第三红基色增益值以及所述第二蓝基色增益值设置为所述终端第二信号源的白平衡参数。And setting the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value to a white balance parameter of the terminal second signal source.
  9. 如权利要求8所述的模数信号补偿的方法,其特征在于,所述判断所述第二红基色增益值是否大于所述第一信号源对应的红增益极值的步骤之后还包括:The method of claim 8, wherein the step of determining whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source further comprises:
    当所述第二红基色增益值小于或等于所述第一信号源对应的红增益极值时,将所述第一绿基色增益值、所述第二红基色增益值以及所述第二蓝基色增益值设置为所述终端第二信号源的白平衡参数。When the second red primary color gain value is less than or equal to a red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red primary color gain value, and the second blue The primary color gain value is set to the white balance parameter of the second source of the terminal.
  10. 如权利要求9所述的模数信号补偿的方法,其特征在于,所述模数信号补偿的方法还包括:The method of compensating for analog-to-digital signals according to claim 9, wherein the method for compensating the analog-to-digital signal further comprises:
    根据色度系统检测设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;Detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast;
    若设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整所述第一阈值、第二阈值和/或红增益极值,以调整设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。Adjusting the first threshold, the second threshold, and/or if the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast. Or a red gain extremum to adjust a green primary color gain value, a red primary color gain value, and a blue primary color gain value set to a white balance parameter of the terminal second signal source.
  11. 如权利要求8所述的模数信号补偿的方法,其特征在于,所述模数信号补偿的方法还包括:The method of compensating for analog-to-digital signals according to claim 8, wherein the method for compensating the analog-to-digital signal further comprises:
    根据色度系统检测设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;Detecting, according to the chrominance system, whether the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast;
    若设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整所述第一阈值、第二阈值和/或红增益极值,以调整设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。Adjusting the first threshold, the second threshold, and/or if the image formed by the green primary color gain value, the red primary color gain value, and the blue primary color gain value of the white balance parameter of the terminal second signal source is color cast. Or a red gain extremum to adjust a green primary color gain value, a red primary color gain value, and a blue primary color gain value set to a white balance parameter of the terminal second signal source.
  12. 一种模数信号补偿的装置,其特征在于,所述模数信号补偿的装置包括:An apparatus for compensating for analog-to-digital signals, wherein the apparatus for compensating for analog-to-digital signals comprises:
    参数获取模块,用于在终端对第一信号源进行白平衡调整后,获取该终端第一信号源的白平衡参数,其中所述白平衡参数包括绿基色增益值、红基色增益值和蓝基色增益值;a parameter obtaining module, configured to obtain a white balance parameter of the first signal source of the terminal after the terminal performs white balance adjustment on the first signal source, where the white balance parameter includes a green primary color gain value, a red primary color gain value, and a blue primary color Gain value
    判断模块,用于判断所述白平衡参数中的绿基色增益值是否小于所述第一信号源对应的第一阈值;a determining module, configured to determine whether a green primary color gain value in the white balance parameter is smaller than a first threshold corresponding to the first signal source;
    增大模块,用于当所述绿基色增益值小于所述第一阈值时,将所述绿基色增益值增大至所述第一阈值,并将所述白平衡参数的红基色增益值和蓝基色增益值增大第一数值倍,该第一数值倍为所述第一阈值与所述绿基色增益值的比值;An increasing module, configured to increase the green primary color gain value to the first threshold value and the red primary color gain value of the white balance parameter when the green primary color gain value is less than the first threshold value The blue primary color gain value is increased by a first numerical multiple, and the first numerical multiple is a ratio of the first threshold value to the green primary color gain value;
    参数设置模块,用于根据增大后的所述绿基色增益值、红基色增益值和蓝基色增益值设置所述终端第二信号源的白平衡参数。And a parameter setting module, configured to set a white balance parameter of the second signal source of the terminal according to the increased green primary color gain value, red primary color gain value, and blue primary color gain value.
  13. 如权利要求12所述的模数信号补偿的装置,其特征在于,将增大后的绿基色增益值作为第一绿基色增益值、增大后的红基色增益值作为第一红基色增益值、增大后的蓝基色增益值作为第一蓝基色增益值,The apparatus for compensating analog-digital signals according to claim 12, wherein the increased green primary color gain value is used as the first green primary color gain value and the increased red primary color gain value as the first red primary color gain value. The increased blue primary color gain value is used as the first blue primary color gain value.
    所述参数设置模块包括:The parameter setting module includes:
    增益值判断单元,用于判断所述第一红基色增益值是否小于所述第一信号源对应的第二阈值;a gain value determining unit, configured to determine whether the first red primary color gain value is smaller than a second threshold corresponding to the first signal source;
    第一增益增大单元,用于当所述第一红基色增益值小于所述第二阈值时,将所述第一红基色增益值增大至所述第二阈值,其中增大后的所述第一红基色增益值作为第二红基色增益值;a first gain increasing unit, configured to increase the first red primary color gain value to the second threshold when the first red primary color gain value is less than the second threshold, wherein the increased Decoding a first red primary color gain value as a second red primary color gain value;
    第二增益增大单元,用于将所述第一蓝基色增益值增大第二数值倍,该第二数值为所述第二阈值与所述第一红基色增益值的比值,其中增大后的所述第一蓝基色增益值作为第二蓝基色增益值;a second gain increasing unit, configured to increase the first blue primary color gain value by a second numerical multiple, the second numerical value being a ratio of the second threshold value to the first red primary color gain value, wherein the increase The first blue primary color gain value is used as the second blue primary color gain value;
    参数设置单元,用于根据所述第一绿基色增益值、所述第二红基色增益值以及所述第二蓝基色增益值设置所述终端第二信号源的白平衡参数。And a parameter setting unit, configured to set a white balance parameter of the second signal source of the terminal according to the first green primary color gain value, the second red primary color gain value, and the second blue primary color gain value.
  14. 如权利要求13所述的模数信号补偿的装置,其特征在于,所述参数设置单元包括:The apparatus for compensating for analog-digital signals according to claim 13, wherein the parameter setting unit comprises:
    比值判断单元,用于判断所述第二红基色增益值是否大于所述第一信号源对应的红增益极值;a ratio determining unit, configured to determine whether the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source;
    第一次级设置单元,用于当所述第二红基色增益值大于所述第一信号源对应的红增益极值时,将所述第二红基色增益值减小至所述红增益极值而获取第三红基色增益值,并将所述第一绿基色增益值、所述第三红基色增益值以及所述第二蓝基色增益值设置为所述终端第二信号源的白平衡参数。a first secondary setting unit, configured to reduce the second red primary color gain value to the red gain pole when the second red primary color gain value is greater than a red gain extreme value corresponding to the first signal source And obtaining a third red primary color gain value, and setting the first green primary color gain value, the third red primary color gain value, and the second blue primary color gain value to a white balance of the terminal second signal source parameter.
  15. 如权利要求14所述的模数信号补偿的装置,其特征在于,所述参数设置单元还包括:The apparatus for compensating for analog-to-digital signals according to claim 14, wherein the parameter setting unit further comprises:
    第二次级设置单元,用于当所述第二红基色增益值小于或等于所述第一信号源对应的红增益极值时,将所述第一绿基色增益值、所述第二红基色增益值以及所述第二蓝基色增益值设置为所述终端第二信号源的白平衡参数。a second secondary setting unit, configured to: when the second red primary color gain value is less than or equal to a red gain extreme value corresponding to the first signal source, the first green primary color gain value, the second red The primary color gain value and the second blue primary color gain value are set to a white balance parameter of the terminal second signal source.
  16. 如权利要求15所述的模数信号补偿的装置,其特征在于,所述模数信号补偿的装置还包括:The apparatus for compensating for analog-to-digital signals according to claim 15, wherein the means for compensating the analog-to-digital signal further comprises:
    偏色检测模块,用于根据色度系统检测设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;若设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整所述第一阈值、第二阈值和/或红增益极值,以调整设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。a color cast detection module, configured to detect, according to a chroma system, whether an image formed by a green primary color gain value, a red primary color gain value, and a blue primary color gain value of a white balance parameter of the terminal second signal source is color cast; Adjusting the first threshold, the second threshold, and/or by performing color cast on an image formed by a green primary color gain value, a red primary color gain value, and a blue primary color gain value of the white balance parameter of the terminal second signal source. The red gain extreme value is used to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value set as the white balance parameter of the terminal second signal source.
  17. 如权利要求15所述的模数信号补偿的装置,其特征在于,所述模数信号补偿的装置还包括:The apparatus for compensating for analog-to-digital signals according to claim 15, wherein the means for compensating the analog-to-digital signal further comprises:
    偏色检测模块,用于根据色度系统检测设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像是否发生偏色;若设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值所形成的图像发生偏色,则调整所述第一阈值、第二阈值和/或红增益极值,以调整设置为所述终端第二信号源的白平衡参数的绿基色增益值、红基色增益值以及蓝基色增益值。a color cast detection module, configured to detect, according to a chroma system, whether an image formed by a green primary color gain value, a red primary color gain value, and a blue primary color gain value of a white balance parameter of the terminal second signal source is color cast; Adjusting the first threshold, the second threshold, and/or by performing color cast on an image formed by a green primary color gain value, a red primary color gain value, and a blue primary color gain value of the white balance parameter of the terminal second signal source. The red gain extreme value is used to adjust the green primary color gain value, the red primary color gain value, and the blue primary color gain value set as the white balance parameter of the terminal second signal source.
PCT/CN2016/084290 2015-09-25 2016-06-01 Analog/digital signal compensation method and apparatus WO2017049949A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510623623.9 2015-09-25
CN201510623623.9A CN105141934B (en) 2015-09-25 2015-09-25 The method and device of modulus signal compensation

Publications (1)

Publication Number Publication Date
WO2017049949A1 true WO2017049949A1 (en) 2017-03-30

Family

ID=54727129

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084290 WO2017049949A1 (en) 2015-09-25 2016-06-01 Analog/digital signal compensation method and apparatus

Country Status (2)

Country Link
CN (1) CN105141934B (en)
WO (1) WO2017049949A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107610180A (en) * 2017-09-12 2018-01-19 上海小蚁科技有限公司 AWB calibration methods and device, computer-readable recording medium, terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141934B (en) * 2015-09-25 2017-07-25 深圳Tcl数字技术有限公司 The method and device of modulus signal compensation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3138152B2 (en) * 1994-08-30 2001-02-26 三洋電機株式会社 White balance adjustment device
CN1633186A (en) * 2004-12-30 2005-06-29 熊猫电子集团有限公司 High definition color TV variable debugging method
CN101897191A (en) * 2007-12-21 2010-11-24 微视公司 Laser projection white balance tracking
CN103414905A (en) * 2013-08-08 2013-11-27 京东方科技集团股份有限公司 White balance data adjusting method, device and system
CN104392696A (en) * 2014-12-01 2015-03-04 苏州立瓷电子技术有限公司 White balance adjusting method of LED display screen
CN105141934A (en) * 2015-09-25 2015-12-09 深圳Tcl数字技术有限公司 Analog-digital signal compensation method and apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3397436B2 (en) * 1994-04-13 2003-04-14 富士写真フイルム株式会社 Video camera white balance device
CN101340596A (en) * 2007-07-04 2009-01-07 深圳Tcl新技术有限公司 Apparatus and system for white balance debugging
CN201278571Y (en) * 2008-10-31 2009-07-22 天津三星电子有限公司 White balance automatic regulation system
CN102572206B (en) * 2010-12-31 2015-05-13 比亚迪股份有限公司 Color correction method
CN102164290B (en) * 2011-04-22 2012-12-19 格科微电子(上海)有限公司 Method and device for automatically compensating white balance dark area
CN103501430B (en) * 2013-09-29 2016-04-13 京东方科技集团股份有限公司 The automatic white balance adjustment method of liquid crystal display and device
CN104394392B (en) * 2014-11-14 2016-09-28 广东欧珀移动通信有限公司 A kind of white balance adjusting method, device and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3138152B2 (en) * 1994-08-30 2001-02-26 三洋電機株式会社 White balance adjustment device
CN1633186A (en) * 2004-12-30 2005-06-29 熊猫电子集团有限公司 High definition color TV variable debugging method
CN101897191A (en) * 2007-12-21 2010-11-24 微视公司 Laser projection white balance tracking
CN103414905A (en) * 2013-08-08 2013-11-27 京东方科技集团股份有限公司 White balance data adjusting method, device and system
CN104392696A (en) * 2014-12-01 2015-03-04 苏州立瓷电子技术有限公司 White balance adjusting method of LED display screen
CN105141934A (en) * 2015-09-25 2015-12-09 深圳Tcl数字技术有限公司 Analog-digital signal compensation method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHANG, FUJIANG ET AL.: "yizhong13 pingban23 zidong44 baipingheng222 cekong44 xitong43de sheji44 yu3 shixian24", ELETRONICS QUALITY, 31 January 2012 (2012-01-31), ISSN: 1003-0107 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107610180A (en) * 2017-09-12 2018-01-19 上海小蚁科技有限公司 AWB calibration methods and device, computer-readable recording medium, terminal

Also Published As

Publication number Publication date
CN105141934B (en) 2017-07-25
CN105141934A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
WO2018227869A1 (en) Display screen picture adjusting method, display terminal, and readable storage medium
WO2017215116A1 (en) Photographing method and system for smart television
WO2016106976A1 (en) Method and device for adjusting backlight brightness
WO2020130496A1 (en) Display apparatus and control method thereof
WO2017148035A1 (en) Image processing method and apparatus
WO2018223418A1 (en) Display panel testing method, device and system
WO2017206368A1 (en) High-dynamic range picture switching method and apparatus
WO2018192253A1 (en) Video signal transmission method and apparatus
WO2018223607A1 (en) Television terminal, method for converting hdr image into sdr image, and computer readable storage medium
WO2016091011A1 (en) Subtitle switching method and device
WO2019076087A1 (en) Television and display image effect control method therefor, and computer-readable storage medium
WO2018223602A1 (en) Display terminal, frame contrast enhancement method, and computer readable storage medium
WO2017107384A1 (en) Image display method of liquid crystal display, and liquid crystal display
WO2017088427A1 (en) Audio output control method and device
WO2017190452A1 (en) Backlight self-adaptive regulation method and apparatus
WO2019237505A1 (en) Picture quality optimization method, device and apparatus based on local dimming, and storage medium
WO2016187998A1 (en) Method and device for dynamically adjusting backlight
WO2018045682A1 (en) Method and device for testing audio and picture synchronization
WO2017107386A1 (en) Method for improving color gamut of liquid crystal display terminal, and liquid crystal display terminal
WO2017201943A1 (en) Method and device for driving display screen
WO2017041537A1 (en) Video frame rate adjustment method and apparatus
WO2018094812A1 (en) Method and device for adjusting backlight brightness of liquid crystal display device screen
WO2018103187A1 (en) Monitor image formation method and system for monitoring device
WO2017190445A1 (en) Rgb image processing method and system
WO2017121066A1 (en) Application program display method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16847831

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.10.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16847831

Country of ref document: EP

Kind code of ref document: A1