Movatterモバイル変換


[0]ホーム

URL:


CN112905141A - Screen display method and device and computer storage medium - Google Patents

Screen display method and device and computer storage medium
Download PDF

Info

Publication number
CN112905141A
CN112905141ACN201911229407.0ACN201911229407ACN112905141ACN 112905141 ACN112905141 ACN 112905141ACN 201911229407 ACN201911229407 ACN 201911229407ACN 112905141 ACN112905141 ACN 112905141A
Authority
CN
China
Prior art keywords
target
color
screen
color temperature
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911229407.0A
Other languages
Chinese (zh)
Other versions
CN112905141B (en
Inventor
翟东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201911229407.0ApriorityCriticalpatent/CN112905141B/en
Publication of CN112905141ApublicationCriticalpatent/CN112905141A/en
Application grantedgrantedCritical
Publication of CN112905141BpublicationCriticalpatent/CN112905141B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本公开是关于一种屏幕显示方法及装置、计算机存储介质,属于计算机技术领域;其中,所述方法包括:获取屏幕的环境光色温;根据所述环境光色温确定所述屏幕的目标色温;根据所述目标色温确定待显示图像中每个像素点的目标红色绿色蓝色(RGB)值;按照每个像素点对应的目标RGB值,显示所述待显示图像。

Figure 201911229407

The present disclosure relates to a screen display method and device, and a computer storage medium, belonging to the technical field of computers; wherein, the method includes: acquiring an ambient light color temperature of a screen; determining a target color temperature of the screen according to the ambient light color temperature; The target color temperature determines the target red, green, blue (RGB) value of each pixel in the image to be displayed; the image to be displayed is displayed according to the target RGB value corresponding to each pixel.

Figure 201911229407

Description

Translated fromChinese
屏幕显示方法及装置、计算机存储介质Screen display method and device, and computer storage medium

技术领域technical field

本公开涉及计算机技术领域,尤其涉及一种屏幕显示方法及装置、计算机存储介质。The present disclosure relates to the field of computer technology, and in particular, to a screen display method and device, and a computer storage medium.

背景技术Background technique

目前,一些电子设备支持护眼模式,通过改变显示屏幕中红绿蓝的比例来调整屏幕白点坐标,从而实现类似纸张效果的护眼模式。但是对于每一个颜色,都是等比例调节红绿蓝的比例,这种护眼模式常常出现屏幕显示颜色失真的问题。At present, some electronic devices support the eye protection mode, which adjusts the coordinates of the white point of the screen by changing the ratio of red, green and blue in the display screen, so as to realize the eye protection mode similar to the paper effect. However, for each color, the ratio of red, green and blue is adjusted in equal proportions. This eye protection mode often has the problem of color distortion on the screen display.

发明内容SUMMARY OF THE INVENTION

本公开提供一种屏幕显示方法及装置、计算机存储介质。The present disclosure provides a screen display method and device, and a computer storage medium.

根据本公开实施例的第一方面,提供一种屏幕显示方法,所述方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided a screen display method, the method comprising:

获取屏幕的环境光色温;Get the ambient light color temperature of the screen;

根据所述环境光色温确定所述屏幕的目标色温;Determine the target color temperature of the screen according to the ambient light color temperature;

根据所述目标色温确定待显示图像中每个像素点的目标红色绿色蓝色(RedGreenBlue,RGB)值;Determine the target red green blue (RedGreenBlue, RGB) value of each pixel in the to-be-displayed image according to the target color temperature;

按照每个像素点对应的目标RGB值,显示所述待显示图像。The to-be-displayed image is displayed according to the target RGB value corresponding to each pixel point.

上述方案中,所述根据所述环境光色温确定所述屏幕的目标色温,包括:In the above solution, determining the target color temperature of the screen according to the ambient light color temperature includes:

获取黑体辐射轨迹曲线;Obtain the black body radiation trajectory curve;

基于所述黑体辐射轨迹曲线和所述环境光色温,确定所述屏幕的目标色温。A target color temperature of the screen is determined based on the black body radiation locus curve and the ambient light color temperature.

上述方案中,所述根据所述目标色温确定待显示图像中每个像素点的目标RGB值,包括:In the above solution, determining the target RGB value of each pixel in the to-be-displayed image according to the target color temperature includes:

根据所述目标色温确定目标转换矩阵;Determine a target conversion matrix according to the target color temperature;

根据所述目标转换矩阵和待显示图像中每个像素点的原始RGB值,确定所述每个像素点对应的目标RGB值。According to the target conversion matrix and the original RGB value of each pixel in the to-be-displayed image, the target RGB value corresponding to each pixel is determined.

上述方案中,所述根据所述目标色温确定目标转换矩阵,包括:In the above scheme, determining the target conversion matrix according to the target color temperature includes:

基于色适应矩阵确定颜色转换矩阵,其中,所述色适应矩阵包括第一类元素、第二类元素及第三类元素中至少之一,其中,所述第一类元素表征R在G或B为主色系下的分量,所述第二类元素表征G在R或B为主色系下的分量,所述第三类元素表征B在G或R为主色系下的分量;A color conversion matrix is determined based on a color adaptation matrix, wherein the color adaptation matrix includes at least one of a first-type element, a second-type element, and a third-type element, wherein the first-type element represents that R is in G or B The component under the main color system, the second type of element represents the component of G in the R or B main color system, and the third type of element represents the component of B in the G or R main color system;

利用屏幕工作的颜色空间确定从RGB到国际照明委员会(CommissionInternationale de L'Eclairage,CIE)XYZ色彩空间转换的第一转换矩阵,以及从CIE XYZ到RGB色彩空间转换的第二转换矩阵;Determine the first conversion matrix from RGB to the International Commission on Illumination (Commission Internationale de L'Eclairage, CIE) XYZ color space conversion using the color space of the screen work, and the second conversion matrix from CIE XYZ to RGB color space conversion;

根据所述颜色转换矩阵、所述第一转换矩阵和所述第二转换矩阵,确定目标转换矩阵。A target conversion matrix is determined from the color conversion matrix, the first conversion matrix and the second conversion matrix.

上述方案中,所述基于色适应矩阵确定颜色转换矩阵,包括:In the above scheme, the color conversion matrix is determined based on the color adaptation matrix, including:

根据目标色温确定目标白点坐标;Determine the target white point coordinates according to the target color temperature;

确定屏幕的当前白点坐标;Determine the current white point coordinates of the screen;

根据所述目标白点坐标、所述当前白点坐标和所述色适应矩阵,确定屏幕当前所有颜色的颜色转换矩阵。According to the target white point coordinates, the current white point coordinates and the color adaptation matrix, the color conversion matrices of all the current colors of the screen are determined.

根据本公开实施例的第二方面,提供一种屏幕显示装置,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided a screen display device, the device comprising:

检测模块,被配置为获取屏幕的环境光色温;a detection module, configured to obtain the ambient light color temperature of the screen;

第一确定模块,被配置为根据所述环境光色温确定所述屏幕的目标色温;a first determining module configured to determine a target color temperature of the screen according to the ambient light color temperature;

第二确定模块,被配置为根据所述目标色温确定待显示图像中每个像素点的目标RGB值;a second determination module, configured to determine the target RGB value of each pixel in the image to be displayed according to the target color temperature;

显示控制模块,被配置为按照每个像素点对应的目标RGB值,显示所述待显示图像。The display control module is configured to display the to-be-displayed image according to the target RGB value corresponding to each pixel point.

上述方案中,所述第一确定模块,被配置为:In the above solution, the first determination module is configured as:

获取黑体辐射轨迹曲线;Obtain the black body radiation trajectory curve;

基于所述黑体辐射轨迹曲线和所述环境光色温,确定所述屏幕的目标色温。A target color temperature of the screen is determined based on the black body radiation locus curve and the ambient light color temperature.

上述方案中,所述第一确定模块,被配置为:In the above solution, the first determination module is configured as:

根据所述目标色温确定目标转换矩阵;Determine a target conversion matrix according to the target color temperature;

根据所述目标转换矩阵和待显示图像中每个像素点的原始RGB值,确定所述每个像素点对应的目标RGB值。According to the target conversion matrix and the original RGB value of each pixel in the to-be-displayed image, the target RGB value corresponding to each pixel is determined.

上述方案中,所述第一确定模块,被配置为:In the above solution, the first determination module is configured as:

基于色适应矩阵确定颜色转换矩阵,其中,所述色适应矩阵包括第一类元素、第二类元素及第三类元素中至少之一,其中,所述第一类元素表征R在G或B为主色系下的分量,所述第二类元素表征G在R或B为主色系下的分量,所述第三类元素表征B在G或R为主色系下的分量;A color conversion matrix is determined based on a color adaptation matrix, wherein the color adaptation matrix includes at least one of a first-type element, a second-type element, and a third-type element, wherein the first-type element represents that R is in G or B The component under the main color system, the second type of element represents the component of G in the R or B main color system, and the third type of element represents the component of B in the G or R main color system;

利用屏幕工作的颜色空间确定从RGB到CIE XYZ色彩空间转换的第一转换矩阵,以及从CIE XYZ到RGB色彩空间转换的第二转换矩阵;Determine a first conversion matrix for conversion from RGB to CIE XYZ color space, and a second conversion matrix for conversion from CIE XYZ to RGB color space using the color space of the screen work;

根据所述颜色转换矩阵、所述第一转换矩阵和所述第二转换矩阵,确定目标转换矩阵。A target conversion matrix is determined from the color conversion matrix, the first conversion matrix and the second conversion matrix.

上述方案中,所述第一确定模块,被配置为:In the above solution, the first determination module is configured as:

根据目标色温确定目标白点坐标;Determine the target white point coordinates according to the target color temperature;

确定屏幕的当前白点坐标;Determine the current white point coordinates of the screen;

根据所述目标白点坐标、所述当前白点坐标和所述色适应矩阵,确定屏幕当前所有颜色的颜色转换矩阵。According to the target white point coordinates, the current white point coordinates and the color adaptation matrix, the color conversion matrices of all the current colors of the screen are determined.

根据本公开实施例的第三方面,提供一种屏幕显示装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a screen display device, comprising:

处理器;processor;

用于存储可执行指令的存储器;memory for storing executable instructions;

其中,所述处理器被配置为:执行所述可执行指令以实现前述任意一个方案所述的屏幕显示方法。Wherein, the processor is configured to: execute the executable instructions to implement the screen display method described in any one of the preceding solutions.

根据本公开实施例的第四方面,提供一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令被处理器执行时,使得所述处理器执行前述任意一个方案所述的屏幕显示方法。According to a fourth aspect of the embodiments of the present disclosure, a computer storage medium is provided, where executable instructions are stored in the computer storage medium, and when the executable instructions are executed by a processor, the processor is caused to execute any one of the foregoing solutions. The described screen display method.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

获取屏幕的环境光色温;根据所述环境光色温确定所述屏幕的目标色温;根据所述目标色温确定待显示图像中每个像素点的目标RGB值;按照每个像素点对应的目标RGB值,显示所述待显示图像。如此,能使屏幕显示色温随着环境色温的变化而变化,能解决屏幕显示颜色失真的问题。Obtain the ambient light color temperature of the screen; determine the target color temperature of the screen according to the ambient light color temperature; determine the target RGB value of each pixel in the image to be displayed according to the target color temperature; according to the target RGB value corresponding to each pixel to display the to-be-displayed image. In this way, the color temperature of the screen display can be changed with the change of the color temperature of the environment, and the problem of color distortion of the screen display can be solved.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention. In the attached image:

图1是根据一示例性实施例示出的一种屏幕显示方法的流程示意图;FIG. 1 is a schematic flowchart of a screen display method according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种实现屏幕显示处理的流程图;FIG. 2 is a flowchart illustrating a process for realizing screen display according to an exemplary embodiment;

图3是根据一示例性实施例示出的确定目标转换矩阵MRGB的流程示意图;3 is a schematic flowchart of determining a target conversion matrix MRGB according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种屏幕显示装置的框图;4 is a block diagram of a screen display device according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种实现屏幕显示处理的装置800的框图。FIG. 5 is a block diagram of anapparatus 800 for implementing screen display processing according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请实施例的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the embodiments of the present application, as recited in the appended claims.

在本公开实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开实施例。在本公开实施例和所附权利要求书中所使用的单数形式的“一种”、“”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in the embodiments of the present disclosure are only for the purpose of describing particular embodiments, and are not intended to limit the embodiments of the present disclosure. As used in the embodiments of the present disclosure and the appended claims, the singular forms "a," "" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本公开实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”及“若”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present disclosure to describe various pieces of information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the embodiments of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."

实施例一Example 1

图1是根据一示例性实施例示出的一种屏幕显示方法的流程图,如图1所示,该屏幕显示方法应用于显示屏的电子设备。该电子设备包括但不限于固定设备和移动设备,例如,该固定设备包括但不限于:个人电脑(Personal Computer,PC)、电视等;该移动设备包括但不限于:手机、平板电脑、可穿戴式设备等。该屏幕显示方法包括以下步骤:Fig. 1 is a flow chart of a screen display method according to an exemplary embodiment. As shown in Fig. 1 , the screen display method is applied to an electronic device with a display screen. The electronic equipment includes but is not limited to fixed equipment and mobile equipment. For example, the fixed equipment includes but is not limited to: personal computer (Personal Computer, PC), TV, etc.; the mobile equipment includes but is not limited to: mobile phone, tablet computer, wearable type equipment, etc. The screen display method includes the following steps:

在步骤S11中,获取屏幕的环境光色温;In step S11, obtain the ambient light color temperature of the screen;

在步骤S12中,根据所述环境光色温确定所述屏幕的目标色温;In step S12, the target color temperature of the screen is determined according to the ambient light color temperature;

在步骤S13中,根据所述目标色温确定待显示图像中每个像素点的目标红色绿色蓝色(RGB)值;In step S13, the target red, green and blue (RGB) values of each pixel in the image to be displayed are determined according to the target color temperature;

在步骤S14中,按照每个像素点对应的目标RGB值,显示所述待显示图像。In step S14, the to-be-displayed image is displayed according to the target RGB value corresponding to each pixel point.

在本实施例中,所述环境光是指电子设备的屏幕所处环境的环境光。In this embodiment, the ambient light refers to ambient light in the environment where the screen of the electronic device is located.

在本实施例中,所述环境光包括但不限于人为环境光和自然环境光。示例性地,所述人为环境光包括灯光,所述自然环境光包括太阳光、月光等。In this embodiment, the ambient light includes but is not limited to artificial ambient light and natural environment light. Exemplarily, the artificial ambient light includes lighting, and the ambient light includes sunlight, moonlight, and the like.

在本实施例中,所述目标色温是基于当前环境光色温应该设置到的目标色温。In this embodiment, the target color temperature is a target color temperature to which the current ambient light color temperature should be set.

实际应用中,电子设备支持的护眼模式,是通过调整屏幕色温来实现的。In practical applications, the eye protection mode supported by electronic devices is realized by adjusting the color temperature of the screen.

采用本实施例所述的技术方案,屏幕在显示时,使其显示色温随着环境色温的变化而变化,能解决屏幕显示颜色失真的问题。另外,通过将屏幕色温与环境光色温相结合,从而达到在不同的环境光色温下,通过调整屏幕色温使屏幕输出色彩既能达到护眼,又能保证准确显示的效果。With the technical solution described in this embodiment, when the screen is displayed, the color temperature of the display changes with the change of the color temperature of the environment, which can solve the problem of color distortion of the screen display. In addition, by combining the screen color temperature with the ambient light color temperature, under different ambient light color temperatures, adjusting the screen color temperature enables the screen output color to protect the eyes and ensure accurate display.

在一些实施例中,根据所述环境光色温确定所述屏幕的目标色温,包括:In some embodiments, determining the target color temperature of the screen according to the ambient light color temperature includes:

获取黑体辐射轨迹曲线;Obtain the black body radiation trajectory curve;

基于所述黑体辐射轨迹曲线和所述环境光色温,确定所述屏幕的目标色温。A target color temperature of the screen is determined based on the black body radiation locus curve and the ambient light color temperature.

这里,所述黑体辐射轨迹的英文全称为:Black Body Locus。Here, the full English name of the black body radiation locus is: Black Body Locus.

在一些实施方式中,在黑体辐射轨迹的基础上,拟合一条XYZ随着相关色温(Correlated Color Temperature,CCT)的曲线(Xd,Yd,Zd)=f(CCT),其中,f(CCT)表示目标色温曲线,(Xd,Yd,Zd)表示在目标色温下像素点的目标坐标值。In some embodiments, on the basis of the black body radiation locus, a curve of XYZ versus Correlated Color Temperature (CCT) is fitted (Xd, Yd, Zd)=f(CCT), where f(CCT) Represents the target color temperature curve, and (Xd, Yd, Zd) represents the target coordinate value of the pixel point at the target color temperature.

如此,使得目标色温与环境光相关,从而保证用户使用的护眼模式与环境强相关,进而使屏幕输出色彩既能达到护眼,又能保证准确显示的效果。In this way, the target color temperature is related to the ambient light, so as to ensure that the eye protection mode used by the user is strongly related to the environment, so that the screen output color can not only protect the eyes, but also ensure the effect of accurate display.

在一些实施方式中,根据所述目标色温确定待显示图像中每个像素点的目标RGB值,包括:In some embodiments, the target RGB value of each pixel in the image to be displayed is determined according to the target color temperature, including:

根据所述目标色温确定目标转换矩阵MRGBDetermine a target conversion matrix MRGB according to the target color temperature;

根据所述目标转换矩阵MRGB和待显示图像中每个像素点的原始RGB值,确定所述每个像素点对应的目标RGB值。According to the target conversion matrix MRGB and the original RGB value of each pixel in the image to be displayed, the target RGB value corresponding to each pixel is determined.

这里,所述原始RGB值可以理解为在未进行护眼处理情况下,屏幕将要显示的图像的RGB值。Here, the original RGB value can be understood as the RGB value of the image to be displayed on the screen without the eye protection processing.

这里,所述目标RGB值是在当前环境光下,屏幕将要显示的与该环境光相适应的目标色温所对应的图像的RGB值。Here, the target RGB value is the RGB value of the image corresponding to the target color temperature adapted to the ambient light to be displayed on the screen under the current ambient light.

如此,使得用户使用的护眼模式与环境强相关,进而使屏幕输出图像的色彩既能达到护眼,又能保证准确显示的效果。In this way, the eye protection mode used by the user is strongly related to the environment, so that the color of the output image on the screen can not only protect the eyes, but also ensure the effect of accurate display.

在一些实施方式中,根据所述目标色温确定目标转换矩阵,包括:In some embodiments, determining a target conversion matrix according to the target color temperature includes:

基于色适应矩阵MA确定颜色转换矩阵M;Determine the color conversion matrix M based on the color adaptation matrix MA ;

利用屏幕工作的颜色空间确定从RGB到国际照明委员会(CommissionInternationale de L'Eclairage,CIE)XYZ色彩空间转换的第一转换矩阵Mt,以及从CIEXYZ到RGB色彩空间转换的第二转换矩阵Mt’;Determine the first conversion matrix Mt from RGB to the International Commission on Illumination (Commission Internationale de L'Eclairage, CIE) XYZ color space conversion using the color space of the screen operation, and the second conversion matrix Mt ' from CIEXYZ to RGB color space conversion. ;

根据所述颜色转换矩阵M、所述第一转换矩阵Mt和所述第二转换矩阵Mt’,确定目标转换矩阵MRGBAccording to the color conversion matrix M, the first conversion matrix Mt and the second conversion matrix Mt ′, a target conversion matrix MRGB is determined.

其中,目标转换矩阵MRGB等于第二转换矩阵Mt’与颜色转换矩阵M与第一转换矩阵Mt的乘积。即:MRGB=Mt’*M*MtWherein, the target conversion matrix MRGB is equal to the product of the second conversion matrix Mt', the color conversion matrix M, and the first conversion matrix Mt . That is: MRGB =Mt '*M*Mt .

其中,所述色适应矩阵MA包括第一类元素、第二类元素及第三类元素中至少之一,其中,所述第一类元素表征R在G或B为主色系下的分量,所述第二类元素表征G在R或B为主色系下的分量,所述第三类元素表征B在G或R为主色系下的分量。Wherein, the color adaptation matrix MA includes at least one of elements of the first type, elements of the second type and elements of the third type, wherein the elements of the first type represent the components of R under the main color system of G or B , the second type of element represents the component of G under R or B as the main color system, and the third type of element represents the component of B under G or R as the main color system.

人眼色适应机制是指即使两个颜色的色坐标X、Y、Z一模一样,但是在不同的照明条件下显现的颜色却不尽相同,这便是人眼的色貌模型(Color Appearance)。产生色貌现象的根本原因就是人眼的色适应机制,颜色适应是人眼视觉系统根据照明光源的颜色变化而保持物体的颜色外观的能力。The human eye color adaptation mechanism means that even if the color coordinates X, Y, and Z of two colors are exactly the same, the colors displayed under different lighting conditions are not the same. This is the color appearance model of the human eye (Color Appearance). The fundamental reason for the phenomenon of color appearance is the color adaptation mechanism of the human eye. Color adaptation is the ability of the human visual system to maintain the color appearance of an object according to the color change of the lighting source.

如此,通过基于色适应矩阵确定目标转换矩阵MRGB,能将屏幕护眼色温与环境光的色温和人眼的视觉感知相结合,使屏幕显示图像时具有根据照明光源的颜色变化而保持物体的颜色外观的能力。In this way, by determining the target conversion matrix MRGB based on the color adaptation matrix, the eye protection color temperature of the screen can be combined with the color temperature of the ambient light and the visual perception of the human eye, so that when the screen displays an image, it has the ability to maintain the object's quality according to the color change of the lighting source. The ability to color appearance.

在一些实施方式中,基于色适应矩阵确定颜色转换矩阵,包括:In some embodiments, determining the color transformation matrix based on the color adaptation matrix includes:

根据目标色温确定目标白点坐标(XWD,YWD,ZWD);Determine the target white point coordinates (XWD , YWD , ZWD ) according to the target color temperature;

确定屏幕的当前白点坐标(XWS,YWS,ZWS);Determine the current white point coordinates of the screen (XWS , YWS , ZWS );

根据所述目标白点坐标(XWD,YWD,ZWD)、所述当前白点坐标(XWS,YWS,ZWS)和所述色适应矩阵MA,确定屏幕当前所有颜色的颜色转换矩阵M。According to the target white point coordinates (XWD , YWD , ZWD ), the current white point coordinates (XWS , YWS , ZWS ) and the color adaptation matrixMA , determine the colors of all current colors on the screen Transformation matrix M.

其中,根据目标色温确定目标白点坐标,包括:根据黑体辐射曲线和目标色温,得到目标白点坐标。Wherein, determining the coordinates of the target white point according to the target color temperature includes: obtaining the coordinates of the target white point according to the black body radiation curve and the target color temperature.

其中,所述色适应矩阵MA,所述颜色转换矩阵M、所述目标转换矩阵MRGB,均为3*3矩阵。其中,Wherein, the color adaptation matrix MA , the color conversion matrix M, and the target conversion matrix MRGB are all 3*3 matrices. in,

Figure BDA0002303122940000061
Figure BDA0002303122940000061

其中,e11、e22和e33分别表示R、G、B的比例;e12表示G在R为主色系的情况下的分量;e13表示B在R为主色系的情况下的分量;e21表示R在G为主色系的情况下的分量;e23表示B在G为主色系的情况下的分量;e31表示R在B为主色系的情况下的分量;e32表示G在B为主色系的情况下的分量。例如,Among them, e11 , e22 and e33 represent the ratios of R, G, and B respectively; e12 represents the component of G in the case of R as the main color system; e13 represents the proportion of B in the case of R as the main color system component; e21 represents the component of R in the case of G as the main color system; e23 represents the component of B in the case of G as the main color system; e31 represents the component of R in the case of B as the main color system; e32 represents the component of G when B is the main color system. E.g,

Figure BDA0002303122940000071
Figure BDA0002303122940000071

本实施例中,将色适应矩阵MA改进为3×3的矩阵,相较于相关技术中采用的3×1的色适应矩阵,进一步考虑到了R在G或B为主色系下的分量、G在R或B为主色系下的分量,以及B在G或R为主色系下的分量,使得该模型可以实现调节色域边界。In this embodiment, the color adaptation matrix MA is improved to a 3×3 matrix. Compared with the 3×1 color adaptation matrix adopted in the related art, the component of R in the main color system of G or B is further considered. , the component of G in the main color system of R or B, and the component of B in the main color system of G or R, so that the model can adjust the color gamut boundary.

在上述实施例中,R在G或B为主色系下的分量、G在R或B为主色系下的分量,以及B在G或R为主色系下的分量至少其一为非零元素。可选的,根据用户对色域边界的调节要求,可以考虑合适的分量(其他分量设置为0)进行计算。In the above embodiment, at least one of the component of R under the main color system of G or B, the component of G under the main color system of R or B, and the component of B under the main color system of G or R is not zero element. Optionally, according to the user's adjustment requirements for the color gamut boundary, appropriate components (other components are set to 0) may be considered for calculation.

在一种优选的实施例中,目标转换矩阵MRGB的9个元素均为非零元素。通过上述处理得到3x3的目标转换矩阵MRGB矩阵后,色域边界的纯红绿蓝的颜色会掺杂其他颜色成分,从而可以修改色域边界。In a preferred embodiment, all 9 elements of the target transformation matrix MRGB are non-zero elements. After the 3x3 target conversion matrix MRGB matrix is obtained through the above processing, the pure red, green and blue colors of the color gamut boundary will be doped with other color components, so that the color gamut boundary can be modified.

如此,使得加入了人眼色适应机制的目标转换矩阵模型,弥补了现有模型无法调整色域边界的缺点。In this way, the target transformation matrix model with the human eye color adaptation mechanism is added, which makes up for the disadvantage that the existing model cannot adjust the color gamut boundary.

本公开实施例所述技术方案,获取屏幕的环境光色温;根据所述环境光色温确定所述屏幕的目标色温;根据所述目标色温确定待显示图像中每个像素点的目标RGB值;按照每个像素点对应的目标RGB值,显示所述待显示图像。如此,屏幕在显示时,使其显示色温随着环境色温的变化而变化,能解决屏幕显示颜色失真的问题。According to the technical solutions described in the embodiments of the present disclosure, the ambient light color temperature of the screen is obtained; the target color temperature of the screen is determined according to the ambient light color temperature; the target RGB value of each pixel in the image to be displayed is determined according to the target color temperature; The target RGB value corresponding to each pixel point displays the to-be-displayed image. In this way, when the screen is displayed, the color temperature of the display changes with the change of the color temperature of the environment, which can solve the problem of color distortion of the screen display.

实施例二Embodiment 2

图2是根据一示例性实施例示出的一种实现屏幕显示处理的流程图,如图2所示,该实现屏幕显示处理流程包括以下步骤。Fig. 2 is a flow chart of implementing screen display processing according to an exemplary embodiment. As shown in Fig. 2 , the flow of implementing screen display processing includes the following steps.

在步骤S201中,获取屏幕的环境光相关色温(Correlated Color Temperature,CCT);In step S201, the ambient light-related color temperature (Correlated Color Temperature, CCT) of the screen is obtained;

在步骤S202中,确定黑体辐射轨迹曲线;In step S202, determine the black body radiation trajectory curve;

在步骤S203中,确定屏幕的目标CCT;In step S203, the target CCT of the screen is determined;

在步骤S204中,确定颜色转换矩阵M;In step S204, determine the color conversion matrix M;

在步骤S205中,确定目标转换矩阵MRGBIn step S205, determine the target conversion matrix MRGB ;

在步骤S206中,获取原始RGB数据;In step S206, obtain original RGB data;

在步骤S207中,确定转换后的RGB数据。In step S207, the converted RGB data is determined.

如此,获取屏幕的环境光色温;根据所述环境光色温和黑体辐射轨迹曲线确定所述屏幕的目标色温;根据所述目标色温确定颜色转换矩阵M和目标转换矩阵MRGB;获取待显示图像中每个像素点的原始RGB值;根据目标转换矩阵MRGB得到每个像素点对应的目标RGB值;按照每个像素点对应的目标RGB值,显示所述待显示图像。如此,屏幕在显示时,使其显示色温随着环境色温的变化而变化,能解决屏幕显示颜色失真的问题。In this way, the ambient light color temperature of the screen is obtained; the target color temperature of the screen is determined according to the ambient light color temperature and the black body radiation locus curve; the color conversion matrix M and the target conversion matrix MRGB are determined according to the target color temperature; The original RGB value of each pixel point; the target RGB value corresponding to each pixel point is obtained according to the target conversion matrix MRGB ; the to-be-displayed image is displayed according to the target RGB value corresponding to each pixel point. In this way, when the screen is displayed, the color temperature of the display changes with the change of the color temperature of the environment, which can solve the problem of color distortion of the screen display.

应理解,图2所示的流程仅仅是示意性的,本申请对此不做限定。It should be understood that the process shown in FIG. 2 is only schematic, and is not limited in this application.

实施例三Embodiment 3

图3是根据一示例性实施例示出的确定目标转换矩阵MRGB的流程示意图,如图3所示,该流程主要包括:FIG. 3 is a schematic flowchart of determining a target conversion matrix MRGB according to an exemplary embodiment. As shown in FIG. 3 , the process mainly includes:

在步骤S301中,确定屏幕的目标CCT;In step S301, the target CCT of the screen is determined;

在步骤S302中,确定黑体辐射轨迹曲线;In step S302, determine the black body radiation trajectory curve;

在步骤S303中,确定屏幕的目标白点坐标;In step S303, determine the target white point coordinates of the screen;

在步骤S304中,确定色适应矩阵MAIn step S304, determine the color adaptation matrixMA ;

在步骤S305中,确定屏幕工作白点坐标;In step S305, determine the coordinates of the screen working white point;

在步骤S306中,确定颜色转换矩阵M;In step S306, determine the color conversion matrix M;

在步骤S307中,确定屏幕的工作颜色空间;In step S307, determine the working color space of the screen;

在步骤S308中,确定XYZ域RGB互转换矩阵Mt和Mt’;In step S308, determine the XYZ domain RGB mutual conversion matrix Mt and Mt ';

在步骤S309中,确定目标转换矩阵MRGBIn step S309, the target conversion matrix MRGB is determined.

如此,根据屏幕的目标色温和黑体辐射轨迹曲线得到屏幕的目标白点坐标;根据屏幕工作白点坐标、色适应矩阵MA和确定屏幕的目标白点坐标,得到颜色转换矩阵M;根据屏幕的工作颜色空间确定XYZ域RGB互转换矩阵Mt和Mt’;根据颜色转换矩阵M、Mt和Mt’确定目标转换矩阵MRGBIn this way, the target white point coordinates of the screen are obtained according to the target color temperature of the screen and the black body radiation locus curve; according to the screen working white point coordinates, the color adaptation matrix MA and the target white point coordinates of the screen, the color conversion matrix M is obtained; The working color space determines the XYZ domain RGB mutual conversion matrices Mt and Mt '; the target conversion matrix MRGB is determined according to the color conversion matrices M, Mt and Mt '.

应理解,图3所示的流程仅仅是示意性的,本申请对此不做限定。It should be understood that the process shown in FIG. 3 is only schematic, and is not limited in this application.

实施例四Embodiment 4

图4是根据一示例性实施例示出的一种屏幕显示装置的框图。参照图4,该装置包括检测模块10、第一确定模块20、第二确定模块30和显示控制模块40。Fig. 4 is a block diagram of a screen display device according to an exemplary embodiment. 4 , the apparatus includes adetection module 10 , afirst determination module 20 , asecond determination module 30 and adisplay control module 40 .

所述检测模块10,被配置为获取屏幕的环境光色温;Thedetection module 10 is configured to obtain the ambient light color temperature of the screen;

所述第一确定模块20,被配置为根据所述环境光色温确定所述屏幕的目标色温;The first determiningmodule 20 is configured to determine the target color temperature of the screen according to the ambient light color temperature;

所述第二确定模块30,被配置为根据所述目标色温确定待显示图像中每个像素点的目标RGB值;Thesecond determination module 30 is configured to determine the target RGB value of each pixel in the image to be displayed according to the target color temperature;

所述显示控制模块40,被配置为按照每个像素点对应的目标RGB值,显示所述待显示图像。Thedisplay control module 40 is configured to display the to-be-displayed image according to the target RGB value corresponding to each pixel point.

上述方案中,所述第一确定模块20,被配置为:In the above solution, thefirst determination module 20 is configured as:

获取黑体辐射轨迹曲线;Obtain the black body radiation trajectory curve;

基于所述黑体辐射轨迹曲线和所述环境光色温,确定所述屏幕的目标色温。A target color temperature of the screen is determined based on the black body radiation locus curve and the ambient light color temperature.

上述方案中,所述第一确定模块20,被配置为:In the above solution, thefirst determination module 20 is configured as:

根据所述目标色温确定目标转换矩阵;Determine a target conversion matrix according to the target color temperature;

根据所述目标转换矩阵和待显示图像中每个像素点的原始RGB值,确定所述每个像素点对应的目标RGB值。According to the target conversion matrix and the original RGB value of each pixel in the to-be-displayed image, the target RGB value corresponding to each pixel is determined.

上述方案中,所述第一确定模块20,被配置为:In the above solution, thefirst determination module 20 is configured as:

基于色适应矩阵确定颜色转换矩阵,其中,所述色适应矩阵包括第一类元素、第二类元素及第三类元素中至少之一,其中,所述第一类元素表征R在G或B为主色系下的分量,所述第二类元素表征G在R或B为主色系下的分量,所述第三类元素表征B在G或R为主色系下的分量;A color conversion matrix is determined based on a color adaptation matrix, wherein the color adaptation matrix includes at least one of a first-type element, a second-type element, and a third-type element, wherein the first-type element represents that R is in G or B The component under the main color system, the second type of element represents the component of G in the R or B main color system, and the third type of element represents the component of B in the G or R main color system;

利用屏幕工作的颜色空间确定从RGB到CIE XYZ色彩空间转换的第一转换矩阵,以及从CIE XYZ到RGB色彩空间转换的第二转换矩阵;Determine a first conversion matrix for conversion from RGB to CIE XYZ color space, and a second conversion matrix for conversion from CIE XYZ to RGB color space using the color space of the screen work;

根据所述颜色转换矩阵、所述第一转换矩阵和所述第二转换矩阵,确定目标转换矩阵。A target conversion matrix is determined from the color conversion matrix, the first conversion matrix and the second conversion matrix.

上述方案中,所述第一确定模块20,被配置为:In the above solution, thefirst determination module 20 is configured as:

根据目标色温确定目标白点坐标;Determine the target white point coordinates according to the target color temperature;

确定屏幕的当前白点坐标;Determine the current white point coordinates of the screen;

根据所述目标白点坐标、所述当前白点坐标和所述色适应矩阵,确定屏幕当前所有颜色的颜色转换矩阵。According to the target white point coordinates, the current white point coordinates and the color adaptation matrix, the color conversion matrices of all the current colors of the screen are determined.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

实际应用中,上述检测模块10、第一确定模块20、第二确定模块30和显示控制模块40的具体结构均可由该屏幕显示装置或该屏幕显示装置所属电子设备中的中央处理器(CPU,Central Processing Unit)、微处理器(MCU,Micro Controller Unit)、数字信号处理器(DSP,Digital Signal Processing)或可编程逻辑器件(PLC,Programmable LogicController)等实现。In practical applications, the specific structures of the above-mentioneddetection module 10, thefirst determination module 20, thesecond determination module 30 and thedisplay control module 40 can all be determined by the central processing unit (CPU, CPU, etc.) of the screen display device or the electronic equipment to which the screen display device belongs. Central Processing Unit), microprocessor (MCU, Micro Controller Unit), digital signal processor (DSP, Digital Signal Processing) or programmable logic device (PLC, Programmable Logic Controller) etc.

