Movatterモバイル変換


[0]ホーム

URL:


CN117765840A - Color calibration file generation method, storage medium and electronic device - Google Patents

Color calibration file generation method, storage medium and electronic device
Download PDF

Info

Publication number
CN117765840A
CN117765840ACN202211135313.9ACN202211135313ACN117765840ACN 117765840 ACN117765840 ACN 117765840ACN 202211135313 ACN202211135313 ACN 202211135313ACN 117765840 ACN117765840 ACN 117765840A
Authority
CN
China
Prior art keywords
color
data
custom
target
measurement data
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.)
Pending
Application number
CN202211135313.9A
Other languages
Chinese (zh)
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.)
Guangzhou Shichuang Display Technology Co ltd
Original Assignee
Guangzhou Shichuang Display Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shichuang Display Technology Co ltdfiledCriticalGuangzhou Shichuang Display Technology Co ltd
Priority to CN202211135313.9ApriorityCriticalpatent/CN117765840A/en
Publication of CN117765840ApublicationCriticalpatent/CN117765840A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

Translated fromChinese

本公开涉及显示技术领域,公开了一种颜色校准文件的生成方法、存储介质及电子设备。方法包括:获取颜色自定义数据及预存的显示测量数据,根据显示测量数据及颜色自定义数据,生成颜色校准文件。如此,本实施例根据使用者自定义的显示颜色以生成颜色校准文件,从而方便使用者根据自身需要进行颜色管理,能够满足不同使用者对于颜色管理的不同需求。同时,采用本实施例,对一些特定的颜色需求,无需在生产时进行定制化校准,从而能够降低产品的管理成本。另外,由于本实施例是对预存的显示测量数据进行生成颜色校准文件,因此,本实施例能够满足在不具备颜色测量仪器的情况下也能够进行颜色校准操作,从而降低使用者校准颜色所需要的设备投入。

The present disclosure relates to the field of display technology, and discloses a method for generating a color calibration file, a storage medium, and an electronic device. The method includes: obtaining color customization data and pre-stored display measurement data, and generating a color calibration file based on the display measurement data and color customization data. In this way, this embodiment generates a color calibration file according to the user-defined display color, thereby facilitating the user to perform color management according to their own needs and meeting the different needs of different users for color management. At the same time, using this embodiment, there is no need to perform customized calibration during production for some specific color requirements, thereby reducing product management costs. In addition, since this embodiment generates a color calibration file based on pre-stored display measurement data, this embodiment can perform color calibration operations even without a color measurement instrument, thereby reducing the need for users to calibrate colors. investment in equipment.

Description

Translated fromChinese
颜色校准文件的生成方法、存储介质及电子设备Color calibration file generation method, storage medium and electronic equipment

技术领域Technical field

本公开涉及显示技术领域,具体涉及一种颜色校准文件的生成方法、存储介质及电子设备。The present disclosure relates to the field of display technology, and specifically to a method for generating a color calibration file, a storage medium, and an electronic device.

背景技术Background technique

目前,显示设备的颜色校准操作基本都是由上位机完成的,上位机在出厂预置的颜色查找表上,按照校准系数对颜色查找表的数据进行偏移计算以得到颜色校准表,显示设备根据颜色校准表进行画面显示,从而实现相应画面的显示。但是,此类作法是在出厂预置的颜色查找表上进行校准,比较僵硬,满足不了不同使用者对于颜色管理的不同需求。At present, the color calibration operation of the display device is basically completed by the host computer. The host computer performs offset calculation on the color lookup table preset at the factory according to the calibration coefficient to obtain the color calibration table. The display device The screen is displayed according to the color calibration table to achieve the display of the corresponding screen. However, this method is calibrated based on the factory-preset color lookup table, which is relatively rigid and cannot meet the different needs of different users for color management.

发明内容Contents of the invention

本公开实施例的一个目的旨在提供一种颜色校准文件的生成方法、存储介质及电子设备,旨在改善现有技术满足不了不同使用者对于颜色管理的不同需求的问题。One purpose of the embodiments of the present disclosure is to provide a method, storage medium and electronic device for generating a color calibration file, aiming to improve the problem that the existing technology cannot meet the different needs of different users for color management.

在第一方面,本公开实施例提供一种颜色校准文件的生成方法,包括:In a first aspect, an embodiment of the present disclosure provides a method for generating a color calibration file, including:

获取颜色自定义数据及预存的显示测量数据,所述显示测量数据用于表征当屏幕显示不同显示画面时,预先测量的画面测量数据与颜色测量数据之间的关系;Obtain color customization data and pre-stored display measurement data. The display measurement data is used to characterize the relationship between pre-measured picture measurement data and color measurement data when the screen displays different display pictures;

根据所述显示测量数据及颜色自定义数据,生成颜色校准文件。Generate a color calibration file based on the display measurement data and color customization data.

可选地,所述根据所述显示测量数据及颜色自定义数据,生成颜色校准文件包括:Optionally, generating a color calibration file based on the display measurement data and color customization data includes:

获取原始画面表,所述原始画面表包括多个原始画面数据;Obtain an original picture table, where the original picture table includes a plurality of original picture data;

根据所述原始画面表,扩充所述颜色自定义数据以得到自定义颜色扩充表,所述自定义颜色扩充表包括扩充后的多个自定义颜色组合,所述自定义颜色组合包括自定义画面数据及自定义颜色数据;According to the original picture table, the color custom data is expanded to obtain a custom color expansion table, the custom color expansion table includes a plurality of expanded custom color combinations, and the custom color combinations include a custom picture Data and custom color data;

根据所述自定义颜色扩充表及显示测量数据,生成颜色校准文件。Generate a color calibration file based on the customized color expansion table and display measurement data.

可选地,所述颜色自定义数据包括自定义颜色初始表,所述根据所述原始画面表,扩充所述颜色自定义数据以得到自定义颜色扩充表包括:Optionally, the color customization data includes a custom color initial table, and expanding the color customization data according to the original picture table to obtain a custom color expansion table includes:

根据所述原始画面表,依序获取每个所述原始画面数据;According to the original picture table, obtain each original picture data sequentially;

若所述自定义颜色初始表不包含所述原始画面数据,则根据插值算法,计算所述原始画面数据对应的目标颜色数据;If the custom color initial table does not contain the original picture data, calculate the target color data corresponding to the original picture data according to the interpolation algorithm;

将所述原始画面数据及所述目标颜色数据记录于所述自定义颜色扩充表中。The original picture data and the target color data are recorded in the custom color expansion table.

可选地,所述颜色校准文件包括颜色校准表,所述根据所述自定义颜色扩充表及显示测量数据,生成颜色校准文件包括:Optionally, the color calibration file includes a color calibration table, and generating the color calibration file based on the custom color expansion table and display measurement data includes:

依序获取每个目标自定义颜色数据,所述目标自定义颜色数据为所述自定义颜色扩充表中的一个自定义颜色数据;Obtain each target custom color data in sequence, where the target custom color data is a custom color data in the custom color expansion table;

根据所述显示测量数据,确定与目标自定义颜色数据匹配的目标系数结构组,所述目标系数结构组包括目标矩阵系数及目标颜色范围;According to the display measurement data, determine a target coefficient structure group that matches the target custom color data, where the target coefficient structure group includes a target matrix coefficient and a target color range;

根据所述目标矩阵系数及所述目标自定义颜色数据,计算目标画面数据;Calculate target picture data according to the target matrix coefficient and the target custom color data;

将所述目标画面数据替换与所述目标自定义颜色数据对应的自定义画面数据,得到颜色校准表。The target picture data is replaced with the custom picture data corresponding to the target custom color data to obtain a color calibration table.

可选地,所述显示测量数据包括多个系数结构组,不同所述系数结构组的矩阵系数及颜色范围可不同,其中,所述矩阵系数由预先测量且颜色值落在颜色范围内的画面数据与颜色数据共同确定。Optionally, the display measurement data includes a plurality of coefficient structure groups, and the matrix coefficients and color ranges of different coefficient structure groups may be different, wherein the matrix coefficients are determined by pre-measured images whose color values fall within the color range. The data is determined together with the color data.

可选地,所述显示测量数据包括多组颜色测量组合,每个所述颜色测量组合包括画面测量数据及与所述画面测量数据对应的颜色测量数据,所述根据所述显示测量数据,确定与目标自定义颜色数据匹配的目标系数结构组包括:Optionally, the display measurement data includes multiple sets of color measurement combinations, each of the color measurement combinations includes picture measurement data and color measurement data corresponding to the picture measurement data, and based on the display measurement data, it is determined Target coefficient structure groups that match target custom color data include:

确定与目标自定义颜色数据匹配的颜色范围作为目标颜色范围;Determine the color range that matches the target custom color data as the target color range;

在所述显示测量数据中,筛选落入所述目标颜色范围内的颜色测量数据及画面测量数据;From the display measurement data, filter the color measurement data and screen measurement data that fall within the target color range;

根据落入所述目标颜色范围内的颜色测量数据及画面测量数据,计算目标矩阵系数;Calculate the target matrix coefficient based on the color measurement data and picture measurement data falling within the target color range;

保存所述目标矩阵系数及目标颜色范围形成的系数结构组作为目标系数结构组。The coefficient structure group formed by the target matrix coefficient and the target color range is saved as a target coefficient structure group.

可选地,所述颜色自定义数据包括自定义画面系数,所述显示测量数据包括多组颜色测量组合,每个所述颜色测量组合包括画面测量数据及与所述画面测量数据对应的颜色测量数据。Optionally, the color customization data includes a custom picture coefficient, the display measurement data includes a plurality of color measurement combinations, each of the color measurement combinations includes picture measurement data and a color measurement corresponding to the picture measurement data. data.

可选地,所述根据所述显示测量数据及颜色自定义数据,生成颜色校准文件包括:Optionally, generating a color calibration file based on the display measurement data and color customization data includes:

根据所述画面测量数据及自定义画面系数,计算待校准颜色数据;Calculate the color data to be calibrated based on the picture measurement data and custom picture coefficients;

根据所述待校准颜色数据及与所述画面测量数据对应的颜色测量数据,计算颜色校准系数;Calculate a color calibration coefficient according to the color data to be calibrated and the color measurement data corresponding to the picture measurement data;

根据所述颜色校准系数,生成ICC配置文件,其中,所述ICC配置文件为颜色校准文件。According to the color calibration coefficient, an ICC configuration file is generated, where the ICC configuration file is a color calibration file.

