WO2020107511A1 - 影像色温的获取方法 - Google Patents

影像色温的获取方法 Download PDF

Info

Publication number
WO2020107511A1
WO2020107511A1 PCT/CN2018/119415 CN2018119415W WO2020107511A1 WO 2020107511 A1 WO2020107511 A1 WO 2020107511A1 CN 2018119415 W CN2018119415 W CN 2018119415W WO 2020107511 A1 WO2020107511 A1 WO 2020107511A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
color temperature
color
pixel
zone
Prior art date
Application number
PCT/CN2018/119415
Other languages
English (en)
French (fr)
Inventor
饶洋
濮怡莹
Original Assignee
深圳市华星光电半导体显示技术有限公司
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 深圳市华星光电半导体显示技术有限公司 filed Critical 深圳市华星光电半导体显示技术有限公司
Publication of WO2020107511A1 publication Critical patent/WO2020107511A1/zh

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed

Definitions

  • the present invention relates to the field of display technology, and in particular, to a method for acquiring image color temperature.
  • liquid crystal display devices Liquid Crystal Display, LCD
  • organic light-emitting diode display devices Organic Light Emitting Display (OLED) and other flat display devices are widely used in mobile phones, TVs, personal digital assistants, digital cameras, notebook computers, desktop computers due to their advantages of high image quality, power saving, thin body and wide range of applications.
  • Various other consumer electronic products have become the mainstream in display devices.
  • Most of the existing liquid crystal display devices generally include: a liquid crystal display panel and a backlight module.
  • the working principle of the liquid crystal display panel is to place liquid crystal molecules in two parallel glass substrates. There are many vertical and horizontal small wires between the two glass substrates.
  • the liquid crystal molecules can be controlled to change the direction by turning on or off, and the backlight module light Refracted to produce a picture.
  • the existing OLED display device usually includes a substrate, an anode provided on the substrate, an organic light emitting layer provided on the anode, an electron transport layer provided on the organic light emitting layer, and a cathode provided on the electron transport layer.
  • the hole from the anode and the electron from the cathode are emitted to the organic light-emitting layer, and these electrons and holes are combined to generate an excited electron-hole pair, and the excited electron-hole pair is output from the excited state to the ground state Achieve glow.
  • color temperature is an important parameter used to characterize the color characteristics of light. The lower the color temperature, the more reddish the light color, and conversely, the lighter the color.
  • the overall color temperature of the image can characterize the overall feeling of the image to the viewer.
  • the calculation of the color temperature of most existing images is based on statistical methods, such as calculating the maximum or average value of the red, green and blue (rgb) three channels of all pixels of the entire image as an estimate of the image color temperature, because it is a direct statistical image
  • the speed of obtaining the estimated color temperature of the image is faster, the accuracy rate is lower, and the method of obtaining the image color temperature of the red, green and blue information of the statistical image is only applicable to the image with rich colors.
  • the color temperature of the image cannot be obtained effectively.
  • An object of the present invention is to provide an image color temperature acquisition method, which can accurately acquire the color temperature of an image.
  • the present invention provides a method for acquiring image color temperature, including the following steps:
  • Step S1 Establish a statistical table; the statistical table includes multiple reference color temperatures and multiple weights corresponding to the multiple reference color temperatures respectively, the multiple reference color temperatures include a preset minimum color temperature, a preset maximum color temperature, and multiple Intermediate color temperature, multiple weights are 0; multiple intermediate color temperatures gradually increase, and are all greater than the minimum color temperature and less than the maximum color temperature;
  • Step S2 Provide a chromatogram, divide the color gamut space in the chromatogram into the first zone, the second zone and the third zone connected in pairs; the boundary between the first zone and the second zone, the second zone and the third zone The boundary line of the zone and the boundary line of the third zone and the first zone converge at a reference point.
  • the boundary line of the first zone and the second zone coincides with the isochromatic temperature line corresponding to the maximum color temperature.
  • the junction of the first zone and the third zone The line coincides with the isochromatic temperature line corresponding to the minimum color temperature, and the boundary between the second zone and the third zone is parallel to the y-axis of the chromatogram;
  • Step S3 Provide display data of the image; the image includes a plurality of pixels, and the display data of the image includes a plurality of rgb digital values corresponding to the plurality of pixels, respectively;
  • Step S4 Select one of the multiple pixels as the processing pixel; convert the rgb digital value of the processing pixel into the color coordinate of the processing pixel in the chromatogram;
  • Step S5 Determine the position of the color coordinate of the processing pixel in the color gamut space; if the color coordinate of the processing pixel is located in the first area, calculate the color temperature value of the processing pixel according to the color coordinate of the processing pixel and the preset pixel color temperature calculation formula, Determine whether the color temperature value of the processing pixel is one of multiple reference color temperatures, if it is, increase the weight corresponding to the color temperature value of the processing pixel in the statistical table by 1, otherwise the color temperature value and 1 of the processing pixel are used as the reference color temperature and its corresponding The weight of is added to the statistics table; if the color coordinates of the processed pixel are in the second area, the connection between the point corresponding to the color coordinate of the processed pixel and the reference point and the boundary between the first area and the second area Angle, the preset first weight value calculation formula calculates the weight value of the processing pixel, and adds the weight value to the weight corresponding to the maximum color temperature in the statistical table; if the color coordinate of the processing pixel is located in the third area
  • Step S6 Repeat steps S4 and S5 until multiple pixels execute steps S4 and S5;
  • Step S7 Multiply each reference color temperature in the statistical table by the corresponding weight, and divide the sum of the products of the multiple reference color temperatures and the corresponding weights by the sum of the weights corresponding to the multiple reference color temperatures to obtain the color temperature value of the image.
  • the specific process of converting the rgb digital value of the processing pixel to the color coordinate of the processing pixel in the chromatogram in the step S4 is as follows: calculating the rgb optical value of the processing pixel according to the rgb digital value of the processing pixel and the preset rgb optical value calculation formula , Calculate the tristimulus value of the processing pixel according to the optical rgb value of the processing pixel and the preset tristimulus value calculation formula, and calculate the color coordinate of the processing pixel in the chromatogram according to the tristimulus value of the processing pixel and the preset color coordinate calculation formula.
  • the preset calculation formula of rgb optical value is:
  • R is the red optical value in the rgb optical value
  • G is the green optical value in the rgb optical value
  • B is the blue optical value in the rgb optical value
  • r is the red digital value in the rgb digital value
  • g is rgb
  • b is the blue digital value in the rgb digital value
  • the preset formula for calculating the tristimulus value is:
  • X is the red stimulus value in the tristimulus value
  • Y is the green stimulus value in the tristimulus value
  • Z is the blue stimulus value in the tristimulus value
  • M is the preset conversion matrix.
  • the preset color coordinate formula is:
  • x is the abscissa of the color coordinate in the chromatogram
  • y is the ordinate of the color coordinate in the chromatogram
  • the coordinates of the reference points where the boundary between the first zone and the second zone, the boundary between the second zone and the third zone, and the boundary between the third zone and the first zone are (0.332, 0.1858).
  • the preset pixel color temperature calculation formula is:
  • CT is the pixel color temperature value
  • the preset first weight value calculation formula is:
  • ⁇ 1 is the weight value of the processing pixel when the color coordinate of the processing pixel is in the second area
  • ⁇ 1 is the line between the point corresponding to the color coordinate of the processing pixel and the reference point and the boundary line between the first area and the second area
  • ⁇ 1 is the angle between the boundary between the first zone and the second zone and the boundary between the second zone and the third zone
  • the preset second weight value calculation formula is:
  • ⁇ 2 is the weight value of the processing pixel when the color coordinate of the processing pixel is in the third zone
  • ⁇ 2 is the line between the point corresponding to the color coordinate of the processing pixel and the reference point and the boundary between the first zone and the third zone
  • the angle, ⁇ 2 is the angle between the boundary between the first and third regions and the boundary between the second and third regions.
  • the chromatogram is CIE1931 chromatogram.
  • the preset minimum color temperature is 1000K; the preset maximum color temperature is 15000K.
  • the image color temperature acquisition method of the present invention divides the color gamut space into the first area that can calculate the color temperature according to the pixel color temperature calculation formula, and cannot calculate the color temperature based on the pixel color temperature calculation formula, but has the image color tone key to the image.
  • the second and third areas determine the color coordinate position of the pixel.
  • the pixel color temperature formula is used to calculate the color temperature value of the pixel and the weight of the color temperature value in the statistical table is increased by one.
  • the pixel's color coordinate and the position of the reference point are used to calculate the weight value of the pixel and added to the weight of the maximum color temperature in the statistical table.
  • the pixel's color coordinate and the position of the reference point are used Calculate the weight value of the pixel and add it to the weight of the minimum color temperature in the statistical table, and then combine the weight to calculate the color temperature of the image, which can more accurately obtain the color temperature of the image.
  • FIG. 1 is a flowchart of a method for acquiring image color temperature of the present invention
  • FIG. 2 is a schematic diagram of a chromatogram of the method for acquiring image color temperature of the present invention.
  • the present invention provides a method for acquiring image color temperature, including the following steps:
  • step S1 Establish statistical tables.
  • the statistical table includes a plurality of reference color temperatures and a plurality of weights corresponding to the plurality of reference color temperatures, respectively, the plurality of reference color temperatures include a preset minimum color temperature, a preset maximum color temperature, and a plurality of intermediate color temperatures. for 0 .
  • the multiple intermediate color temperatures gradually increase, and are all greater than the minimum color temperature and less than the maximum color temperature.
  • the preset minimum color temperature is 1000K .
  • the preset maximum color temperature is 15000K .
  • the plurality of intermediate color temperatures may be set at equal intervals between the minimum color temperature and the maximum color temperature.
  • the statistical table may be as follows 1 Statistics table, the difference between every two adjacent color temperatures in multiple intermediate color temperatures is 500K , The difference between the minimum intermediate color temperature and the minimum color temperature is 500K , The difference between the maximum color temperature and the maximum intermediate color temperature is 500K .
  • step S2 See the picture 2 , Provide a chromatogram, divide the color gamut space in the chromatogram into the first area connected in pairs A , District 2 B And the third district C .
  • the intersection of the points converges at a reference point O , District 1 A With the second district B
  • the borderline of and the color temperature line corresponding to the maximum color temperature coincide
  • the first area A With the third district C The borderline of and the color temperature line corresponding to the minimum color temperature coincide
  • the boundary line is parallel to the chromatogram y axis.
  • the chromatogram is CIE1931 Chromatogram.
  • the coordinates are ( 0.332 , 0.1858 ).
  • step S3 Provide image display data.
  • the image includes a plurality of pixels, and the display data of the image includes a plurality of pixels corresponding to the plurality of pixels, respectively rgb Numeric value.
  • the rgb Digital values include red digital values, green digital values, and blue digital values.
  • step S4 Select one of the multiple pixels as the processing pixel. Will handle pixels rgb The digital value is converted to the color coordinates of the processed pixel in the chromatogram.
  • the steps S4 Will handle pixels rgb
  • the specific process of converting digital values to the color coordinates of the processed pixels in the chromatogram is as follows: rgb Digital value and preset rgb Calculation formula of optical value rgb Optical value, depending on the optical processing pixel rgb
  • the value and the preset tristimulus value calculation formula calculate the tristimulus value of the processing pixel, and calculate the color coordinate of the processing pixel in the chromatogram according to the tristimulus value of the processing pixel and the preset color coordinate calculation formula.
  • the preset calculation formula of rgb optical value is:
  • R is the red optical value in the rgb optical value
  • G is the green optical value in the rgb optical value
  • B is the blue optical value in the rgb optical value
  • r is the red digital value in the rgb digital value
  • g is rgb
  • b is the blue digital value in the rgb digital value
  • the preset formula for calculating the tristimulus value is:
  • X is the red stimulus value in the tristimulus value
  • Y is the green stimulus value in the tristimulus value
  • Z is the blue stimulus value in the tristimulus value
  • M is the preset conversion matrix.
  • the preset color coordinate formula is:
  • x is the abscissa of the color coordinate in the chromatogram
  • y is the ordinate of the color coordinate in the chromatogram
  • Step S5 Determine the position of the color coordinate of the processing pixel in the color gamut space. If the color coordinate of the processing pixel is located in the first area A, for example, at point P(A) in FIG. 2, the color temperature value of the processing pixel is calculated according to the color coordinate of the processing pixel and the preset pixel color temperature calculation formula to determine the color temperature of the processing pixel Whether the value is one of multiple reference color temperatures, if so, the weight corresponding to the color temperature value of the processed pixel in the statistical table is increased by 1, otherwise the color temperature value and 1 of the processed pixel are used as the reference color temperature and their corresponding weights to the statistics Table. If the color coordinate of the processing pixel is located in the second area B, for example, at the point P(B) in FIG.
  • the line between this point and the reference point O and the boundary line between the first area A and the second area B The angle is ⁇ 1
  • the angle between the boundary between the first area A and the second area B and the boundary between the second area B and the third area C is ⁇ 1
  • the preset first weight value calculation formula calculates the weight value of the processed pixel, and adds the weight value to the statistical table The weight corresponding to the maximum color temperature of 15000K. If the color coordinate of the processing pixel is located in the third area C, for example at the point P(C) in FIG.
  • the line between this point and the reference point O and the boundary between the first area A and the third area C The angle is ⁇ 2, and the angle between the boundary between the first area A and the third area C and the boundary between the second area B and the third area C is ⁇ 2.
  • the point and reference corresponding to the color coordinates of the processed pixel The angle between the connection of the points and the boundary between the first area A and the third area C is ⁇ 2, the preset second weight value calculation formula calculates the weight value of the processed pixel, and adds the weight value to the statistical table The weight corresponding to the minimum color temperature of 1000K.
  • the preset pixel color temperature calculation formula is: Among them, CT is the pixel color temperature value,
  • ⁇ 1 is the weight value of the processing pixel when the color coordinate of the processing pixel is in the second area B
  • ⁇ 1 is the line connecting the point corresponding to the color coordinate of the processing pixel and the reference point and the boundary between the first area A and the second area B
  • the angle between the lines, ⁇ 1 is the angle between the boundary between the first zone A and the second zone B and the boundary between the second zone B and the third zone C.
  • ⁇ 2 is the weight value of the processing pixel when the color coordinate of the processing pixel is in the third area C
  • ⁇ 2 is the line connecting the point corresponding to the color coordinate of the processing pixel and the reference point and the boundary between the first area A and the third area C
  • the angle between the lines, ⁇ 2 is the angle between the boundary between the first zone A and the third zone C and the boundary between the second zone B and the third zone C.
  • Step S6 Repeat steps S4 and S5 until multiple pixels execute steps S4 and S5.
  • Step S7 Multiply each reference color temperature in the statistical table by the corresponding weight, and divide the sum of the products of the multiple reference color temperatures and the corresponding weights by the sum of the weights corresponding to the multiple reference color temperatures to obtain the color temperature value of the image.
  • the image color temperature acquisition method of the present invention divides the color gamut space of the chromatogram into the first area A that can calculate the color temperature according to the pixel color temperature calculation formula, and cannot calculate the color temperature according to the pixel color temperature calculation formula, but has The second zone B and the third zone C of the image, where the second zone B is the transition zone of cool and neutral colors, and the third zone C is the transition zone of warm and neutral colors.
  • the rgb digital value is used to calculate Its color coordinate in the chromatogram, when the color coordinate is in the first area A, the pixel color temperature calculation formula is used to calculate the color temperature value of the pixel, and it is judged whether the color temperature value is one of the multiple reference color temperatures in the statistical table The same, if it is, the weight corresponding to the color temperature value is increased by 1, otherwise the color temperature value and 1 of the processed pixel are added to the statistical table as the reference color temperature and its corresponding weight, if the color coordinate is located in the second area B, then Calculate the weight value of the processing pixel according to the angle between the line corresponding to the color coordinate of the processing pixel and the reference point and the boundary between the first area A and the second area B, and the preset first weight value calculation formula, Add the weight value to the weight corresponding to the maximum color temperature in the statistical table.
  • the connection between the point corresponding to the color coordinate of the processed pixel and the reference point and the first area A and The angle between the boundary of the third area C and the preset second weight value calculation formula calculate the weight value of the processed pixel, and add the weight value to the weight corresponding to the minimum color temperature in the statistical table.
  • the color temperature value of the image can scientifically consider the transition and processing of the pixel color temperature characteristics and the color temperature characteristics of the special area, so that the obtained image color temperature is better in line with the actual image color temperature, which is more accurate to obtain the image color temperature.
  • the image color temperature acquisition method of the present invention divides the color gamut space into the first region that can calculate the color temperature according to the pixel color temperature calculation formula, and the second region that cannot calculate the color temperature based on the pixel color temperature calculation formula but has the image color tone Area and the third area, determine the position of the pixel's color coordinate, when it is in the first area, use the pixel color temperature formula to calculate the color temperature value of the pixel and increase the weight of the color temperature value in the statistical table by 1, when it is in the second area
  • the weight value of the pixel is calculated and added to the weight of the maximum color temperature in the statistical table.
  • the positional relationship between the color coordinate of the pixel and the reference point is used
  • the pixel weight value is added to the weight of the minimum color temperature in the statistical table, and then the weight is used to calculate the color temperature of the image, so that the color temperature of the image can be obtained more accurately.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Color Image Communication Systems (AREA)
  • Spectrometry And Color Measurement (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

本发明提供一种影像色温的获取方法。本发明的影像色温的获取方法将色域空间划分为能够依据像素色温计算公式计算色温的第一区、无法依据像素色温计算公式计算色温但对影像色温基调有影像的第二区及第三区,判断像素的色坐标的位置,当其位于第一区内时采用像素色温公式计算像素的色温值并将统计表中该色温值的权重加1,当其位于第二区时则利用像素的色坐标与参考点的位置关系计算像素的权重值并将其加入统计表中最大色温的权重,当其位于第三区时则利用像素的色坐标与参考点的位置关系计算像素的权重值并将其加入统计表中最小色温的权重,而后结合权重计算影像的色温,能够更准确的获取影像的色温。

Description

影像色温的获取方法 技术领域
本发明涉及显示技术领域,尤其涉及一种影像色温的获取方法。
背景技术
随着显示技术的发展,液晶显示装置(Liquid Crystal Display,LCD)和及机发光二极管显示装置(Organic Light Emitting Display,OLED)等平面显示装置因具有高画质、省电、机身薄及应用范围广等优点,而被广泛的应用于手机、电视、个人数字助理、数字相机、笔记本电脑、台式计算机等各种消费性电子产品,成为显示装置中的主流。
现有的液晶显示装置大部分一般包括:液晶显示面板及背光模组(backlight module)。液晶显示面板的工作原理是在两片平行的玻璃基板当中放置液晶分子,两片玻璃基板中间有许多垂直和水平的细小电线,通过通电与否来控制液晶分子改变方向,将背光模组的光线折射出来产生画面。
现有的OLED显示装置通常包括:基板、设于基板上的阳极、设于阳极上的有机发光层,设于有机发光层上的电子传输层及设于电子传输层上的阴极。工作时向有机发光层发射来自阳极的空穴和来自阴极的电子,将这些电子和空穴组合产生激发性电子-空穴对,并将激发性电子-空穴对从受激态输出为基态实现发光。
在显示行业中,色温是用来表征光的颜色特性的重要参数,色温越低,光色越偏红,反之,光色越偏。影像整体的色温可以表征影像给观看者的整体感觉。现有的大多数的影像的色温的计算基于统计的方式,比如对整个影像所有像素的红绿蓝(rgb)三通道分别计算最大值或平均值,作为影像色温的估计,由于是直接统计影像的红绿蓝信息,虽然获取影像色温估计值的速度较快,但准确率较低,并且这种统计影像红绿蓝信息获取影像色温的方式仅仅适用于色彩丰富的影像,当影像的色彩单调时,无法有效地获取影像的色温。
技术问题
本发明的目的在于提供一种影像色温的获取方法,能够准确地获取影像的色温。
技术解决方案
为实现上述目的,本发明提供一种影像色温的获取方法,包括如下步骤:
步骤S1、建立统计表;所述统计表包括多个参考色温及分别与多个参考色温对应的多个权重,所述多个参考色温包括预设的最小色温、预设的最大色温及多个中间色温,多个权重均为0;多个中间色温逐渐增大,且均大于最小色温并小于最大色温;
步骤S2、提供色谱图,将色谱图中的色域空间划分为两两相连的第一区、第二区及第三区;第一区与第二区的交界线、第二区与第三区的交界线及第三区与第一区的交界线汇聚于一参考点,第一区与第二区的交界线与最大色温对应的等色温线重合,第一区与第三区的交界线与最小色温对应的等色温线重合,第二区与第三区的交界线平行于色谱图的y轴;
步骤S3、提供影像的显示数据;所述影像包括多个像素,所述影像的显示数据包括分别与多个像素对应的多个rgb数字值;
步骤S4、选取多个像素中的一个为处理像素;将处理像素的rgb数字值转换为色谱图中处理像素的色坐标;
步骤S5、判断处理像素的色坐标在色域空间中的位置;若处理像素的色坐标位于第一区,则依据处理像素的色坐标及预设的像素色温计算公式计算处理像素的色温值,判断处理像素的色温值是否为多个参考色温中的一个,若是则将统计表中与处理像素的色温值对应的权重增加1,否则将处理像素的色温值及1分别作为参考色温及其对应的权重增加至统计表中;若处理像素的色坐标位于第二区,则依据处理像素的色坐标所对应的点与参考点的连线和第一区与第二区的交界线间的夹角、预设的第一权重值计算公式计算处理像素的权重值,并将该权重值加入统计表中与最大色温对应的权重;若处理像素的色坐标位于第三区,则依据处理像素的色坐标所对应的点与参考点的连线和第一区与第三区的交界线间的夹角、预设的第二权重值计算公式计算处理像素的权重值,并将该权重值加入统计表中与最小色温对应的权重;
步骤S6、重复步骤S4及S5,直至多个像素均执行步骤S4及S5;
步骤S7、将统计表中每一参考色温与对应的权重相乘,将多个参考色温与对应的权重的乘积之和与多个参考色温对应的权重之和相除,得到影像的色温值。
所述步骤S4中将处理像素的rgb数字值转换为色谱图中处理像素的色坐标的具体过程为:依据处理像素的rgb数字值及预设的rgb光学值计算公式计算处理像素的rgb光学值,依据处理像素的光学rgb值及预设的三刺激值计算公式计算处理像素的三刺激值,依据处理像素的三刺激值及预设的色坐标计算公式计算色谱图中处理像素的色坐标。
所述预设的rgb光学值计算公式为:
Figure 792477dest_path_image001
其中,R为rgb光学值中的红色光学值,G为rgb光学值中的绿色光学值,B为rgb光学值中的蓝色光学值,r为rgb数字值中的红色数字值,g为rgb数字值中的绿色数字值,b为rgb数字值中的蓝色数字值,
Figure 303093dest_path_image002
表示对r进行伽马变换处理后得到的值,
Figure 286092dest_path_image003
表示对b进行伽马变换处理后得到的值,
Figure 681301dest_path_image004
表示对g进行伽马变换处理后得到的值。
所述预设的三刺激值计算公式为:
Figure 89149dest_path_image005
其中,X为三刺激值中的红色刺激值,Y为三刺激值中的绿色刺激值,Z为三刺激值中的蓝色刺激值,M为预设的转化矩阵。
所述预设的色坐标公式为:
Figure 740972dest_path_image006
其中,x为在色谱图中色坐标的横坐标,y为在色谱图中色坐标的纵坐标。
所述色谱图中第一区与第二区的交界线、第二区与第三区的交界线及第三区与第一区的交界线汇聚的参考点的坐标为(0.332,0.1858)。
所述预设的像素色温计算公式为:
Figure 8006dest_path_image007
其中,CT为像素色温值,
Figure 675747dest_path_image008
所述预设的第一权重值计算公式为:
Figure 344626dest_path_image009
其中,γ1为处理像素的色坐标位于第二区时处理像素的权重值,α1为处理像素的色坐标所对应的点与参考点的连线和第一区与第二区的交界线间的夹角,β1为第一区与第二区的交界线和第二区与第三区的交界线间的夹角;
所述预设的第二权重值计算公式为:
Figure 665886dest_path_image010
其中,γ2为处理像素的色坐标位于第三区时处理像素的权重值,α2为处理像素的色坐标所对应的点与参考点的连线和第一区与第三区的交界线间的夹角,β2为第一区与第三区的交界线和第二区与第三区的交界线间的夹角。
所述色谱图为CIE1931色谱图。
所述预设的最小色温为1000K;所述预设的最大色温为15000K。
有益效果
本发明的有益效果:本发明的影像色温的获取方法将色域空间划分为能够依据像素色温计算公式计算色温的第一区、无法依据像素色温计算公式计算色温但对影像色温基调有影像的第二区及第三区,判断像素的色坐标的位置,当其位于第一区内时采用像素色温公式计算像素的色温值并将统计表中该色温值的权重加1,当其位于第二区时则利用像素的色坐标与参考点的位置关系计算像素的权重值并将其加入统计表中最大色温的权重,当其位于第三区时则利用像素的色坐标与参考点的位置关系计算像素的权重值并将其加入统计表中最小色温的权重,而后结合权重计算影像的色温,能够更准确的获取影像的色温。
附图说明
为了能更进一步了解本发明的特征以及技术内容,请参阅以下有关本发明的详细说明与附图,然而附图仅提供参考与说明用,并非用来对本发明加以限制。
附图中,
图1为本发明的影像色温的获取方法的流程图;
图2为本发明的影像色温的获取方法的色谱图的示意图。
本发明的实施方式
为更进一步阐述本发明所采取的技术手段及其效果,以下结合本发明的优选实施例及其附图进行详细描述。
请参阅图 1 ,本发明提供一种影像色温的获取方法,包括如下步骤:
步骤 S1 、建立统计表。所述统计表包括多个参考色温及分别与多个参考色温对应的多个权重,所述多个参考色温包括预设的最小色温、预设的最大色温及多个中间色温,多个权重均为 0 。多个中间色温逐渐增大,且均大于最小色温并小于最大色温。
具体地,所述预设的最小色温为 1000K
具体地,所述预设的最大色温为 15000K
具体地,所述多个中间色温可以等间隔的设置在最小色温及最大色温之间。
进一步地,所述统计表可以为如下表 1 的统计表,多个中间色温中,每两个相邻的色温之间的差值为 500K ,最小的中间色温与最小色温的差值为 500K ,最大色温与最大的中间色温的差值为 500K
1 、统计表
[0009] 参考色温 [0010] 1000K [0011] 1500K [0012] …… [0013] 15000K
[0014] 权重 [0015] 0 [0016] 0 [0017] …… [0018] 0
步骤 S2 、请参阅图 2 ,提供色谱图,将色谱图中的色域空间划分为两两相连的第一区 A 、第二区 B 及第三区 C 。第一区 A 与第二区 B 的交界线、第二区 B 与第三区 C 的交界线及第三区 C 与第一区 A 的交界线汇聚于一参考点 O ,第一区 A 与第二区 B 的交界线与最大色温对应的等色温线重合,第一区 A 与第三区 C 的交界线与最小色温对应的等色温线重合,第二区 B 与第三区 C 的交界线平行于色谱图的 y 轴。
具体地,所述色谱图为 CIE1931 色谱图。
具体地,所述色谱图中的所有等色温线均汇聚在该参考点 O 上。
具体地,所述参考点 O 的坐标为( 0.332 0.1858 )。
步骤 S3 、提供影像的显示数据。所述影像包括多个像素,所述影像的显示数据包括分别与多个像素对应的多个 rgb 数字值。
具体地,所述 rgb 数字值包括红色数字值、绿色数字值及蓝色数字值。
步骤 S4 、选取多个像素中的一个为处理像素。将处理像素的 rgb 数字值转换为色谱图中处理像素的色坐标。
具体地,所述步骤 S4 中将处理像素的 rgb 数字值转换为色谱图中处理像素的色坐标的具体过程为:依据处理像素的 rgb 数字值及预设的 rgb 光学值计算公式计算处理像素的 rgb 光学值,依据处理像素的光学 rgb 值及预设的三刺激值计算公式计算处理像素的三刺激值,依据处理像素的三刺激值及预设的色坐标计算公式计算色谱图中处理像素的色坐标。
所述预设的rgb光学值计算公式为:
Figure 748112dest_path_image011
其中,R为rgb光学值中的红色光学值,G为rgb光学值中的绿色光学值,B为rgb光学值中的蓝色光学值,r为rgb数字值中的红色数字值,g为rgb数字值中的绿色数字值,b为rgb数字值中的蓝色数字值,
Figure 485123dest_path_image012
表示对r进行伽马变换处理后得到的值,
Figure 477350dest_path_image013
表示对b进行伽马变换处理后得到的值,
Figure 907194dest_path_image014
表示对g进行伽马变换处理后得到的值。
所述预设的三刺激值计算公式为:
Figure 476716dest_path_image015
其中,X为三刺激值中的红色刺激值,Y为三刺激值中的绿色刺激值,Z为三刺激值中的蓝色刺激值,M为预设的转化矩阵。
所述预设的色坐标公式为:
Figure 220681dest_path_image016
其中,x为在色谱图中色坐标的横坐标,y为在色谱图中色坐标的纵坐标。
步骤S5、判断处理像素的色坐标在色域空间中的位置。若处理像素的色坐标位于第一区A,例如位于图2中P(A)点,则依据处理像素的色坐标及预设的像素色温计算公式计算处理像素的色温值,判断处理像素的色温值是否为多个参考色温中的一个,若是则将统计表中与处理像素的色温值对应的权重增加1,否则将处理像素的色温值及1分别作为参考色温及其对应的权重增加至统计表中。若处理像素的色坐标位于第二区B,例如位于图2中的P(B)点,该点与参考点O之间的连线和第一区A与第二区B的交界线间的角度为α1,而第一区A与第二区B的交界线和第二区B与第三区C的交界线间的角度为β1,此时依据处理像素的色坐标所对应的点与参考点的连线和第一区A与第二区B的交界线间的夹角也即α1、预设的第一权重值计算公式计算处理像素的权重值,并将该权重值加入统计表中与最大色温也即15000K对应的权重。若处理像素的色坐标位于第三区C,例如位于图3中的P(C)点,该点与参考点O之间的连线和第一区A与第三区C的交界线间的角度为α2,而第一区A与第三区C的交界线和第二区B与第三区C的交界线间的角度为β2,此时依据处理像素的色坐标所对应的点与参考点的连线和第一区A与第三区C的交界线间的夹角也即α2、预设的第二权重值计算公式计算处理像素的权重值,并将该权重值加入统计表中与最小色温也即1000K对应的权重。
具体地,所述预设的像素色温计算公式为:
Figure 864152dest_path_image017
其中,CT为像素色温值,
Figure 25750dest_path_image018
具体地,所述预设的第一权重值计算公式为:γ1=1-α1/β1。其中,γ1为处理像素的色坐标位于第二区B时处理像素的权重值,α1为处理像素的色坐标所对应的点与参考点的连线和第一区A与第二区B的交界线间的夹角,β1为第一区A与第二区B的交界线和第二区B域与第三区C的交界线间的夹角。
具体地,所述预设的第二权重值计算公式为:γ2=1-α2/β2。其中,γ2为处理像素的色坐标位于第三区C时处理像素的权重值,α2为处理像素的色坐标所对应的点与参考点的连线和第一区A与第三区C的交界线间的夹角,β2为第一区A与第三区C的交界线和第二区B域与第三区C的交界线间的夹角。
步骤S6、重复步骤S4及S5,直至多个像素均执行步骤S4及S5。
步骤S7、将统计表中每一参考色温与对应的权重相乘,将多个参考色温与对应的权重的乘积之和与多个参考色温对应的权重之和相除,得到影像的色温值。
需要说明的是,本发明的影像色温的获取方法将色谱图的色域空间划分为能够依据像素色温计算公式计算色温的第一区A、无法依据像素色温计算公式计算色温但对影像色温基调有影像的第二区B及第三区C,其中第二区B为冷色和中性色过渡区,而第三区C为暖色和中性色过渡区,针对一像素,利用其rgb数字值计算其在色谱图中的色坐标,当该色坐标位于第一区A时,采用像素色温计算公式计算该像素的色温值,并判断该色温值是否与统计表中的多个参考色温中的一个相同,若是则将该色温值对应的权重加1,否则将处理像素的色温值及1分别作为参考色温及其对应的权重增加至统计表中,若该色坐标位于第二区B时,则依据处理像素的色坐标所对应的点与参考点的连线和第一区A与第二区B的交界线间的夹角、预设的第一权重值计算公式计算处理像素的权重值,并将该权重值加入统计表中与最大色温对应的权重,若该色坐标位于第三区C时,则依据处理像素的色坐标所对应的点与参考点的连线和第一区A与第三区C的交界线间的夹角、预设的第二权重值计算公式计算处理像素的权重值,并将该权重值加入统计表中与最小色温对应的权重,待多个像素的色坐标均获取完成后,将此时统计表中每一参考色温与对应的权重相乘,将多个参考色温与对应的权重的乘积之和与多个参考色温对应的权重之和相除,得到影像的色温值,能够科学地考虑像素色温特性及特殊区域色温特性的过渡和处理,使得获取到的影像色温更佳符合实际的影像色温,够更准确的获取影像的色温。
综上所述,本发明的影像色温的获取方法将色域空间划分为能够依据像素色温计算公式计算色温的第一区、无法依据像素色温计算公式计算色温但对影像色温基调有影像的第二区及第三区,判断像素的色坐标的位置,当其位于第一区内时采用像素色温公式计算像素的色温值并将统计表中该色温值的权重加1,当其位于第二区时则利用像素的色坐标与参考点的位置关系计算像素的权重值并将其加入统计表中最大色温的权重,当其位于第三区时则利用像素的色坐标与参考点的位置关系计算像素的权重值并将其加入统计表中最小色温的权重,而后结合权重计算影像的色温,能够更准确的获取影像的色温。
以上所述,对于本领域的普通技术人员来说,可以根据本发明的技术方案和技术构思作出其他各种相应的改变和变形,而所有这些改变和变形都应属于本发明权利要求的保护范围。

Claims (10)

  1. 一种影像色温的获取方法,包括如下步骤:
    步骤S1、建立统计表;所述统计表包括多个参考色温及分别与多个参考色温对应的多个权重,所述多个参考色温包括预设的最小色温、预设的最大色温及多个中间色温,多个权重均为0;多个中间色温逐渐增大,且均大于最小色温并小于最大色温;
    步骤S2、提供色谱图,将色谱图中的色域空间划分为两两相连的第一区、第二区及第三区;第一区与第二区的交界线、第二区与第三区的交界线及第三区与第一区的交界线汇聚于一参考点,第一区与第二区的交界线与最大色温对应的等色温线重合,第一区与第三区的交界线与最小色温对应的等色温线重合,第二区与第三区的交界线平行于色谱图的y轴;
    步骤S3、提供影像的显示数据;所述影像包括多个像素,所述影像的显示数据包括分别与多个像素对应的多个rgb数字值;
    步骤S4、选取多个像素中的一个为处理像素;将处理像素的rgb数字值转换为色谱图中处理像素的色坐标;
    步骤S5、判断处理像素的色坐标在色域空间中的位置;若处理像素的色坐标位于第一区,则依据处理像素的色坐标及预设的像素色温计算公式计算处理像素的色温值,判断处理像素的色温值是否为多个参考色温中的一个,若是则将统计表中与处理像素的色温值对应的权重增加1,否则将处理像素的色温值及1分别作为参考色温及其对应的权重增加至统计表中;若处理像素的色坐标位于第二区,则依据处理像素的色坐标所对应的点与参考点的连线和第一区与第二区的交界线间的夹角、预设的第一权重值计算公式计算处理像素的权重值,并将该权重值加入统计表中与最大色温对应的权重;若处理像素的色坐标位于第三区,则依据处理像素的色坐标所对应的点与参考点的连线和第一区与第三区的交界线间的夹角、预设的第二权重值计算公式计算处理像素的权重值,并将该权重值加入统计表中与最小色温对应的权重;
    步骤S6、重复步骤S4及S5,直至多个像素均执行步骤S4及S5;
    步骤S7、将统计表中每一参考色温与对应的权重相乘,将多个参考色温与对应的权重的乘积之和与多个参考色温对应的权重之和相除,得到影像的色温值。
  2. 如权利要求1所述的影像色温的获取方法,其中,所述步骤S4中将处理像素的rgb数字值转换为色谱图中处理像素的色坐标的具体过程为:依据处理像素的rgb数字值及预设的rgb光学值计算公式计算处理像素的rgb光学值,依据处理像素的光学rgb值及预设的三刺激值计算公式计算处理像素的三刺激值,依据处理像素的三刺激值及预设的色坐标计算公式计算色谱图中处理像素的色坐标。
  3. 如权利要求2所述的影像色温的获取方法,其中,所述预设的rgb光学值计算公式为:
    Figure 600917dest_path_image001
    其中,R为rgb光学值中的红色光学值,G为rgb光学值中的绿色光学值,B为rgb光学值中的蓝色光学值,r为rgb数字值中的红色数字值,g为rgb数字值中的绿色数字值,b为rgb数字值中的蓝色数字值,
    Figure 774409dest_path_image002
    表示对r进行伽马变换处理后得到的值,
    Figure 253932dest_path_image003
    表示对b进行伽马变换处理后得到的值,
    Figure 18626dest_path_image004
    表示对g进行伽马变换处理后得到的值。
  4. 如权利要求3所述的影像色温的获取方法,其中,所述预设的三刺激值计算公式为:
    Figure 114758dest_path_image005
    其中,X为三刺激值中的红色刺激值,Y为三刺激值中的绿色刺激值,Z为三刺激值中的蓝色刺激值,M为预设的转化矩阵。
  5. 如权利要求4所述的影像色温的获取方法,其中,所述预设的色坐标公式为:
    Figure 183952dest_path_image006
    其中,x为在色谱图中色坐标的横坐标,y为在色谱图中色坐标的纵坐标。
  6. 如权利要求5所述的影像色温的获取方法,其中,所述色谱图中第一区与第二区的交界线、第二区与第三区的交界线及第三区与第一区的交界线汇聚的参考点的坐标为(0.332,0.1858)。
  7. 如权利要求6所述的影像色温的获取方法,其中,所述预设的像素色温计算公式为:
    Figure 517981dest_path_image007
    其中,CT为像素色温值,
    Figure 453576dest_path_image008
  8. 如权利要求1所述的影像色温的获取方法,其中,所述预设的第一权重值计算公式为:
    Figure 37004dest_path_image009
    其中,γ1为处理像素的色坐标位于第二区时处理像素的权重值,α1为处理像素的色坐标所对应的点与参考点的连线和第一区与第二区的交界线间的夹角,β1为第一区与第二区的交界线和第二区与第三区的交界线间的夹角;
    所述预设的第二权重值计算公式为:
    Figure 880195dest_path_image010
    其中,γ2为处理像素的色坐标位于第三区时处理像素的权重值,α2为处理像素的色坐标所对应的点与参考点的连线和第一区与第三区的交界线间的夹角,β2为第一区与第三区的交界线和第二区与第三区的交界线间的夹角。
  9. 如权利要求1所述的影像色温的获取方法,其中,所述色谱图为CIE1931色谱图。
  10. 如权利要求1所述的影像色温的获取方法,其中,所述预设的最小色温为1000K;所述预设的最大色温为15000K。
PCT/CN2018/119415 2018-11-26 2018-12-05 影像色温的获取方法 WO2020107511A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811419954.0 2018-11-26
CN201811419954.0A CN109493829B (zh) 2018-11-26 2018-11-26 影像色温的获取方法

Publications (1)

Publication Number Publication Date
WO2020107511A1 true WO2020107511A1 (zh) 2020-06-04

Family

ID=65696840

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119415 WO2020107511A1 (zh) 2018-11-26 2018-12-05 影像色温的获取方法

Country Status (2)

Country Link
CN (1) CN109493829B (zh)
WO (1) WO2020107511A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110211062A (zh) * 2019-05-20 2019-09-06 深圳市华星光电半导体显示技术有限公司 一种场景光源色温控制方法
CN110388987B (zh) * 2019-07-24 2020-11-10 深圳市华星光电技术有限公司 获取影像色温的方法
CN112465780B (zh) * 2020-11-26 2023-03-10 云谷(固安)科技有限公司 绝缘层膜厚异常监控方法及装置
CN113347757B (zh) * 2021-08-06 2021-11-23 杭州罗莱迪思科技股份有限公司 用于rgbw灯的白平衡控制方法及其应用
CN115412711A (zh) * 2022-09-16 2022-11-29 集创北方(珠海)科技有限公司 色温调节方法、色温调节装置及显示装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756375A (zh) * 2001-07-09 2006-04-05 三星电子株式会社 基于色温浏览图像数据的装置和方法
JP2008148009A (ja) * 2006-12-11 2008-06-26 Fuji Xerox Co Ltd 画像処理装置及び画像処理プログラム
US20130016904A1 (en) * 2011-07-12 2013-01-17 Fuji Xerox Co., Ltd. White adjusting device, white adjusting method, and non-transitory computer readable medium
CN104661009A (zh) * 2013-11-25 2015-05-27 联咏科技股份有限公司 自动色彩校准方法及其色彩校准模块

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3625719B2 (ja) * 1999-12-07 2005-03-02 富士通株式会社 ガス放電表示装置
JP2004151952A (ja) * 2002-10-30 2004-05-27 Nikon Corp 色表現方法および画像処理方法
US7218358B2 (en) * 2004-06-15 2007-05-15 Coretronic Corporation Method and apparatus for calibrating color temperature of color display devices
CN101163253B (zh) * 2006-10-13 2011-04-06 纬创资通股份有限公司 寻找新色温点的方法及其装置
CN100563297C (zh) * 2007-06-26 2009-11-25 北京中星微电子有限公司 实现白平衡校正的方法及装置
CN101917633B (zh) * 2010-09-01 2012-09-05 杭州海康威视软件有限公司 图像的白平衡处理方法、装置及摄像机
JP5482850B2 (ja) * 2012-09-05 2014-05-07 株式会社ニコン 撮像装置
CN104581105B (zh) * 2015-02-03 2016-01-20 中国人民解放军国防科学技术大学 基于色温距离变换权重图和块可靠性修正的自动白平衡方法
CN105578166B (zh) * 2016-01-08 2018-06-05 浙江宇视科技有限公司 一种色温确定方法及装置
CN105898263B (zh) * 2016-05-24 2017-08-25 厦门美图之家科技有限公司 一种图像白平衡方法、装置和计算设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756375A (zh) * 2001-07-09 2006-04-05 三星电子株式会社 基于色温浏览图像数据的装置和方法
JP2008148009A (ja) * 2006-12-11 2008-06-26 Fuji Xerox Co Ltd 画像処理装置及び画像処理プログラム
US20130016904A1 (en) * 2011-07-12 2013-01-17 Fuji Xerox Co., Ltd. White adjusting device, white adjusting method, and non-transitory computer readable medium
CN104661009A (zh) * 2013-11-25 2015-05-27 联咏科技股份有限公司 自动色彩校准方法及其色彩校准模块

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MASATO, A. ET AL.: "A Method to Estimate Correlated Color Temperatures of Illuminants Using a Color Video Camera", IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, vol. 40, no. 1, 28 February 1991 (1991-02-28), XP000208160, DOI: 20190521165558A *
MASATO, ABE: "A Method to Estimate Correlated Color Temperatures of Illuminants Using a Color Video Camera", IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, 28 February 1991 (1991-02-28), pages 19 - 22, XP010085065 *

Also Published As

Publication number Publication date
CN109493829B (zh) 2020-08-04
CN109493829A (zh) 2019-03-19

Similar Documents

Publication Publication Date Title
WO2020107511A1 (zh) 影像色温的获取方法
US9613553B2 (en) Method and device for detecting uniformity of a dark state image of display
WO2017140003A1 (zh) 校准oled显示面板亮度不均的方法
US20100238101A1 (en) Image processing method capable of reducing color shift
US10339849B2 (en) Method and system for regulating brightness and chromaticity of display panel
CN107705753B (zh) Amoled显示面板的亮度补偿方法
WO2018223486A1 (zh) Oled显示面板的补偿表存储方法
CN104332143B (zh) 显示装置及其色彩转换方法
WO2016045146A1 (zh) 用于显示器的图像色彩增强方法及装置
WO2020000477A1 (zh) 色域校正方法及装置
WO2020107661A1 (zh) 影像色温的获取方法
WO2020172921A1 (zh) 图像处理系统及图像处理方法
WO2020107656A1 (zh) 像素驱动方法
WO2017201789A1 (zh) 石墨烯显示器以及石墨烯显示器的驱动方法、驱动装置
TW201311012A (zh) 顯示影像的白平衡方法
WO2020253053A1 (zh) 图像显着性的色彩增强方法及图像处理装置
WO2017063223A1 (zh) 提升oled显示面板对比度的方法及系统
WO2017173682A1 (zh) 石墨烯显示器的驱动方法以及石墨烯显示器
CN107479222A (zh) 量测显示面板的量测方法及其装置
CN109658864B (zh) 一种显示面板显示处理方法和显示处理装置
KR20190055290A (ko) 표시 장치 및 이의 구동 방법
JP2018531425A6 (ja) Oled表示パネルのコントラスト比向上方法及びそのシステム
WO2019179059A1 (zh) 基于模糊控制的饱和度增强方法及装置
WO2019080447A1 (zh) 显示装置的驱动方法及显示装置
US20210408158A1 (en) Color shift compensation method, display panel and display device

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: 18941596

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18941596

Country of ref document: EP

Kind code of ref document: A1