本实施例所述的屏幕显示装置可设置于具有显示屏的电子设备中。The screen display device described in this embodiment can be set in an electronic device having a display screen.

当然,所述屏幕显示装置还可以作为一个独立于设备而存在。Of course, the screen display device can also exist as an independent device.

本领域技术人员应当理解,本公开实施例的屏幕显示装置中各处理模块的功能,可参照前述屏幕显示方法的相关描述而理解,本公开实施例的屏幕显示装置中各处理模块,可通过实现本公开实施例所述的功能的模拟电路而实现,也可以通过执行本公开实施例所述的功能的软件在电子设备上的运行而实现。Those skilled in the art should understand that the functions of each processing module in the screen display device of the embodiment of the present disclosure can be understood by referring to the relevant description of the aforementioned screen display method, and each processing module in the screen display device of the embodiment of the present disclosure can be realized by The functions described in the embodiments of the present disclosure are implemented by an analog circuit, and may also be implemented by running software that executes the functions described in the embodiments of the present disclosure on an electronic device.

本公开实施例所述的屏幕显示装置,能够使屏幕显示色温随着环境色温的变化而变化,能解决屏幕显示颜色失真的问题。The screen display device according to the embodiment of the present disclosure can make the screen display color temperature change with the change of the ambient color temperature, and can solve the problem of screen display color distortion.