在第二方面,本公开实施例提供一种存储介质,存储有计算机可执行指令,所述计算机可执行指令用于使电子设备执行上述的颜色校准文件的生成方法。In a second aspect, an embodiment of the present disclosure provides a storage medium that stores computer-executable instructions, and the computer-executable instructions are used to cause an electronic device to execute the above-mentioned method of generating a color calibration file.

在第三方面,本公开实施例提供一种电子设备,包括:In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

至少一个处理器;以及,at least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的颜色校准文件的生成方法。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned method for generating a color calibration file.

在本公开实施例提供的颜色校准文件的生成方法中,获取颜色自定义数据及预存的显示测量数据,显示测量数据用于表征当屏幕显示不同显示画面时预先测量的画面测量数据与颜色测量数据之间的关系,根据显示测量数据及颜色自定义数据,生成颜色校准文件,如此,本实施例根据使用者自定义的显示颜色以生成颜色校准文件,从而能够方便使用者根据自身需要进行颜色管理,同时也能够满足不同使用者对于颜色管理的不同需求。同时,采用本实施例,对一些特定的颜色需求,无需在生产时进行定制化校准,从而能够降低产品的管理成本。另外,由于本实施例是对预存的显示测量数据进行生成颜色校准文件,因此,本实施例能够满足在不具备颜色测量仪器的情况下也能够进行颜色校准操作,从而降低使用者校准颜色所需要的设备投入。In the color calibration file generation method provided by the embodiment of the present disclosure, color custom data and pre-stored display measurement data are obtained. The display measurement data is used to represent the pre-measured picture measurement data and color measurement data when the screen displays different display pictures. The relationship between the display measurement data and the color customization data is used to generate a color calibration file. In this way, this embodiment generates a color calibration file based on the user-defined display color, thereby facilitating the user to perform color management according to their own needs. , and can also meet the different needs of different users for color management. At the same time, using this embodiment, there is no need to perform customized calibration during production for some specific color requirements, thereby reducing product management costs. In addition, since this embodiment generates a color calibration file based on pre-stored display measurement data, this embodiment can perform color calibration operations even without a color measurement instrument, thereby reducing the need for users to calibrate colors. investment in equipment.

附图说明Description of the drawings

一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings. These illustrative illustrations do not constitute limitations to the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings are not intended to be limited to scale.

图1为本公开实施例提供的一种颜色校准文件的生成方法的流程示意图;Figure 1 is a schematic flowchart of a method for generating a color calibration file provided by an embodiment of the present disclosure;

图2为本公开实施例提供的一种颜色校准文件的生成装置的结构示意图;Figure 2 is a schematic structural diagram of a device for generating a color calibration file provided by an embodiment of the present disclosure;

图3为本公开实施例提供的一种电子设备的电路结构示意图。FIG. 3 is a schematic circuit structure diagram of an electronic device provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

为了使本公开的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本公开,并不用于限定本公开。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the present disclosure more clear, the present disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present disclosure and are not intended to limit the present disclosure. Based on the embodiments in this disclosure, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of this disclosure.

需要说明的是,如果不冲突,本公开实施例中的各个特征可以相互结合,均在本公开的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。再者,本公开所采用的“第一”、“第二”、“第三”等字样并不对数据和执行次序进行限定,仅是对功能和作用基本相同的相同项或相似项进行区分。It should be noted that, if there is no conflict, various features in the embodiments of the present disclosure can be combined with each other, and they are all within the protection scope of the present disclosure. In addition, although the functional modules are divided in the device schematic diagram and the logical sequence is shown in the flowchart, in some cases, the modules may be divided into different modules in the device, or the order shown in the flowchart may be executed. or describe the steps. Furthermore, the words "first", "second", "third" and other words used in this disclosure do not limit the data and execution order, but only distinguish the same or similar items with basically the same functions and effects.

本公开实施例提供一种颜色校准文件的生成方法。请参阅图1,颜色校准文件的生成方法包括:Embodiments of the present disclosure provide a method for generating a color calibration file. Referring to Figure 1, methods for generating color calibration files include:

S11:获取颜色自定义数据及预存的显示测量数据,显示测量数据用于表征当屏幕显示不同显示画面时,预先测量的画面测量数据与颜色测量数据之间的关系。S11: Obtain color custom data and pre-stored display measurement data. The display measurement data is used to characterize the relationship between the pre-measured picture measurement data and the color measurement data when the screen displays different display pictures.

本步骤中,画面测量数据为用于表征显示画面的RGB值,颜色测量数据为用于表征用户观看显示画面的颜色值,其中,颜色值可采用三刺激值XYZ、CIELAB、CIELUV等颜色表示法进行表示。通常,每个RGB值都对应一个颜色值,比如RGB(0,0,0)对应三刺激值XYZ(0.41,0.38,0.66)。In this step, the picture measurement data is the RGB value used to characterize the display screen, and the color measurement data is the color value used to characterize the display screen viewed by the user. Among them, the color value can use color representation methods such as tristimulus values XYZ, CIELAB, and CIELUV. to express. Usually, each RGB value corresponds to a color value, such as RGB(0,0,0) corresponding to the tristimulus value XYZ(0.41,0.38,0.66).

由于显示测量数据是预先测量的且能够表征画面测量数据与颜色测量数据之间的关系,因此,本实施例可采用多种数据形式以表示显示测量数据。Since the display measurement data is pre-measured and can represent the relationship between the picture measurement data and the color measurement data, this embodiment can use a variety of data forms to represent the display measurement data.

在一些实施例中,显示测量数据为测量表,测量表存储有多组颜色测量组合,每个颜色测量组合包括画面测量数据及与画面测量数据对应的颜色测量数据。请参阅表1,表1为本公开实施例提供的显示测量数据的示意表。如表1所示:In some embodiments, the measurement data is displayed as a measurement table, and the measurement table stores multiple sets of color measurement combinations. Each color measurement combination includes picture measurement data and color measurement data corresponding to the picture measurement data. Please refer to Table 1, which is a schematic table showing measurement data provided by an embodiment of the present disclosure. As shown in Table 1:

表1Table 1

如表1所示,显示测量数据包括多组颜色测量组合,每个颜色测量组合都包括画面测量数据和颜色测量数据,其中,画面测量数据选择RGB值进行表示,颜色测量数据选择三刺激值XYZ值进行表示。举例而言,颜色测量组合{R,G,B,X,Y,Z}={0,0,0,0.41,0.38,0.66},颜色测量组合{R,G,B,X,Y,Z}={32,0,0,3.17,1.60,0.67},颜色测量组合{R,G,B,X,Y,Z}={96,0,0,29.88,13.37,0.69}。As shown in Table 1, the display measurement data includes multiple sets of color measurement combinations. Each color measurement combination includes picture measurement data and color measurement data. Among them, the picture measurement data is represented by RGB values, and the color measurement data is represented by tristimulus values XYZ. value is represented. For example, the color measurement combination {R,G,B,X,Y,Z}={0,0,0,0.41,0.38,0.66}, the color measurement combination {R,G,B,X,Y,Z }={32,0,0,3.17,1.60,0.67}, color measurement combination {R,G,B,X,Y,Z}={96,0,0,29.88,13.37,0.69}.

在一些实施例中,显示测量数据为由预先测量的画面测量数据及颜色测量数据确定的函数关系。显示测量数据包括多个系数结构组,不同系数结构组的矩阵系数及颜色范围可不同,其中,矩阵系数由预先测量且颜色值落在颜色范围内的画面数据与颜色数据共同确定。In some embodiments, the display measurement data is a functional relationship determined by pre-measured picture measurement data and color measurement data. The display measurement data includes multiple coefficient structure groups. The matrix coefficients and color ranges of different coefficient structure groups may be different. The matrix coefficients are jointly determined by pre-measured picture data and color data whose color values fall within the color range.

为了方便后续准确可靠地计算出颜色值,本实施例将预先测量的画面测量数据及颜色测量数据进行分段,每段都有颜色范围进行确定。举例而言,如表1所示,本实施例可将表1分成4段,如下所示:In order to facilitate subsequent accurate and reliable calculation of color values, this embodiment divides the pre-measured picture measurement data and color measurement data into segments, and each segment has a color range for determination. For example, as shown in Table 1, this embodiment can divide Table 1 into 4 sections, as shown below:

第一段的颜色范围{X0,X1,Y0,Y1,Z0,Z1}={0,5,0,5,0,5},亦即:颜色测量数据的X值满足此X条件X0≤X≤X1,且Y值满足Y条件Y0≤Y≤Y1,且Z值满足Z条件Z0≤Z≤Z1时,则所述颜色测量数据可归类到第一段。同理可得:The color range of the first segment {X0, X1, Y0, Y1, Z0, Z1} = {0, 5, 0, 5, 0, 5}, that is: the ≤X1, and the Y value meets the Y condition Y0≤Y≤Y1, and the Z value satisfies the Z condition Z0≤Z≤Z1, then the color measurement data can be classified into the first paragraph. In the same way, we can get:

第二段的颜色范围{X2,X3,Y2,Y3,Z2,Z3}={5,25,5,25,5,25},亦即:颜色测量数据的X值满足此X条件X2≤X≤X3,且Y值满足Y条件Y2≤Y≤Y3,且Z值满足Z条件Z2≤Z≤Z3时,则所述颜色测量数据可归类到第二段。The color range of the second section {X2, X3, Y2, Y3, Z2, Z3} = {5, 25, 5, 25, 5, 25}, that is: the ≤X3, and the Y value meets the Y condition Y2≤Y≤Y3, and the Z value satisfies the Z condition Z2≤Z≤Z3, then the color measurement data can be classified into the second paragraph.

第三段的颜色范围{X4,X5,Y4,Y5,Z4,Z5}={25,150,25,150,25,150},亦即:颜色测量数据的X值满足此X条件X4≤X≤X5,且Y值满足Y条件Y4≤Y≤Y5,且Z值满足Z条件Z4≤Z≤Z5时,则所述颜色测量数据可归类到第三段。The color range of the third section {X4, X5, Y4, Y5, Z4, Z5} = {25, 150, 25, 150, 25, 150}, that is: the ≤X5, and the Y value meets the Y condition Y4≤Y≤Y5, and the Z value satisfies the Z condition Z4≤Z≤Z5, then the color measurement data can be classified into the third paragraph.

第四段的颜色范围{X6,X7,Y6,Y7,Z6,Z7}={150,600,150,600,150,600},亦即:颜色测量数据的X值满足此X条件X6≤X≤X7,且Y值满足Y条件Y6≤Y≤Y7,且Z值满足Z条件Z6≤Z≤Z7时,则所述颜色测量数据可归类到第四段。The color range of the fourth section {X6, ≤

本实施例选择属于相同段的多组画面测量数据及颜色测量数据,亦即选择落在相同颜色范围的多组画面测量数据及颜色测量数据,并根据线性回归算法,将属于相同段的多组画面测量数据及颜色测量数据拟合生成矩阵系数,再将矩阵系数与颜色范围进行关联,从而得到系数结构组。其中,线性回归算法为最小二乘法等。This embodiment selects multiple sets of image measurement data and color measurement data belonging to the same segment, that is, selects multiple sets of image measurement data and color measurement data falling in the same color range, and according to the linear regression algorithm, multiple sets of image measurement data and color measurement data belonging to the same segment are selected. The screen measurement data and color measurement data are fitted to generate matrix coefficients, and then the matrix coefficients are associated with the color range to obtain a coefficient structure group. Among them, the linear regression algorithm is the least squares method and so on.

举例而言:假设颜色测量组合A11、颜色测量组合A12、颜色测量组合A13、颜色测量组合A14……颜色测量组合A19都落在第一段,亦即颜色测量组合A11至A19的X值满足X0≤X≤X1、Y值满足Y0≤Y≤Y1及Z值满足Z0≤Z≤Z1,因此,本实施例根据最小二乘法,按照公式一,将属于相同段的多组画面测量数据及颜色测量数据拟合生成矩阵系数。For example: Suppose color measurement combination A11, color measurement combination A12, color measurement combination A13, color measurement combination A14...color measurement combination A19 all fall in the first paragraph, that is, the X values of color measurement combinations A11 to A19 satisfy X0 ≤ Data fitting generates matrix coefficients.

最后,本实施例得到矩阵系数{b1,b2,b3,b4,b5,b6,b7,b8,b9},接着,本实施例再将矩阵系数与颜色范围进行关联,从而得到系数结构组{X0,X1,Y0,Y1,Z0,Z1,b1,b2,b3,b4,b5,b6,b7,b8,b9}。Finally, this embodiment obtains the matrix coefficients {b1, b2, b3, b4, b5, b6, b7, b8, b9}. Then, this embodiment associates the matrix coefficients with the color range, thereby obtaining the coefficient structure group {X0 ,X1,Y0,Y1,Z0,Z1,b1,b2,b3,b4,b5,b6,b7,b8,b9}.

再举例而言:假设颜色测量组合B11、颜色测量组合B12、颜色测量组合B13、颜色测量组合B14……颜色测量组合B19都落在第二段,本实施例得到矩阵系数{b11,b12,b13,b14,b15,b16,b17,b18,b19},接着,本实施例再将矩阵系数与颜色范围进行关联,从而得到系数结构组{X2,X3,Y2,Y3,Z2,Z3,b11,b12,b13,b14,b15,b16,b17,b18,b19}。For another example: assuming that color measurement combination B11, color measurement combination B12, color measurement combination B13, color measurement combination B14... color measurement combination B19 all fall in the second section, this embodiment obtains the matrix coefficients {b11, b12, b13 ,b14,b15,b16,b17,b18,b19}, then, this embodiment associates the matrix coefficients with the color range, thereby obtaining the coefficient structure group {X2,X3,Y2,Y3,Z2,Z3,b11,b12 ,b13,b14,b15,b16,b17,b18,b19}.

再举例而言:假设颜色测量组合C11、颜色测量组合C12、颜色测量组合C13、颜色测量组合C14……颜色测量组合C19都落在第三段,本实施例得到矩阵系数{b21,b22,b23,b24,b25,b26,b27,b28,b29},接着,本实施例再将矩阵系数与颜色范围进行关联,从而得到系数结构组{X4,X5,Y4,Y5,Z4,Z5,b21,b22,b23,b24,b25,b26,b27,b28,b29}。For another example: assuming that color measurement combination C11, color measurement combination C12, color measurement combination C13, color measurement combination C14... color measurement combination C19 all fall in the third section, this embodiment obtains matrix coefficients {b21, b22, b23 ,b24,b25,b26,b27,b28,b29}, then, this embodiment associates the matrix coefficients with the color range, thereby obtaining the coefficient structure group {X4,X5,Y4,Y5,Z4,Z5,b21,b22 ,b23,b24,b25,b26,b27,b28,b29}.

再举例而言:假设颜色测量组合D11、颜色测量组合D12、颜色测量组合D13、颜色测量组合D14……颜色测量组合D19都落在第四段,本实施例得到矩阵系数{b31,b32,b33,b34,b35,b36,b37,b38,b39},接着,本实施例再将矩阵系数与颜色范围进行关联,从而得到系数结构组{X6,X7,Y6,Y7,Z6,Z7,b31,b32,b33,b34,b35,b36,b37,b38,b39}。For another example: assuming that color measurement combination D11, color measurement combination D12, color measurement combination D13, color measurement combination D14...color measurement combination D19 all fall in the fourth segment, this embodiment obtains the matrix coefficients {b31, b32, b33 ,b34,b35,b36,b37,b38,b39}, then, this embodiment associates the matrix coefficients with the color range, thereby obtaining the coefficient structure group {X6,X7,Y6,Y7,Z6,Z7,b31,b32 ,b33,b34,b35,b36,b37,b38,b39}.

本步骤中,颜色自定义数据为使用者自定义的颜色数据,其中,颜色自定义数据也可采用多种数据形式以表示用户自定义的显示画面。In this step, the color customization data is user-defined color data. The color customization data can also be in a variety of data forms to represent a user-defined display screen.

在一些实施例中,颜色自定义数据包括自定义画面系数,自定义画面系数为用于约束电子设备产生自定义显示画面的系数,比如自定义画面系数为{a1,a2,a3,a4,a5,a6,a7,a8,a9}。In some embodiments, the color customization data includes custom picture coefficients. The custom picture coefficients are coefficients used to constrain the electronic device to generate a customized display picture. For example, the custom picture coefficients are {a1, a2, a3, a4, a5 ,a6,a7,a8,a9}.

在一些实施例中,颜色自定义数据包括自定义颜色初始表,自定义颜色初始表包括初始时多个自定义颜色组合,每个自定义颜色组合都包括自定义画面数据及自定义颜色数据,其中,自定义颜色数据为使用者在屏幕呈现与自定义画面数据对应的显示画面时进行测量的颜色数据。请参阅表2,表2为本公开实施例提供的自定义颜色初始表的第一种示意表。如表2所示:In some embodiments, the color customization data includes a custom color initial table, and the custom color initial table includes initially multiple custom color combinations, and each custom color combination includes custom picture data and custom color data, The custom color data is the color data measured by the user when the display screen corresponding to the custom screen data is presented on the screen. Please refer to Table 2. Table 2 is a first schematic table of a custom color initial table provided by an embodiment of the present disclosure. As shown in table 2:

表2Table 2

如表2所示,自定义颜色初始表包括初始时多个自定义颜色组合,每个自定义颜色组合都包括自定义画面数据及自定义颜色数据,其中,自定义画面数据选择RGB值进行表示,自定义颜色数据选择三刺激值XYZ值进行表示。As shown in Table 2, the initial table of custom colors includes multiple initial custom color combinations. Each custom color combination includes custom picture data and custom color data. The custom picture data is represented by RGB values. , select the tristimulus value XYZ value to represent the custom color data.

举例而言:自定义颜色组合{R,G,B,X,Y,Z}={0,0,0,0,0,0},自定义颜色组合{R,G,B,X,Y,Z}={53,53,53,14.60,15.36,16.85},自定义颜色组合{R,G,B,X,Y,Z}={117,117,117,83.15,87.44,95.30}。For example: Custom color combination {R,G,B,X,Y,Z}={0,0,0,0,0,0}, Custom color combination {R,G,B,X,Y ,Z}={53,53,53,14.60,15.36,16.85}, custom color combination {R,G,B,X,Y,Z}={117,117,117,83.15,87.44,95.30}.

S12:根据显示测量数据及颜色自定义数据,生成颜色校准文件。S12: Generate a color calibration file based on the display measurement data and color customization data.

本步骤中,颜色校准文件为用于校准生成相应显示画面的文件。In this step, the color calibration file is a file used for calibration to generate a corresponding display screen.

本实施例根据使用者自定义的显示颜色以生成颜色校准文件,从而能够方便使用者根据自身需要进行颜色管理,同时也能够满足不同使用者对于颜色管理的不同需求。同时,采用本实施例,对一些特定的颜色需求,无需在生产时进行定制化校准,从而能够降低产品的管理成本。另外,由于本实施例是对预存的显示测量数据进行生成颜色校准文件,因此,本实施例能够满足在不具备颜色测量仪器的情况下也能够进行颜色校准操作,从而降低使用者校准颜色所需要的设备投入。This embodiment generates a color calibration file based on user-defined display colors, thereby facilitating users to perform color management according to their own needs, and also meeting the different needs of different users for color management. At the same time, using this embodiment, there is no need to perform customized calibration during production for some specific color requirements, thereby reducing product management costs. In addition, since this embodiment generates a color calibration file based on pre-stored display measurement data, this embodiment can perform color calibration operations even without a color measurement instrument, thereby reducing the need for users to calibrate colors. investment in equipment.

在一些实施例中,根据显示测量数据及颜色自定义数据生成颜色校准文件包括以下步骤:In some embodiments, generating a color calibration file based on display measurement data and color customization data includes the following steps:

S121:获取原始画面表,原始画面表包括多个原始画面数据。S121: Obtain the original screen table, which includes multiple original screen data.

S122:根据原始画面表,扩充颜色自定义数据以得到自定义颜色扩充表,自定义颜色扩充表包括扩充后的多个自定义颜色组合,自定义颜色组合包括自定义画面数据及自定义颜色数据。S122: According to the original screen table, expand the color custom data to obtain a custom color expansion table. The custom color expansion table includes multiple expanded custom color combinations. The custom color combinations include custom screen data and custom color data. .

S123:根据自定义颜色扩充表及显示测量数据,生成颜色校准文件。S123: Generate a color calibration file based on the customized color expansion table and display measurement data.

在S121中,原始画面表为显示设备出厂时预先配置的画面表,通常,原始画面表都包括多个原始画面数据。请参阅表3,表3为本公开实施例提供的原始画面表。如表3所示:In S121, the original screen table is a screen table pre-configured when the display device leaves the factory. Usually, the original screen table includes multiple original screen data. Please refer to Table 3, which is an original screen table provided by an embodiment of the present disclosure. as shown in Table 3:

表3table 3

RRGGBBr10r10g10g10b10b10r11r11g11g11b11b11r12r12g12g12b12b12r13r13g13g13b13b13r14r14g14g14b14b14r15r15g15g15b15b15r16r16g16g16b16b16

如表3所示,原始画面表包括多个原始画面数据,其中,原始画面数据选择RGB值进行表示。通常,原始画面表在出厂时都不配置颜色值,比如不配置三刺激值XYZ。As shown in Table 3, the original picture table includes multiple original picture data, where the original picture data is represented by RGB values. Usually, the original picture table is not configured with color values when leaving the factory, for example, the tristimulus values XYZ are not configured.

在S122中,当颜色自定义数据为自定义颜色初始表,请参阅表4,表4为本公开实施例提供的自定义颜色初始表的第二种示意表。如表4所示:In S122, when the color custom data is a custom color initial table, please refer to Table 4. Table 4 is a second schematic table of the custom color initial table provided by the embodiment of the present disclosure. As shown in Table 4:

表4Table 4

本实施例根据表3,扩充表4以得到表5,亦即表5为自定义颜色扩充表,请参阅表5:In this embodiment, Table 4 is expanded to obtain Table 5 based on Table 3, that is, Table 5 is a custom color expansion table. Please refer to Table 5:

表5table 5

RRGGBBXXYYZZr20r20g20g20b20b20X20X20Y20Y20Z20Z20r10r10g10g10b10b10X10’X10’Y10’Y10’Z10’Z10’r30r30g30g30b30b30X30X30Y30Y30Z30Z30r11r11g11g11b11b11X11’X11’Y11’Y11’Z11’Z11’r40r40g40g40b40b40X40X40Y40Y40Z40Z40r12r12g12g12b12b12X12’X12’Y12’Y12’Z12’Z12’r50r50g50g50b50b50X50X50Y50Y50Z50Z50r13r13g13g13b13b13X13’X13’Y13’Y13’Z13’Z13’r60r60g60g60b60b60X60X60Y60Y60Z60Z60r14r14g14g14b14b14X14’X14’Y14’Y14’Z14’Z14’r70r70g70g70b70b70X70X70Y70Y70Z70Z70r15r15g15g15b15b15X15’X15’Y15’Y15’Z15’Z15’r16r16g16g16b16b16X16’X16’Y16’Y16’Z16’Z16’r80r80g80g80b80b80X80X80Y80Y80Z80Z80

如表5所述,自定义颜色扩充表包括扩充后的多个自定义颜色组合,其中,自定义颜色扩充表不仅覆盖了自定义颜色初始表中的初始时多个自定义颜色组合,还可新增了依据原始画面表所产生的自定义颜色组合,比如新增的自定义颜色组合如下所示:As described in Table 5, the custom color expansion table includes multiple expanded custom color combinations. The custom color expansion table not only covers the initial multiple custom color combinations in the custom color initial table, but also A new custom color combination generated based on the original screen table has been added. For example, the new custom color combination is as follows:

自定义颜色组合{r10,g10,b10,X10',Y10',Z10'};Custom color combination {r10,g10,b10,X10',Y10',Z10'};

自定义颜色组合{r11,g11,b11,X11',Y11',Z11'};Custom color combination {r11,g11,b11,X11',Y11',Z11'};

自定义颜色组合{r14,g14,b14,X14',Y14',Z14'};Custom color combination {r14,g14,b14,X14',Y14',Z14'};

自定义颜色组合{r15,g15,b15,X15',Y15',Z15'};Custom color combination {r15,g15,b15,X15',Y15',Z15'};

自定义颜色组合{r16,g16,b16,X16',Y16',Z16'}。Custom color combination {r16,g16,b16,X16',Y16',Z16'}.

在S123中,本实施例可根据表5的数据及显示测量数据,生成颜色校准文件。由于本实施例能够根据使用者自定义的颜色自定义数据,结合原始画面表,扩充和丰富了颜色自定义数据,由此得到的自定义颜色扩充表既可满足和反映出使用者的自定义颜色的需求,又可符合屏幕出厂时原始画面表所界定的颜色显示规则,以保证使用者既可自定义屏幕所显示的画面,又能够保证屏幕可靠准确地进行对应RGB配比颜色的画面显示。In S123, this embodiment can generate a color calibration file based on the data in Table 5 and the display measurement data. Since this embodiment can expand and enrich the color custom data according to the user-defined color custom data, combined with the original picture table, the resulting custom color expansion table can satisfy and reflect the user's customization The color requirements must also comply with the color display rules defined in the original picture table when the screen leaves the factory, ensuring that users can not only customize the picture displayed on the screen, but also ensure that the screen can reliably and accurately display pictures corresponding to RGB color ratios. .

在一些实施例中,颜色自定义数据包括自定义颜色初始表,根据原始画面表扩充颜色自定义数据以得到自定义颜色扩充表包括以下步骤:In some embodiments, the color customization data includes a custom color initial table, and expanding the color customization data according to the original picture table to obtain a custom color expansion table includes the following steps:

S1221:根据原始画面表,依序获取每个原始画面数据。S1221: Acquire each original picture data sequentially according to the original picture table.

S1222:若自定义颜色初始表不包含原始画面数据,则根据插值算法,计算原始画面数据对应的目标颜色数据,执行步骤S1223。S1222: If the custom color initial table does not contain the original picture data, calculate the target color data corresponding to the original picture data according to the interpolation algorithm, and execute step S1223.

S1223:将原始画面数据目标颜色数据记录于所述定义颜色扩充表中。S1223: Record the original picture data target color data in the defined color expansion table.

S1224:若自定义颜色初始表包含原始画面数据,则将原始画面数据及与原始画面数据对应的颜色数据记录在自定义颜色扩充表中。S1224: If the custom color initial table contains original screen data, record the original screen data and the color data corresponding to the original screen data in the custom color expansion table.

举例而言,请结合表3,本实施例先获取原始画面数据{r10,g10,b10}。本实施例判断原始画面数据{r10,g10,b10}是否存在于表4中,由表4可知,表4并不包含原始画面数据{r10,g10,b10},因此,本实施例根据插值算法,计算原始画面数据{r10,g10,b10}对应的目标颜色数据{X10',Y10',Z10'},并将原始画面数据{r10,g10,b10}及目标颜色数据{X10',Y10',Z10'}记录在自定义颜色扩充表,如表5所示。For example, please refer to Table 3. This embodiment first obtains the original picture data {r10, g10, b10}. This embodiment determines whether the original picture data {r10, g10, b10} exists in Table 4. It can be seen from Table 4 that Table 4 does not contain the original picture data {r10, g10, b10}. Therefore, this embodiment determines whether the original picture data {r10, g10, b10} exists in Table 4. , calculate the target color data {X10', Y10', Z10'} corresponding to the original picture data {r10, g10, b10}, and combine the original picture data {r10, g10, b10} and the target color data {X10', Y10' ,Z10'} is recorded in the custom color expansion table, as shown in Table 5.

接着,本实施例再获取原始画面数据{r11,g11,b11}。由于原始画面数据{r11,g11,b11}不存在于表4中,因此,本实施例根据插值算法,计算原始画面数据{r11,g11,b11}对应的目标颜色数据{X11',Y11',Z11'},并将原始画面数据{r11,g11,b11}及目标颜色数据{X11',Y11',Z11'}记录在自定义颜色扩充表中。Next, this embodiment obtains the original picture data {r11, g11, b11}. Since the original picture data {r11, g11, b11} does not exist in Table 4, this embodiment calculates the target color data {X11', Y11', corresponding to the original picture data {r11, g11, b11} according to the interpolation algorithm, Z11'}, and record the original screen data {r11, g11, b11} and the target color data {X11', Y11', Z11'} in the custom color expansion table.

再接着,本实施例再获取原始画面数据{r12,g12,b12}。由于原始画面数据{r12,g12,b12}存在于表4中,因此,本实施例将原始画面数据{r12,g12,b12}及目标颜色数据{X12',Y12',Z12'}记录在自定义颜色扩充表中。以此类推,在此不赘述。通过上述方式,本实施例能够按照原始画面表,在使用者的自定义颜色初始表的基础进行了扩充,从而提高了自定义显示各类RGB配比画面的丰富度。Then, this embodiment obtains the original picture data {r12, g12, b12}. Since the original picture data {r12, g12, b12} exists in Table 4, this embodiment records the original picture data {r12, g12, b12} and the target color data {X12', Y12', Z12'} in Table 4. Define colors in the extension table. By analogy, we will not go into details here. Through the above method, this embodiment can expand the user's customized color initial table according to the original picture table, thereby improving the richness of custom display of various RGB ratio pictures.

如表5所示,对于新增的自定义颜色组合,其会包括原始画面表的原始画面数据,其中,每个原始画面数据在自定义颜色扩充表中都有与之对应的目标颜色数据。举例而言,如前所述,对于自定义颜色组合{r10,g10,b10,X10',Y10',Z10'},{r10,g10,b10}是原始画面表的原始画面数据,{X10',Y10',Z10'}是自定义颜色扩充表中与{r10,g10,b10}对应的颜色数据,亦即{X10',Y10',Z10'}为目标颜色数据。As shown in Table 5, for the newly added custom color combination, it will include the original picture data of the original picture table, where each original picture data has corresponding target color data in the custom color expansion table. For example, as mentioned before, for the custom color combination {r10,g10,b10,X10',Y10',Z10'}, {r10,g10,b10} is the original picture data of the original picture table, {X10' ,Y10', Z10'} is the color data corresponding to {r10, g10, b10} in the custom color expansion table, that is, {X10', Y10', Z10'} is the target color data.

在一些实施例中,自定义颜色初始表包括初始时多个自定义颜色组合,根据插值算法计算原始画面数据对应的目标颜色数据包括以下步骤:In some embodiments, the custom color initial table includes multiple custom color combinations initially, and calculating the target color data corresponding to the original picture data according to the interpolation algorithm includes the following steps:

S13:确定与原始画面数据相邻的第一自定义画面数据及第二自定义画面数据。S13: Determine the first customized screen data and the second customized screen data adjacent to the original screen data.

S14:确定与第一自定义画面数据对应的第一自定义颜色数据,及与第二自定义画面数据对应的第二自定义颜色数据。S14: Determine the first custom color data corresponding to the first custom picture data and the second custom color data corresponding to the second custom picture data.

S15:根据插值算法、第一自定义颜色数据及第二自定义颜色数据,计算目标颜色数据。S15: Calculate the target color data according to the interpolation algorithm, the first custom color data and the second custom color data.

举例而言,请结合表3与表4,如前所述,原始画面数据{r10,g10,b10}并不存在表4,并且原始画面数据{r10,g10,b10}分别与自定义画面数据{r20,g20,b20}和自定义画面数据{r30,g30,b30}相邻,因此,自定义画面数据{r20,g20,b20}为第一自定义画面数据,自定义画面数据{X20,Y20,Z20}为第一自定义颜色数据。自定义画面数据{r30,g30,b30}为第二自定义画面数据,自定义画面数据{X30,Y30,Z30}为第二自定义颜色数据。本实施例根据插值算法,在第一自定义颜色数据{X20,Y20,Z20}和第二自定义颜色数据{X30,Y30,Z30}之间求取出目标颜色数据{X10',Y10',Z10'}。For example, please combine Table 3 and Table 4. As mentioned above, the original screen data {r10, g10, b10} does not exist in Table 4, and the original screen data {r10, g10, b10} is different from the custom screen data respectively. {r20, g20, b20} is adjacent to the custom screen data {r30, g30, b30}. Therefore, the custom screen data {r20, g20, b20} is the first custom screen data, and the custom screen data {X20, Y20, Z20} is the first custom color data. The custom screen data {r30, g30, b30} is the second custom screen data, and the custom screen data {X30, Y30, Z30} is the second custom color data. In this embodiment, according to the interpolation algorithm, the target color data {X10', Y10', Z10 is obtained between the first custom color data {X20, Y20, Z20} and the second custom color data {X30, Y30, Z30}. '}.

在一些实施例中,颜色校准文件包括颜色校准表,根据自定义颜色扩充表及显示测量数据生成颜色校准文件包括以下步骤:In some embodiments, the color calibration file includes a color calibration table, and generating the color calibration file according to the custom color expansion table and display measurement data includes the following steps:

S16:依序获取每个目标自定义颜色数据,目标自定义颜色数据为自定义颜色扩充表中的一个自定义颜色数据。S16: Obtain each target custom color data in sequence, and the target custom color data is a custom color data in the custom color expansion table.

S17:根据显示测量数据,确定与目标自定义颜色数据匹配的目标系数结构组,目标系数结构组包括目标矩阵系数及目标颜色范围。S17: According to the displayed measurement data, determine the target coefficient structure group that matches the target custom color data. The target coefficient structure group includes the target matrix coefficient and the target color range.

S18:根据目标矩阵系数及目标自定义颜色数据,计算目标画面数据。S18: Calculate the target screen data based on the target matrix coefficient and target custom color data.

S19:将目标画面数据替换与目标自定义颜色数据对应的自定义画面数据,得到颜色校准表。S19: Replace the target screen data with the custom screen data corresponding to the target custom color data to obtain a color calibration table.

在S16中,举例而言,请结合表5,首先,本实施例选择自定义颜色数据{X20,Y20,Z20}作为目标自定义颜色数据。在下一次中,本实施例再选择自定义颜色数据{X10',Y10',Z10'}作为目标自定义颜色数据。再在下一次中,本实施例再选择自定义颜色数据{X30,Y30,Z30}作为目标自定义颜色数据,以此类推,在此不赘述。In S16, for example, please refer to Table 5. First, in this embodiment, the custom color data {X20, Y20, Z20} is selected as the target custom color data. The next time, this embodiment selects the custom color data {X10', Y10', Z10'} as the target custom color data. In the next time, this embodiment selects the custom color data {X30, Y30, Z30} as the target custom color data, and so on, which will not be described again here.

在S17中,如前所述,本实施例可采用多种数据形式以表示显示测量数据。当显示测量数据为由预先测量的画面测量数据及颜色测量数据确定的函数关系时,显示测量数据包括多个系数结构组,不同系数结构组的矩阵系数及颜色范围可不同。根据显示测量数据确定与目标自定义颜色数据匹配的目标系数结构组包括以下步骤:In S17, as mentioned above, this embodiment can use a variety of data forms to represent and display the measurement data. When the display measurement data is a functional relationship determined by pre-measured screen measurement data and color measurement data, the display measurement data includes multiple coefficient structure groups, and the matrix coefficients and color ranges of different coefficient structure groups may be different. Determining the target coefficient structure group that matches the target custom color data based on the display measurement data includes the following steps:

S171:根据目标自定义颜色数据,确定目标颜色范围。S171: Determine the target color range based on the target custom color data.

S173:在多个系数结构组中包含目标颜色范围的系数结构组作为目标系数结构组,其中,目标系数结构组还包括与目标颜色范围对应的目标矩阵系数。S173: A coefficient structure group containing the target color range in multiple coefficient structure groups is used as the target coefficient structure group, where the target coefficient structure group also includes a target matrix coefficient corresponding to the target color range.

举例而言,请结合表5,对于目标自定义颜色数据{X20,Y20,Z20},由于X0≤X20≤X1,Y0≤Y20≤Y1,Z0≤Z20≤Z1,因此,第一段的颜色范围{X0,X1,Y0,Y1,Z0,Z1}为目标颜色范围。由于系数结构组{X0,X1,Y0,Y1,Z0,Z1,b1,b2,b3,b4,b5,b6,b7,b8,b9}包含目标颜色范围{X0,X1,Y0,Y1,Z0,Z1},因此,系数结构组{X0,X1,Y0,Y1,Z0,Z1,b1,b2,b3,b4,b5,b6,b7,b8,b9}作为目标系数结构组,其中,{b1,b2,b3,b4,b5,b6,b7,b8,b9}为目标矩阵系数。For example, please combine Table 5. For the target custom color data {X20, Y20, Z20}, since X0≤X20≤X1, Y0≤Y20≤Y1, Z0≤Z20≤Z1, therefore, the color range of the first paragraph {X0,X1,Y0,Y1,Z0,Z1} is the target color range. Since the coefficient structure group {X0, Z1}, therefore, the coefficient structure group {X0, b2,b3,b4,b5,b6,b7,b8,b9} are the target matrix coefficients.

同理可得,对于目标自定义颜色数据{X12,Y12,Z12},由于X6≤X12≤X7,Y6≤Y12≤Y6,Z6≤Z12≤Z7,第四段的颜色范围{X6,X7,Y6,Y7,Z6,Z7}为目标颜色范围。目标系数结构组为:{X6,X7,Y6,Y7,Z6,Z7,b31,b32,b33,b34,b35,b36,b37,b38,b39}。In the same way, for the target custom color data {X12, Y12, Z12}, since X6≤X12≤X7, Y6≤Y12≤Y6, Z6≤Z12≤Z7, the color range of the fourth segment is {X6, ,Y7,Z6,Z7} is the target color range. The target coefficient structure group is: {X6,X7,Y6,Y7,Z6,Z7,b31,b32,b33,b34,b35,b36,b37,b38,b39}.

在一些实施例中,当显示测量数据为测量表时,根据显示测量数据确定与目标自定义颜色数据匹配的目标系数结构组包括以下步骤:In some embodiments, when the display measurement data is a measurement table, determining a target coefficient structure group matching the target custom color data according to the display measurement data includes the following steps:

S172:确定与目标自定义颜色数据匹配的颜色范围作为目标颜色范围。S172: Determine the color range matching the target custom color data as the target color range.

S174:在显示测量数据中,筛选落入目标颜色范围内的颜色测量数据及画面测量数据。S174: In the display measurement data, filter the color measurement data and screen measurement data that fall within the target color range.

S176:根据落入目标颜色范围内的颜色测量数据及画面测量数据,计算目标矩阵系数。S176: Calculate the target matrix coefficient based on the color measurement data and screen measurement data falling within the target color range.

S178:保存目标矩阵系数及目标颜色范围形成的系数结构组作为目标系数结构组。S178: Save the coefficient structure group formed by the target matrix coefficient and the target color range as the target coefficient structure group.

举例而言,请结合表5,对于目标自定义颜色数据{X20,Y20,Z20},由于X0≤X20≤X1,Y0≤Y20≤Y1,Z0≤Z20≤Z1,因此,第一段的颜色范围{X0,X1,Y0,Y1,Z0,Z1}为目标颜色范围。For example, please combine Table 5. For the target custom color data {X20, Y20, Z20}, since X0≤X20≤X1, Y0≤Y20≤Y1, Z0≤Z20≤Z1, therefore, the color range of the first paragraph {X0,X1,Y0,Y1,Z0,Z1} is the target color range.

接着,本实施例在测量表中,搜索全部落入目标颜色范围{X0,X1,Y0,Y1,Z0,Z1}的颜色测量数据及画面测量数据,然后根据落入目标颜色范围{X0,X1,Y0,Y1,Z0,Z1}内的颜色测量数据及画面测量数据,计算目标矩阵系数。如前所述,本实施例根据最小二乘法,按照公式一,将落入目标颜色范围{X0,X1,Y0,Y1,Z0,Z1}内的多组画面测量数据及颜色测量数据拟合生成目标矩阵系数{b1,b2,b3,b4,b5,b6,b7,b8,b9}。Next, this embodiment searches the measurement table for all color measurement data and screen measurement data that fall into the target color range {X0, ,Y0,Y1,Z0,Z1} color measurement data and screen measurement data, calculate the target matrix coefficient. As mentioned above, this embodiment uses the least squares method and Formula 1 to fit and generate multiple sets of picture measurement data and color measurement data falling within the target color range {X0, X1, Y0, Y1, Z0, Z1}. Target matrix coefficients {b1, b2, b3, b4, b5, b6, b7, b8, b9}.

再次,本实施例将目标矩阵系数及目标颜色范围形成的系数结构组{X0,X1,Y0,Y1,Z0,Z1,b1,b2,b3,b4,b5,b6,b7,b8,b9}作为目标系数结构组。Again, this embodiment uses the coefficient structure group {X0, Target coefficient structure group.

总体而言,本实施例可以将显示测量数据配置为多个系数结构组,并且提前将多个系数结构组进行保存,待后续校准时,直接在多个系数结构组中搜索目标系数结构组。或者,本实施例也可以将显示测量数据配置为测量表,待后续校准时,根据测量表的画面测量数据和颜色测量数据便可生成目标系数结构组。Generally speaking, this embodiment can configure the display measurement data into multiple coefficient structure groups, and save the multiple coefficient structure groups in advance. During subsequent calibration, the target coefficient structure group can be directly searched among the multiple coefficient structure groups. Alternatively, in this embodiment, the displayed measurement data can also be configured as a measurement table. During subsequent calibration, the target coefficient structure group can be generated based on the screen measurement data and color measurement data of the measurement table.

在S18中,本实施例根据公式二计算目标画面数据,如下所示:In S18, this embodiment calculates the target screen data according to Formula 2, as shown below:

公式二的{X,Y,Z}为目标自定义颜色数据,{R',G',B'}为目标画面数据,{bi1,bi2,bi3,bi4,bi5,bi6,bi7,bi8,bi9}为目标矩阵系数。{X,Y,Z} in Formula 2 is the target custom color data, {R',G',B'} is the target screen data, {bi1,bi2,bi3,bi4,bi5,bi6,bi7,bi8,bi9 } is the target matrix coefficient.

举例而言,目标自定义颜色数据{X,Y,Z}为表5的{X20,Y20,Z20},目标矩阵系数{bi1,bi2,bi3,bi4,bi5,bi6,bi7,bi8,bi9}为{b1,b2,b3,b4,b5,b6,b7,b8,b9}。由公式二可知,得到目标画面数据{R',G',B'}等于{r20',r20',r20'},并将目标画面数据{r20',r20',r20'}替换目标自定义颜色数据{X20,Y20,Z20}对应的自定义画面数据{r20,g20,b20},以此类推,可更新表5以生成表6,表6为颜色校准表。For example, the target custom color data {X, Y, Z} is {X20, Y20, Z20} in Table 5, and the target matrix coefficient {bi1, bi2, bi3, bi4, bi5, bi6, bi7, bi8, bi9} is {b1,b2,b3,b4,b5,b6,b7,b8,b9}. It can be seen from formula 2 that the target screen data {R', G', B'} is equal to {r20', r20', r20'}, and the target screen data {r20', r20', r20'} is replaced with the target customization The color data {X20, Y20, Z20} corresponds to the custom screen data {r20, g20, b20}, and so on. Table 5 can be updated to generate Table 6, which is the color calibration table.

表6Table 6

RRGGBBXXYYZZr20'r20'g20'g20'b20'b20'X20X20Y20Y20Z20Z20r10'r10'g10'g10'b10'b10'X10’X10’Y10’Y10’Z10’Z10’r30'r30'g30'g30'b30'b30'X30X30Y30Y30Z30Z30r11'r11'g11'g11'b11'b11'X11’X11’Y11’Y11’Z11’Z11’r40'r40'g40'g40'b40'b40'X40X40Y40Y40Z40Z40r12'r12'g12'g12'b12'b12'X12’X12’Y12’Y12’Z12’Z12’r50'r50'g50'g50'b50'b50'X50X50Y50Y50Z50Z50r13'r13'g13'g13'b13'b13'X13’X13’Y13’Y13’Z13’Z13’r60'r60'g60'g60'b60'b60'X60X60Y60Y60Z60Z60r14'r14'g14'g14'b14”b14”X14’X14’Y14’Y14’Z14’Z14’r70'r70'g70'g70'b70'b70'X70X70Y70Y70Z70Z70r15'r15'g15'g15'b15'b15'X15’X15’Y15’Y15’Z15’Z15’r16'r16'g16'g16'b16'b16'X16’X16’Y16’Y16’Z16’Z16’r80'r80'g80'g80'b80'b80'X80X80Y80Y80Z80Z80

后续,本实施例可根据颜色校准表,控制屏幕显示画面。Subsequently, this embodiment can control the screen display according to the color calibration table.

与上述各个实施例不同点在于,在一些实施例中,颜色自定义数据包括自定义画面系数,显示测量数据包括多组颜色测量组合,每个颜色测量组合包括画面测量数据及与画面测量数据对应的颜色测量数据,根据所述显示测量数据及颜色自定义数据生成颜色校准文件包括以下步骤:The difference from the above embodiments is that in some embodiments, the color customization data includes customized picture coefficients, the display measurement data includes multiple sets of color measurement combinations, and each color measurement combination includes picture measurement data and corresponds to the picture measurement data. Based on the color measurement data, generating a color calibration file based on the display measurement data and color customization data includes the following steps:

S20:根据画面测量数据及自定义画面系数,计算待校准颜色数据。S20: Calculate the color data to be calibrated based on the screen measurement data and customized screen coefficients.

S21:根据待校准颜色数据及与画面测量数据对应的颜色测量数据,计算颜色校准系数。S21: Calculate the color calibration coefficient based on the color data to be calibrated and the color measurement data corresponding to the screen measurement data.

S22:根据颜色校准系数,生成ICC配置文件,其中,ICC配置文件为颜色校准文件。S22: Generate an ICC configuration file according to the color calibration coefficient, where the ICC configuration file is a color calibration file.

在S20中,本实施例根据公式三计算待校准颜色数据,如下所示:In S20, this embodiment calculates the color data to be calibrated according to Formula 3, as shown below:

其中,公式三的{R,G,B}为画面测量数据,自定义画面系数{a1,a2,a3,a4,a5,a6,a7,a8,a9}为使用者自定义的画面系数,{X',Y',Z'}为待校准颜色数据。Among them, {R, G, B} in formula 3 are the screen measurement data, and the custom screen coefficients {a1, a2, a3, a4, a5, a6, a7, a8, a9} are user-defined screen coefficients, { X', Y', Z'} are the color data to be calibrated.

举例而言,本实施例将表1中每个颜色测量组合的画面测量数据及自定义画面系数代入公式三,以计算待校准颜色数据。比如,当画面测量数据RGB为{0,0,0}时,利用公式三,可得到{X1',Y1',Z1'}。当画面测量数据RGB为{32,0,0}时,利用公式三,可得到{X2',Y2',Z2'}。For example, in this embodiment, the picture measurement data and custom picture coefficients of each color measurement combination in Table 1 are substituted into Formula 3 to calculate the color data to be calibrated. For example, when the screen measurement data RGB is {0,0,0}, using formula 3, {X1', Y1', Z1'} can be obtained. When the screen measurement data RGB is {32,0,0}, using formula 3, {X2', Y2', Z2'} can be obtained.

在S21中,本实施例根据公式四计算颜色校准系数,如下所示:In S21, this embodiment calculates the color calibration coefficient according to Formula 4, as shown below:

其中,{X,Y,Z}为与画面测量数据RGB对应的颜色测量数据,{c1,c2,c3,c4,c5,c6,c7,c8,c9}为待计算的颜色校准系数。Among them, {X, Y, Z} is the color measurement data corresponding to the screen measurement data RGB, and {c1, c2, c3, c4, c5, c6, c7, c8, c9} is the color calibration coefficient to be calculated.

如前所述,本实施例根据线性回归算法那,按照公式四,计算颜色校准系数{c1,c2,c3,c4,c5,c6,c7,c8,c9}。As mentioned above, this embodiment calculates the color calibration coefficients {c1, c2, c3, c4, c5, c6, c7, c8, c9} according to formula 4 based on the linear regression algorithm.

在S22中,本实施例根据颜色校准系数生成ICC配置文件,ICC配置文件可应用于颜色管理方面,以实现对屏幕的显示画面的校准。后续,屏幕或者其它电子设备根据ICC配置文件,可控制屏幕呈现对应画面。ICC配置文件是描述色彩输入、输出设备或者某种色彩空间特性的文件,其格式由国际色彩联盟(ICC)制定。In S22, this embodiment generates an ICC configuration file based on the color calibration coefficient. The ICC configuration file can be applied to color management to achieve calibration of the display screen. Subsequently, the screen or other electronic device can control the screen to display the corresponding picture according to the ICC profile. ICC profile is a file that describes color input and output devices or certain color space characteristics. Its format is formulated by the International Color Consortium (ICC).

需要说明的是,在上述各个实施方式中,上述各步骤之间并不必然存在一定的先后顺序,本领域普通技术人员,根据本公开实施方式的描述可以理解,不同实施方式中,上述各步骤可以有不同的执行顺序,亦即,可以并行执行,亦可以交换执行等等。It should be noted that in the above-mentioned embodiments, there is not necessarily a certain sequence between the above-mentioned steps. Those of ordinary skill in the art can understand from the description of the embodiments of the present disclosure that in different embodiments, the above-mentioned steps There can be different execution orders, that is, they can be executed in parallel, they can be exchanged, etc.

作为本公开实施方式的另一方面,本公开实施方式提供一种颜色校准文件的生成装置。其中,颜色校准文件的生成装置可以为软件模块,所述软件模块包括若干指令,其存储在存储器内,处理器可以访问该存储器,调用指令进行执行,以完成上述各个实施方式所阐述的颜色校准文件的生成方法。As another aspect of the embodiments of the present disclosure, the embodiments of the present disclosure provide a device for generating a color calibration file. Wherein, the device for generating the color calibration file can be a software module. The software module includes a number of instructions, which are stored in a memory. The processor can access the memory and call the instructions for execution to complete the color calibration described in each of the above embodiments. How to generate files.

在一些实施方式中,颜色校准文件的生成装置亦可以由硬件器件搭建成的,例如,颜色校准文件的生成装置可以由一个或两个以上的芯片搭建而成,各个芯片可以互相协调工作,以完成上述各个实施方式所阐述的颜色校准文件的生成方法。再例如,颜色校准文件的生成装置还可以由各类逻辑器件搭建而成,诸如由通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)、单片机、ARM(Acorn RISC Machine)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合而搭建成。In some implementations, the device for generating a color calibration file can also be built by a hardware device. For example, the device for generating a color calibration file can be built by one or more than two chips, and each chip can work in coordination with each other. The method for generating a color calibration file described in each of the above embodiments is completed. For another example, the device for generating a color calibration file can also be built from various types of logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), It is built by microcontroller, ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components or any combination of these components.