本公开实施例还记载了一种屏幕显示装置,所述装置包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现前述任意一个技术方案提供的屏幕显示方法。The embodiments of the present disclosure further describe a screen display device, the device includes: a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implements any of the foregoing when executing the program. A screen display method provided by a technical solution.

作为一种实施方式,所述处理器执行所述程序时实现:As an implementation manner, when the processor executes the program, it implements:

获取屏幕的环境光色温;Get the ambient light color temperature of the screen;

根据所述环境光色温确定所述屏幕的目标色温;Determine the target color temperature of the screen according to the ambient light color temperature;

根据所述目标色温确定待显示图像中每个像素点的目标RGB值;Determine the target RGB value of each pixel in the image to be displayed according to the target color temperature;

按照每个像素点对应的目标RGB值,显示所述待显示图像。The to-be-displayed image is displayed according to the target RGB value corresponding to each pixel point.

作为一种实施方式,所述处理器执行所述程序时实现:As an implementation manner, when the processor executes the program, it implements:

获取黑体辐射轨迹曲线;Obtain the black body radiation trajectory curve;

基于所述黑体辐射轨迹曲线和所述环境光色温,确定所述屏幕的目标色温。A target color temperature of the screen is determined based on the black body radiation locus curve and the ambient light color temperature.

作为一种实施方式,所述处理器执行所述程序时实现:As an implementation manner, when the processor executes the program, it implements:

根据所述目标色温确定目标转换矩阵;Determine a target conversion matrix according to the target color temperature;

根据所述目标转换矩阵和待显示图像中每个像素点的原始RGB值,确定所述每个像素点对应的目标RGB值。According to the target conversion matrix and the original RGB value of each pixel in the to-be-displayed image, the target RGB value corresponding to each pixel is determined.

作为一种实施方式,所述处理器执行所述程序时实现:As an implementation manner, when the processor executes the program, it implements:

基于色适应矩阵确定颜色转换矩阵;Determine the color conversion matrix based on the color adaptation matrix;

利用屏幕工作的颜色空间确定从RGB到CIE XYZ色彩空间转换的第一转换矩阵,以及从CIE XYZ到RGB色彩空间转换的第二转换矩阵;Determine a first conversion matrix for conversion from RGB to CIE XYZ color space, and a second conversion matrix for conversion from CIE XYZ to RGB color space using the color space of the screen work;

根据所述颜色转换矩阵、所述第一转换矩阵和所述第二转换矩阵,确定目标转换矩阵。A target conversion matrix is determined from the color conversion matrix, the first conversion matrix and the second conversion matrix.

作为一种实施方式,所述处理器执行所述程序时实现:As an implementation manner, when the processor executes the program, it implements:

根据目标色温确定目标白点坐标;Determine the target white point coordinates according to the target color temperature;

确定屏幕的当前白点坐标;Determine the current white point coordinates of the screen;

根据所述目标白点坐标、所述当前白点坐标和所述色适应矩阵,确定屏幕当前所有颜色的颜色转换矩阵。According to the target white point coordinates, the current white point coordinates and the color adaptation matrix, the color conversion matrices of all the current colors of the screen are determined.

本申请实施例提供的屏幕显示装置,能够使屏幕显示色温随着环境色温的变化而变化,能解决屏幕显示颜色失真的问题。The screen display device provided by the embodiment of the present application can make the screen display color temperature change with the change of the ambient color temperature, and can solve the problem of screen display color distortion.

本申请实施例还记载了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述各个实施例所述的屏幕显示方法。也就是说,所述计算机可执行指令被处理器执行之后,能够实现前述任意一个技术方案提供的屏幕显示方法。The embodiments of the present application further describe a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the screen display methods described in the foregoing embodiments. That is, after the computer-executable instructions are executed by the processor, the screen display method provided by any one of the foregoing technical solutions can be implemented.

本领域技术人员应当理解,本实施例的计算机存储介质中各程序的功能,可参照前述各实施例所述的屏幕显示方法的相关描述而理解。Those skilled in the art should understand that the functions of each program in the computer storage medium of this embodiment can be understood by referring to the relevant descriptions of the screen display methods described in the foregoing embodiments.