请参阅图2,颜色校准文件的生成装置200包括测量数据获取模块21及校准文件生成模块22。Referring to FIG. 2 , the device 200 for generating a color calibration file includes a measurement data acquisition module 21 and a calibration file generation module 22 .

测量数据获取模块21用于获取颜色自定义数据及预存的显示测量数据,显示测量数据用于表征当屏幕显示不同显示画面时,预先测量的画面测量数据与颜色测量数据之间的关系。校准文件生成模块22用于根据显示测量数据及颜色自定义数据,生成颜色校准文件。The measurement data acquisition module 21 is used to obtain color customization data and pre-stored display measurement data. The display measurement data is used to represent the relationship between pre-measured picture measurement data and color measurement data when the screen displays different display pictures. The calibration file generation module 22 is used to generate a color calibration file based on the display measurement data and color customization data.

在一些实施例中,校准文件生成模块22具体用于:获取原始画面表,原始画面表包括多个原始画面数据,根据原始画面表,扩充颜色自定义数据以得到自定义颜色扩充表,自定义颜色扩充表包括扩充后的多个自定义颜色组合,自定义颜色组合包括自定义画面数据及自定义颜色数据,根据自定义颜色扩充表及显示测量数据,生成颜色校准文件。In some embodiments, the calibration file generation module 22 is specifically configured to: obtain an original picture table, which includes a plurality of original picture data, and expand the color custom data according to the original picture table to obtain a custom color expansion table. The color expansion table includes multiple expanded custom color combinations. The custom color combinations include custom screen data and custom color data. A color calibration file is generated based on the custom color expansion table and display measurement data.

在一些实施例中,颜色自定义数据包括自定义颜色初始表,校准文件生成模块22还具体用于:根据原始画面表,依序获取每个原始画面数据,若自定义颜色初始表不包含原始画面数据,则根据插值算法,计算原始画面数据对应的目标颜色数据,将原始画面数据及目标颜色数据记录于自定义颜色扩充表中。In some embodiments, the color custom data includes a custom color initial table, and the calibration file generation module 22 is also specifically configured to: obtain each original picture data in sequence according to the original picture table. If the custom color initial table does not include the original For screen data, the target color data corresponding to the original screen data is calculated according to the interpolation algorithm, and the original screen data and target color data are recorded in the custom color expansion table.

在一些实施例中,颜色校准文件包括颜色校准表,校准文件生成模块22还具体用于:依序获取每个目标自定义颜色数据,目标自定义颜色数据为自定义颜色扩充表中的一个自定义颜色数据,根据显示测量数据,确定与目标自定义颜色数据匹配的目标系数结构组,目标系数结构组包括目标矩阵系数及目标颜色范围,根据目标矩阵系数及目标自定义颜色数据,计算目标画面数据,将目标画面数据替换与目标自定义颜色数据对应的自定义画面数据,得到颜色校准表。In some embodiments, the color calibration file includes a color calibration table, and the calibration file generation module 22 is also specifically configured to: sequentially obtain each target custom color data, where the target custom color data is a custom color in the custom color expansion table. Define the color data, and determine the target coefficient structure group that matches the target custom color data based on the display measurement data. The target coefficient structure group includes the target matrix coefficient and the target color range. Calculate the target screen based on the target matrix coefficient and the target custom color data. data, and replace the target screen data with the custom screen data corresponding to the target custom color data to obtain a color calibration table.