实施例五Embodiment 5

图5是根据一示例性实施例示出的一种实现屏幕显示处理的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 5 is a block diagram of anapparatus 800 for implementing screen display processing according to an exemplary embodiment. For example,apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图5,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O,Input/Output)的接口812,传感器组件814,以及通信组件816。5, theapparatus 800 may include one or more of the following components: aprocessing component 802, amemory 804, apower component 806, amultimedia component 808, anaudio component 810, an input/output (I/O, Input/Output)interface 812,Sensor assembly 814 , andcommunication assembly 816 .

处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。Theprocessing component 802 generally controls the overall operation of thedevice 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. Theprocessing component 802 can include one ormore processors 820 to execute instructions to perform all or some of the steps of the methods described above. Additionally,processing component 802 may include one or more modules that facilitate interaction betweenprocessing component 802 and other components. For example,processing component 802 may include a multimedia module to facilitate interaction betweenmultimedia component 808 andprocessing component 802.

存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(Static Random-Access Memory,SRAM),电可擦除可编程只读存储器(Electrically-Erasable Programmable Read Only Memory,EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM),可编程只读存储器(Programmable read-only memory,PROM),只读存储器(Read Only Memory,ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 804 is configured to store various types of data to support operations atdevice 800 . Examples of such data include instructions for any application or method operating ondevice 800, contact data, phonebook data, messages, pictures, videos, and the like. Thememory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable) -Erasable Programmable Read Only Memory, EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (Read Only Memory) , ROM), magnetic memory, flash memory, magnetic disk or optical disk.