在一些实施例中,显示测量数据包括多个系数结构组,不同系数结构组的矩阵系数及颜色范围可不同,其中,矩阵系数由预先测量且颜色值落在颜色范围内的画面数据与颜色数据共同确定。In some embodiments, the display measurement data includes a plurality of coefficient structure groups, and the matrix coefficients and color ranges of different coefficient structure groups may be different, wherein the matrix coefficients are determined by pre-measured picture data and color data whose color values fall within the color range.

在一些实施例中,显示测量数据包括多组颜色测量组合,每个颜色测量组合包括画面测量数据及与画面测量数据对应的颜色测量数据,校准文件生成模块22还具体用于:确定与目标自定义颜色数据匹配的颜色范围作为目标颜色范围,在显示测量数据中,筛选落入目标颜色范围内的颜色测量数据及画面测量数据,根据落入目标颜色范围内的颜色测量数据及画面测量数据,计算目标矩阵系数,保存目标矩阵系数及目标颜色范围形成的系数结构组作为目标系数结构组。In some embodiments, the display measurement data includes multiple sets of color measurement combinations, and each color measurement combination includes picture measurement data and color measurement data corresponding to the picture measurement data. The calibration file generation module 22 is also specifically configured to: determine the accuracy of the target automatic measurement data. Define the color range that the color data matches as the target color range. In the display measurement data, filter the color measurement data and screen measurement data that fall within the target color range. Based on the color measurement data and screen measurement data that fall within the target color range, Calculate the target matrix coefficient, and save the coefficient structure group formed by the target matrix coefficient and the target color range as the target coefficient structure group.

在一些实施例中,颜色自定义数据包括自定义画面系数,显示测量数据包括多组颜色测量组合,每个颜色测量组合包括画面测量数据及与所述画面测量数据对应的颜色测量数据,校准文件生成模块22还具体用于:根据画面测量数据及自定义画面系数,计算待校准颜色数据,根据待校准颜色数据及与画面测量数据对应的颜色测量数据,计算颜色校准系数,根据颜色校准系数,生成ICC配置文件,其中,ICC配置文件为颜色校准文件。In some embodiments, the color customization data includes custom picture coefficients, the display measurement data includes multiple sets of color measurement combinations, each color measurement combination includes picture measurement data and color measurement data corresponding to the picture measurement data, and the calibration file The generation module 22 is also specifically configured to: calculate the color data to be calibrated based on the screen measurement data and the customized screen coefficient, calculate the color calibration coefficient based on the color data to be calibrated and the color measurement data corresponding to the screen measurement data, and calculate the color calibration coefficient based on the color calibration coefficient, Generate an ICC profile, where the ICC profile is a color calibration file.

需要说明的是,上述颜色校准文件的生成装置可执行本公开实施方式所提供的颜色校准文件的生成方法,具备执行方法相应的功能模块和有益效果。未在颜色校准文件的生成装置实施方式中详尽描述的技术细节,可参见本公开实施方式所提供的颜色校准文件的生成方法。It should be noted that the above-mentioned device for generating a color calibration file can execute the method for generating a color calibration file provided by embodiments of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method. For technical details that are not described in detail in the embodiment of the device for generating a color calibration file, please refer to the method for generating a color calibration file provided by the embodiment of the present disclosure.

请参阅图3,图3为本公开实施例提供的一种电子设备的电路结构示意图,其中,电子设备可以为任意合适类型的设备或电子产品,例如,电子设备包括屏幕、电脑或服务器等具有逻辑计算和分析功能的设备或电子产品。如图3所示,电子设备300包括一个或多个处理器31以及存储器32。其中,图3中以一个处理器31为例。Please refer to Figure 3. Figure 3 is a schematic circuit structure diagram of an electronic device according to an embodiment of the present disclosure. The electronic device can be any suitable type of device or electronic product. For example, the electronic device includes a screen, a computer or a server, etc. Equipment or electronic products with logical calculation and analysis functions. As shown in FIG. 3 , the electronic device 300 includes one or more processors 31 and a memory 32 . Among them, FIG. 3 takes a processor 31 as an example.

处理器31和存储器32可以通过总线或者其他方式连接,图3中以通过总线连接为例。The processor 31 and the memory 32 may be connected through a bus or other means. In FIG. 3 , the connection through a bus is taken as an example.

存储器32作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本公开实施例中的颜色校准文件的生成方法对应的程序指令/模块。处理器31通过运行存储在存储器32中的非易失性软件程序、指令以及模块,从而执行颜色校准文件的生成装置的各种功能应用以及数据处理,即实现上述方法实施例提供的颜色校准文件的生成方法以及上述装置实施例的各个模块或单元的功能。As a non-volatile computer-readable storage medium, the memory 32 can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the method for generating a color calibration file in the embodiment of the present disclosure. program instructions/modules. The processor 31 executes various functional applications and data processing of the color calibration file generating device by running non-volatile software programs, instructions and modules stored in the memory 32, that is, realizing the color calibration file provided by the above method embodiment. The generation method and the functions of each module or unit of the above device embodiment.

存储器32可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器32可选包括相对于处理器31远程设置的存储器,这些远程存储器可以通过网络连接至处理器31。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。Memory 32 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 32 optionally includes memory located remotely relative to the processor 31 , and these remote memories may be connected to the processor 31 through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.

所述程序指令/模块存储在所述存储器32中,当被所述一个或者多个处理器31执行时,执行上述任意方法实施例中的颜色校准文件的生成方法。The program instructions/modules are stored in the memory 32, and when executed by the one or more processors 31, the method for generating a color calibration file in any of the above method embodiments is executed.

本公开实施例还提供了一种存储介质,所述存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图3中的一个处理器31,可使得上述一个或多个处理器可执行上述任意方法实施例中的颜色校准文件的生成方法。Embodiments of the present disclosure also provide a storage medium that stores computer-executable instructions that are executed by one or more processors, such as a processor 31 in Figure 3, which can enable the above-mentioned One or more processors may execute the method for generating a color calibration file in any of the above method embodiments.

本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被电子设备执行时,使所述电子设备执行任一项所述的颜色校准文件的生成方法。Embodiments of the present disclosure also provide a computer program product. The computer program product includes a computer program stored on a non-volatile computer-readable storage medium. The computer program includes program instructions. When the program instructions are electronically When the device is executed, the electronic device is caused to execute any one of the methods for generating a color calibration file.

以上所描述的装置或设备实施例仅仅是示意性的,其中所述作为分离部件说明的单元模块可以是或者也可以不是物理上分开的,作为模块单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络模块单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device or equipment embodiments described above are only illustrative, in which the unit modules described as separate components may or may not be physically separated, and the components shown as modular units may or may not be physical units. , that is, it can be located in one place, or it can be distributed to multiple network module units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions can be embodied in the form of software products in essence or in part that contribute to related technologies. The computer software products can be stored in computer-readable storage media, such as ROM/RAM, disks. , optical disk, etc., including a number of instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;在本公开的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本公开的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, but not to limit them; under the idea of the present disclosure, the above embodiments or the technical features in different embodiments can also be combined. The steps may be performed in any order, and there are many other variations of different aspects of the disclosure as described above, which are not provided in detail for the sake of brevity; although the disclosure has been described in detail with reference to the foregoing embodiments, one of ordinary skill in the art Skilled persons should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent substitutions for some of the technical features; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the implementation of the present disclosure. Example scope of technical solutions.

Claims (10)

Translated fromChinese
1.一种颜色校准文件的生成方法,其特征在于,包括:1. A method for generating a color calibration file, characterized by comprising:获取颜色自定义数据及预存的显示测量数据,所述显示测量数据用于表征当屏幕显示不同显示画面时,预先测量的画面测量数据与颜色测量数据之间的关系;Obtain color customization data and pre-stored display measurement data. The display measurement data is used to characterize the relationship between pre-measured picture measurement data and color measurement data when the screen displays different display pictures;根据所述显示测量数据及颜色自定义数据,生成颜色校准文件。Generate a color calibration file based on the display measurement data and color customization data.2.根据权利要求1所述的方法,其特征在于,所述根据所述显示测量数据及颜色自定义数据,生成颜色校准文件包括:2. The method of claim 1, wherein generating a color calibration file based on the display measurement data and color customization data includes:获取原始画面表,所述原始画面表包括多个原始画面数据;Obtain an original picture table, where the original picture table includes a plurality of original picture data;根据所述原始画面表,扩充所述颜色自定义数据以得到自定义颜色扩充表,所述自定义颜色扩充表包括扩充后的多个自定义颜色组合,所述自定义颜色组合包括自定义画面数据及自定义颜色数据;According to the original picture table, the color custom data is expanded to obtain a custom color expansion table, the custom color expansion table includes a plurality of expanded custom color combinations, and the custom color combinations include a custom picture Data and custom color data;根据所述自定义颜色扩充表及显示测量数据,生成颜色校准文件。Generate a color calibration file based on the customized color expansion table and display measurement data.3.根据权利要求2所述的方法,其特征在于,所述颜色自定义数据包括自定义颜色初始表,所述根据所述原始画面表,扩充所述颜色自定义数据以得到自定义颜色扩充表包括:3. The method according to claim 2, wherein the color customization data includes a custom color initial table, and the color customization data is expanded according to the original picture table to obtain a custom color expansion. The table includes:根据所述原始画面表,依序获取每个所述原始画面数据;According to the original picture table, obtain each original picture data sequentially;若所述自定义颜色初始表不包含所述原始画面数据,则根据插值算法,计算所述原始画面数据对应的目标颜色数据;If the custom color initial table does not contain the original picture data, calculate the target color data corresponding to the original picture data according to the interpolation algorithm;将所述原始画面数据及所述目标颜色数据记录于所述自定义颜色扩充表中。The original picture data and the target color data are recorded in the custom color expansion table.4.根据权利要求2所述的方法,其特征在于,所述颜色校准文件包括颜色校准表,所述根据所述自定义颜色扩充表及显示测量数据,生成颜色校准文件包括:4. The method according to claim 2, wherein the color calibration file includes a color calibration table, and generating the color calibration file according to the customized color expansion table and display measurement data includes:依序获取每个目标自定义颜色数据,所述目标自定义颜色数据为所述自定义颜色扩充表中的一个自定义颜色数据;Obtain each target custom color data in sequence, where the target custom color data is a custom color data in the custom color expansion table;根据所述显示测量数据,确定与目标自定义颜色数据匹配的目标系数结构组,所述目标系数结构组包括目标矩阵系数及目标颜色范围;According to the display measurement data, determine a target coefficient structure group that matches the target custom color data, where the target coefficient structure group includes a target matrix coefficient and a target color range;根据所述目标矩阵系数及所述目标自定义颜色数据,计算目标画面数据;Calculate target picture data according to the target matrix coefficient and the target custom color data;将所述目标画面数据替换与所述目标自定义颜色数据对应的自定义画面数据,得到颜色校准表。The target picture data is replaced with the custom picture data corresponding to the target custom color data to obtain a color calibration table.5.根据权利要求4所述的方法,其特征在于,所述显示测量数据包括多个系数结构组,不同所述系数结构组的矩阵系数及颜色范围可不同,其中,所述矩阵系数由预先测量且颜色值落在颜色范围内的画面数据与颜色数据共同确定。5. The method according to claim 4, characterized in that the display measurement data includes a plurality of coefficient structure groups, and the matrix coefficients and color ranges of different coefficient structure groups may be different, wherein the matrix coefficients are determined in advance Screen data that is measured and whose color values fall within the color range is determined together with the color data.6.根据权利要求4所述的方法,其特征在于,所述显示测量数据包括多组颜色测量组合,每个所述颜色测量组合包括画面测量数据及与所述画面测量数据对应的颜色测量数据。6. The method according to claim 4, wherein the display measurement data includes a plurality of color measurement combinations, and each of the color measurement combinations includes picture measurement data and color measurement data corresponding to the picture measurement data. .7.根据权利要求6所述的方法,其特征在于,所述根据所述显示测量数据,确定与目标自定义颜色数据匹配的目标系数结构组包括:7. The method according to claim 6, characterized in that, according to the display measurement data, determining the target coefficient structure group matching the target custom color data includes:确定与目标自定义颜色数据匹配的颜色范围作为目标颜色范围;Determine the color range that matches the target custom color data as the target color range;在所述显示测量数据中,筛选落入所述目标颜色范围内的颜色测量数据及画面测量数据;From the display measurement data, filter the color measurement data and screen measurement data that fall within the target color range;根据落入所述目标颜色范围内的颜色测量数据及画面测量数据,计算目标矩阵系数;Calculate the target matrix coefficient based on the color measurement data and picture measurement data falling within the target color range;保存所述目标矩阵系数及目标颜色范围形成的系数结构组作为目标系数结构组。The coefficient structure group formed by the target matrix coefficient and the target color range is saved as a target coefficient structure group.8.根据权利要求1所述的方法,其特征在于,所述颜色自定义数据包括自定义画面系数,所述显示测量数据包括多组颜色测量组合,每个所述颜色测量组合包括画面测量数据及与所述画面测量数据对应的颜色测量数据,所述根据所述显示测量数据及颜色自定义数据,生成颜色校准文件包括:8. The method according to claim 1, wherein the color customization data includes a custom picture coefficient, the display measurement data includes a plurality of color measurement combinations, and each of the color measurement combinations includes picture measurement data. and color measurement data corresponding to the screen measurement data. Generating a color calibration file based on the display measurement data and color customization data includes:根据所述画面测量数据及自定义画面系数,计算待校准颜色数据;Calculate the color data to be calibrated based on the picture measurement data and custom picture coefficients;根据所述待校准颜色数据及与所述画面测量数据对应的颜色测量数据,计算颜色校准系数;Calculate a color calibration coefficient according to the color data to be calibrated and the color measurement data corresponding to the picture measurement data;根据所述颜色校准系数,生成ICC配置文件,其中,所述ICC配置文件为颜色校准文件。According to the color calibration coefficient, an ICC configuration file is generated, where the ICC configuration file is a color calibration file.9.一种存储介质,其特征在于,存储有计算机可执行指令,所述计算机可执行指令用于使电子设备执行如权利要求1至8任一项所述的颜色校准文件的生成方法。9. A storage medium, characterized in that computer-executable instructions are stored therein, and the computer-executable instructions are used to cause an electronic device to execute the method for generating a color calibration file according to any one of claims 1 to 8.10.一种电子设备,其特征在于,包括:10. An electronic device, characterized in that it includes:至少一个处理器;以及,at least one processor; and,与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至8任一项所述的颜色校准文件的生成方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the instructions of any one of claims 1 to 8 How to generate color calibration files.
CN202211135313.9A2022-09-192022-09-19Color calibration file generation method, storage medium and electronic devicePendingCN117765840A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211135313.9ACN117765840A (en)2022-09-192022-09-19Color calibration file generation method, storage medium and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211135313.9ACN117765840A (en)2022-09-192022-09-19Color calibration file generation method, storage medium and electronic device

Publications (1)

Publication NumberPublication Date
CN117765840Atrue CN117765840A (en)2024-03-26

Family

ID=90317059

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211135313.9APendingCN117765840A (en)2022-09-192022-09-19Color calibration file generation method, storage medium and electronic device

Country Status (1)

CountryLink
CN (1)CN117765840A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2001008221A (en)*1999-06-182001-01-12Nippon Telegr & Teleph Corp <Ntt> Color proofing method, color proofing device, and storage medium
CN101290755A (en)*2008-06-042008-10-22京东方科技集团股份有限公司 Display device and color data processing method thereof
US20110063633A1 (en)*2009-09-162011-03-17Ernst Larry MColor printer calibration for multiple mediums
CN113267928A (en)*2021-04-292021-08-17北京京东方显示技术有限公司Backlight module, display module, color correction method, system and equipment
CN114402379A (en)*2019-12-112022-04-26谷歌有限责任公司Color calibration of display modules using a reduced number of display characteristic measurements

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2001008221A (en)*1999-06-182001-01-12Nippon Telegr & Teleph Corp <Ntt> Color proofing method, color proofing device, and storage medium
CN101290755A (en)*2008-06-042008-10-22京东方科技集团股份有限公司 Display device and color data processing method thereof
US20110063633A1 (en)*2009-09-162011-03-17Ernst Larry MColor printer calibration for multiple mediums
CN114402379A (en)*2019-12-112022-04-26谷歌有限责任公司Color calibration of display modules using a reduced number of display characteristic measurements
CN113267928A (en)*2021-04-292021-08-17北京京东方显示技术有限公司Backlight module, display module, color correction method, system and equipment

Similar Documents

PublicationPublication DateTitle
CN106406872A (en)Method and apparatus for making differential upgrade package based on specific file
CN117765840A (en)Color calibration file generation method, storage medium and electronic device
CN112631649A (en)Intelligent contract management method, device, terminal equipment and medium
CN118657472B (en) Material procurement plan information adjustment method and device
CN114219736B (en) Image chromatic aberration correction method, device, electronic device and storage medium
CN113554746A (en)Decoration effect graph generation method and device, electronic equipment and storage medium
CN116450666B (en)PBOM updating method, device and storage medium
CN116033133B (en) Color correction method, storage medium and related equipment
CN117112090A (en)Business page theme generation method, device, computer equipment, medium and product
CN118711505A (en) LED display screen calibration method, device, electronic device and storage medium
CN109614064A (en)Picture display method, picture display device and terminal equipment
CN104504218A (en)CAD graphic processing method, device and CAD software package
CN116258597A (en)Document processing method, device, computer equipment and storage medium
CN114252698B (en) A spectrum processing method, system, electronic device and storage medium
CN114792348A (en) Method and device for generating digital assets, storage medium, and electronic device
CN107682471A (en)A kind of method and apparatus being adjusted to network address
CN114816310A (en) Display data processing method, device, electronic device and storage medium
CN118710420A (en) Premium processing method, device, equipment, storage medium and computer program product
CN118918809A (en)Optical parameter adjusting method of display panel, display module, device and medium
CN104217697B (en)Screen display method, apparatus and system
CN114967813B (en) Reference voltage calibration method, device and storage medium
CN116467332A (en) White balance adjustment method, device, computer equipment and storage medium
CN117331590B (en) Process design toolkit update method, device, computer equipment and storage medium
KR102107060B1 (en)Method, apparatus and system for processing image data
JP7547046B2 (en) Data conversion device, data conversion method, and program

Legal Events

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

[8]ページ先頭

©2009-2025 Movatter.jp