电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。Power component 806 provides power to various components ofdevice 800 .Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power todevice 800 .

多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(Liquid Crystal Display,LCD)和触摸面板(TouchPanel,TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 808 includes a screen that provides an output interface between thedevice 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a touch panel (TouchPanel, TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, themultimedia component 808 includes a front-facing camera and/or a rear-facing camera. When theapparatus 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(microphone,简称MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。Audio component 810 is configured to output and/or input audio signals. For example, theaudio component 810 includes a microphone (MIC for short), which is configured to receive external audio signals when thedevice 800 is in an operating mode, such as a calling mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored inmemory 804 or transmitted viacommunication component 816 . In some embodiments,audio component 810 also includes a speaker for outputting audio signals.

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between theprocessing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,CMOS)或电荷耦合元件(Charge-coupledDevice,CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects ofdevice 800 . For example, thesensor assembly 814 can detect the open/closed state of thedevice 800, the relative positioning of components, such as the display and keypad of thedevice 800, and thesensor assembly 814 can also detect a change in the position of thedevice 800 or a component of thedevice 800 , the presence or absence of user contact with thedevice 800 , the orientation or acceleration/deceleration of thedevice 800 and the temperature change of thedevice 800 .Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.Sensor assembly 814 may also include a light sensor, such as a Complementary Metal Oxide Semiconductor (CMOS) or Charge-coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, thesensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(Near FieldCommunication,NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RadioFrequency Identification,RFID)技术,红外数据协会(Infrared Data Association,IrDA)技术,超宽带(Ultra Wide Band,UWB)技术,蓝牙(Blue Tooth,BT)技术和其他技术来实现。Communication component 816 is configured to facilitate wired or wireless communication betweenapparatus 800 and other devices.Device 800 may access wireless networks based on communication standards, such as Wi-Fi, 2G or 3G, or a combination thereof. In one exemplary embodiment, thecommunication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 816 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (Blue Tooth, BT) technology and other technology to achieve.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ApplicationSpecific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理设备(Digital Signal Processing Device,DSPD)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程门阵列(Field Programmable GateArray,FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述应用于电子设备侧的控制处理方法。In an exemplary embodiment, theapparatus 800 may be implemented by one or more Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD) ), programmable logic device (Programmable Logic Device, PLD), Field Programmable Gate Array (Field Programmable Gate Array, FPGA), controller, microcontroller, microprocessor or other electronic component implementation, used to perform the above application in electronic The control processing method on the device side.

在示例性实施例中,还提供了一种包括可执行指令的非临时性的计算机存储介质,例如包括可执行指令的存储器804,上述可执行指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性的计算机存储介质可以是ROM、随机存取存储器(RandomAccess Memory,RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer storage medium including executable instructions is also provided, such as amemory 804 including executable instructions that can be executed by theprocessor 820 of theapparatus 800 to perform the above method . For example, the non-transitory computer storage medium may be ROM, random access memory (Random Access Memory, RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本公开实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。The technical solutions described in the embodiments of the present disclosure may be combined arbitrarily if there is no conflict.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or conventional techniques in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the present invention is limited only by the appended claims.

Claims (12)

1. A method for on-screen display, the method comprising:
acquiring the ambient light color temperature of a screen;
determining a target color temperature of the screen according to the ambient light color temperature;
determining a target red, green and blue RGB value of each pixel point in the image to be displayed according to the target color temperature;
and displaying the image to be displayed according to the target RGB value corresponding to each pixel point.
2. The screen display method of claim 1, wherein the determining a target color temperature for the screen from the ambient light color temperature comprises:
obtaining a black body radiation track curve;
and determining the target color temperature of the screen based on the black body radiation track curve and the ambient light color temperature.
3. The screen display method of claim 1, wherein the determining the target RGB value for each pixel point in the image to be displayed according to the target color temperature comprises:
determining a target conversion matrix according to the target color temperature;
and determining a target RGB value corresponding to each pixel point according to the target conversion matrix and the original RGB value of each pixel point in the image to be displayed.
4. The screen display method of claim 3, wherein the determining a target transformation matrix from the target color temperature comprises:
determining a color conversion matrix based on a color adaptation matrix, wherein the color adaptation matrix comprises at least one of a first type element, a second type element and a third type element, wherein the first type element represents a component of R under a dominant color system in G or B, the second type element represents a component of G under the dominant color system in R or B, and the third type element represents a component of B under the dominant color system in G or R;
determining a first conversion matrix for conversion from RGB to CIE XYZ color space and a second conversion matrix for conversion from CIE XYZ to RGB color space using the color space of the screen work;
and determining a target conversion matrix according to the color conversion matrix, the first conversion matrix and the second conversion matrix.
5. The screen display method of claim 4, wherein the determining a color conversion matrix based on a color adaptation matrix comprises:
determining a target white point coordinate according to the target color temperature;
determining the current white point coordinate of the screen;
and determining a color conversion matrix of all current colors of the screen according to the target white point coordinate, the current white point coordinate and the color adaptation matrix.
6. An on-screen display device, the device comprising:
a detection module configured to acquire an ambient light color temperature of a screen;
a first determination module configured to determine a target color temperature of the screen according to the ambient light color temperature;
the second determination module is configured to determine a target RGB value of each pixel point in the image to be displayed according to the target color temperature;
and the display control module is configured to display the image to be displayed according to the target RGB value corresponding to each pixel point.
7. The screen display device of claim 6, wherein the first determination module is configured to:
obtaining a black body radiation track curve;
and determining the target color temperature of the screen based on the black body radiation track curve and the ambient light color temperature.
8. The screen display device of claim 6, wherein the first determination module is configured to:
determining a target conversion matrix according to the target color temperature;
and determining a target RGB value corresponding to each pixel point according to the target conversion matrix and the original RGB value of each pixel point in the image to be displayed.
9. The screen display device of claim 8, wherein the first determination module is configured to:
determining a color conversion matrix based on a color adaptation matrix, wherein the color adaptation matrix comprises at least one of a first type element, a second type element and a third type element, wherein the first type element represents a component of R under a dominant color system in G or B, the second type element represents a component of G under the dominant color system in R or B, and the third type element represents a component of B under the dominant color system in G or R;
determining a first conversion matrix for converting from RGB to CIE XYZ color space and a second conversion matrix for converting from CIE XYZ to RGB color space by using the color space of the screen work;
and determining a target conversion matrix according to the color conversion matrix, the first conversion matrix and the second conversion matrix.
10. The screen display device of claim 9, wherein the first determination module is configured to:
determining a target white point coordinate according to the target color temperature;
determining the current white point coordinate of the screen;
and determining a color conversion matrix of all current colors of the screen according to the target white point coordinate, the current white point coordinate and the color adaptation matrix.
11. A screen display device comprising:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to: executing the executable instructions to implement the screen display method of any of claims 1 to 5.
12. A computer storage medium having stored therein executable instructions that, when executed by a processor, cause the processor to perform the screen display method of any one of claims 1 to 5.
CN201911229407.0A2019-12-042019-12-04 Screen display method and device, and computer storage mediumActiveCN112905141B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911229407.0ACN112905141B (en)2019-12-042019-12-04 Screen display method and device, and computer storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911229407.0ACN112905141B (en)2019-12-042019-12-04 Screen display method and device, and computer storage medium

Publications (2)

Publication NumberPublication Date
CN112905141Atrue CN112905141A (en)2021-06-04
CN112905141B CN112905141B (en)2024-09-03

Family

ID=76110731

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911229407.0AActiveCN112905141B (en)2019-12-042019-12-04 Screen display method and device, and computer storage medium

Country Status (1)

CountryLink
CN (1)CN112905141B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115002435A (en)*2022-05-262022-09-02展讯半导体(南京)有限公司 A kind of display parameter determination method and related equipment
CN115412711A (en)*2022-09-162022-11-29集创北方(珠海)科技有限公司 Color temperature adjustment method, color temperature adjustment device and display device
CN116453459A (en)*2022-01-072023-07-18北京小米移动软件有限公司Screen display method and device, readable storage medium and electronic equipment
WO2024221394A1 (en)*2023-04-282024-10-31京东方科技集团股份有限公司Display method applied to display apparatus, display apparatus, and electronic device
WO2025107719A1 (en)*2023-11-232025-05-30荣耀终端股份有限公司Image display method and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20050059522A (en)*2003-12-152005-06-21엘지.필립스 엘시디 주식회사Method and apparatus for correcting image displaying device
US20080303918A1 (en)*2007-06-112008-12-11Micron Technology, Inc.Color correcting for ambient light
CN101521001A (en)*2008-02-262009-09-02瑞昱半导体股份有限公司Color correction method and device for display device
CN104335581A (en)*2012-06-132015-02-04索尼公司Display apparatus, display controlling method and program
CN106128385A (en)*2016-08-252016-11-16北京小米移动软件有限公司Liquid crystal display control method and device
US20170263174A1 (en)*2016-03-092017-09-14Apple Inc.Electronic Device with Ambient-Adaptive Display
CN108376539A (en)*2018-04-092018-08-07青岛海信电器股份有限公司A kind of color compensation method and equipment of image
CN108877733A (en)*2018-06-042018-11-23Oppo广东移动通信有限公司Color temperature adjusting method and relevant apparatus
CN109729281A (en)*2019-01-042019-05-07Oppo广东移动通信有限公司 Image processing method, device, storage medium and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20050059522A (en)*2003-12-152005-06-21엘지.필립스 엘시디 주식회사Method and apparatus for correcting image displaying device
US20080303918A1 (en)*2007-06-112008-12-11Micron Technology, Inc.Color correcting for ambient light
CN101521001A (en)*2008-02-262009-09-02瑞昱半导体股份有限公司Color correction method and device for display device
CN104335581A (en)*2012-06-132015-02-04索尼公司Display apparatus, display controlling method and program
US20170263174A1 (en)*2016-03-092017-09-14Apple Inc.Electronic Device with Ambient-Adaptive Display
CN106128385A (en)*2016-08-252016-11-16北京小米移动软件有限公司Liquid crystal display control method and device
CN108376539A (en)*2018-04-092018-08-07青岛海信电器股份有限公司A kind of color compensation method and equipment of image
CN108877733A (en)*2018-06-042018-11-23Oppo广东移动通信有限公司Color temperature adjusting method and relevant apparatus
CN109729281A (en)*2019-01-042019-05-07Oppo广东移动通信有限公司 Image processing method, device, storage medium and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHARINOV, IO ET AL.: "The research of the automatic temperature condition control systems for LCD screens of avionics indication equipment", MECHANICAL SCIENCE AND TECHNOLOGY UPDATE (MSTU-2018), 17 September 2018 (2018-09-17)*
麻祥才;王晓红;朱明;张建青;: "基于LCD显示器光谱特性的图像颜色一致性研究", 发光学报, no. 05, 15 May 2017 (2017-05-15)*

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116453459A (en)*2022-01-072023-07-18北京小米移动软件有限公司Screen display method and device, readable storage medium and electronic equipment
CN115002435A (en)*2022-05-262022-09-02展讯半导体(南京)有限公司 A kind of display parameter determination method and related equipment
CN115412711A (en)*2022-09-162022-11-29集创北方(珠海)科技有限公司 Color temperature adjustment method, color temperature adjustment device and display device
CN115412711B (en)*2022-09-162024-12-17集创北方(珠海)科技有限公司Color temperature adjusting method, color temperature adjusting device and display device
WO2024221394A1 (en)*2023-04-282024-10-31京东方科技集团股份有限公司Display method applied to display apparatus, display apparatus, and electronic device
WO2025107719A1 (en)*2023-11-232025-05-30荣耀终端股份有限公司Image display method and electronic device

Also Published As

Publication numberPublication date
CN112905141B (en)2024-09-03

Similar Documents

PublicationPublication DateTitle
CN107038037B (en) Display mode switching method and device
JP6605503B2 (en) Color adjustment method and apparatus
EP3699903A2 (en)Screen color conversion method and apparatus, and storage medium
CN112905141B (en) Screen display method and device, and computer storage medium
CN105225647B (en)Luminance regulating method and device
US20170032725A1 (en)Method, device, and computer-readable medium for setting color gamut mode
CN111338743B (en) An interface processing method, device and storage medium
CN106251369B (en)Image processing method and device
CN111861942A (en)Noise reduction method and device, electronic equipment and storage medium
CN107391073B (en) Display modules and electronic equipment
CN114067740A (en)Screen calibration method and device, electronic equipment and storage medium
CN114067003A (en)Color gamut conversion method and device, electronic equipment and storage medium
CN111696479B (en)Color gamut adjusting method and device
CN110876014B (en)Image processing method and device, electronic device and storage medium
CN105677352B (en)Method and device for setting application icon color
CN116453459A (en)Screen display method and device, readable storage medium and electronic equipment
CN114067739B (en)Color gamut mapping method and device, electronic equipment and storage medium
CN115809105A (en)Display picture adjusting method, display picture adjusting device and storage medium
CN106775548B (en)page processing method and device
CN115546035A (en) Data processing method and device, electronic device and storage medium
CN117119260A (en)Video control processing method and device
CN112114450A (en)Display method, display device and storage medium
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN112188179B (en) Image thumbnail display method, image thumbnail display device, and storage medium
CN113254118B (en) Skin color display and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp