[go: up one dir, main page]

CN115294945A - Object display method and device, and color lookup table generation method and device - Google Patents

Object display method and device, and color lookup table generation method and device Download PDF

Info

Publication number
CN115294945A
CN115294945A CN202210753681.3A CN202210753681A CN115294945A CN 115294945 A CN115294945 A CN 115294945A CN 202210753681 A CN202210753681 A CN 202210753681A CN 115294945 A CN115294945 A CN 115294945A
Authority
CN
China
Prior art keywords
color
value
rgb
target
values
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
CN202210753681.3A
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.)
Beijing Youku Technology Co Ltd
Original Assignee
Beijing Youku 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 Beijing Youku Technology Co Ltd filed Critical Beijing Youku Technology Co Ltd
Priority to CN202210753681.3A priority Critical patent/CN115294945A/en
Publication of CN115294945A publication Critical patent/CN115294945A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

本申请实施例公开了对象展示、生成颜色查找表的方法及装置,所述方法包括:获取与当前终端设备关联的配置文件,其中包括颜色查找表LUT,所述LUT表用于保存多个点的第一RGB数值与第二RGB数值之间的对应关系,所述第二RGB数值在第二色域下所呈现出的色觉效果,与所述第一RGB数值在预置的第一色域下所呈现出的标准色觉效果之间的相似度满足目标条件;在需要对目标对象进行展示时,确定所述目标对象对应的原始RGB数值;确定所述当前终端设备所处的目标色彩模式,并利用该目标色彩模式对应的目标LUT表,将所述原始RGB数值映射为目标RGB数值后进行展示。通过本申请实施例,能够降低终端设备中的色彩模式调整对具体应用中的图像展示(包括视频播放等)造成的影响。

Figure 202210753681

The embodiment of the present application discloses a method and an apparatus for displaying objects and generating a color lookup table. The method includes: acquiring a configuration file associated with a current terminal device, including a color lookup table LUT, where the LUT table is used to store a plurality of points The corresponding relationship between the first RGB value and the second RGB value, the color perception effect presented by the second RGB value in the second color gamut, and the first RGB value in the preset first color gamut The similarity between the standard color vision effects presented below satisfies the target condition; when the target object needs to be displayed, determine the original RGB value corresponding to the target object; determine the target color mode where the current terminal device is located, And using the target LUT table corresponding to the target color mode, the original RGB value is mapped to the target RGB value for display. Through the embodiments of the present application, the impact of the color mode adjustment in the terminal device on the image display (including video playback, etc.) in specific applications can be reduced.

Figure 202210753681

Description

对象展示、生成颜色查找表的方法及装置Method and device for object display and generation of color lookup table

技术领域technical field

本申请涉及界面展示技术领域,特别是涉及生成对象展示、生成颜色查找表的方法及装置。The present application relates to the technical field of interface display, in particular to methods and devices for generating object display and color lookup tables.

背景技术Background technique

在一些手机等终端设备中,为了满足用户多种不同的个性化需求,可能会提供多种不同的色彩模式,例如,包括“标准模式”、“鲜艳模式”,等等。其中,不同的色彩模式对应着不同的色域,可以将同一展示对象表现为不同的鲜艳程度。这样,如果用户更喜欢鲜亮一些的色调,则可以选择“鲜艳模式”,如果喜欢柔和一些的色调,则可以选择“标准模式”,等等。In some terminal devices such as mobile phones, in order to meet various individual needs of users, various color modes may be provided, for example, including "standard mode", "vibrant mode", and so on. Among them, different color modes correspond to different color gamuts, and the same display object can be displayed in different degrees of vividness. That way, if the user prefers brighter tones, they can choose Vivid, if they prefer softer tones, they can choose Standard, and so on.

但是,用户在对终端设备的色彩模式进行调整时,通常只是希望在桌面等UI(用户界面)层面上的色调进行调整,而实际上,这种色彩模式的变化却会作用于终端设备中的方方面面,包括设备中安装的具体应用。例如,假设某终端设备中安装有视频相关的应用,在对终端设备的色彩模式进行调整之后,在通过该应用播放具体的视频时,也会使得播放出的视频的整体色调发生变化。例如,在调整为“鲜艳模式”之后,相对于标准模式而言,视频中人物脸部的颜色可能会变得偏红,以至于影响视频的播放效果。However, when the user adjusts the color mode of the terminal device, he usually only wants to adjust the color tone on the UI (user interface) level such as the desktop, but in fact, the change of this color mode will affect the color of the terminal device. Aspects, including specific applications installed in the device. For example, assuming that a video-related application is installed in a certain terminal device, after adjusting the color mode of the terminal device, when a specific video is played through the application, the overall tone of the played video will also change. For example, after adjusting to "Vivid Mode", the color of the face of the person in the video may become reddish compared to the standard mode, which affects the playback effect of the video.

因此,如何降低终端设备中的色彩模式调整对具体应用中的图像展示(包括视频播放等)造成的影响,成为需要本领域技术人员解决的技术问题。Therefore, how to reduce the impact of the color mode adjustment in the terminal device on image display (including video playback, etc.) in specific applications has become a technical problem that needs to be solved by those skilled in the art.

发明内容Contents of the invention

本申请提供了对象展示、生成颜色查找表的方法及装置,能够降低终端设备中的色彩模式调整对具体应用中的图像展示(包括视频播放等)造成的影响。The present application provides methods and devices for displaying objects and generating a color lookup table, which can reduce the impact of color mode adjustment in terminal equipment on image display (including video playback, etc.) in specific applications.

本申请提供了如下方案:This application provides the following solutions:

一种生成颜色查找表的方法,包括:A method of generating a color lookup table comprising:

获取目标颜色查找表LUT空间中的多个点分别对应的第一RGB数值;Obtain the first RGB values corresponding to multiple points in the target color lookup table LUT space;

以点为单位,分别将所述第一RGB数值提供给测试终端设备,以便在所述测试终端设备中基于第二色域展示所述第一RGB数值对应的图像,并通过色彩分析设备对所述测试终端设备呈现的色觉数值进行采集,以便确定所述第一RGB数值在第二色域下所呈现视觉的测试值;The first RGB value is provided to the test terminal device in units of points, so that the image corresponding to the first RGB value is displayed based on the second color gamut in the test terminal device, and the color analysis device is used to analyze the The color vision value presented by the test terminal device is collected, so as to determine the test value of the vision presented by the first RGB value in the second color gamut;

确定所述第一RGB数值在第一色域下所呈现的色觉数值,并根据该色觉数值确定目标值;Determine the color vision value presented by the first RGB value in the first color gamut, and determine the target value according to the color vision value;

以点为单位,根据所述测试值与目标值之间的偏差量,分别启动对RGB数值的多轮迭代调整,其中,在每一轮迭代中调整RGB数值后,对调整后的RGB数值在所述第二色域展示时呈现的色觉数值进行估算,并确定色觉数值的估算值与所述目标值之间的偏差情况,直到将RGB调整为第二RGB数值后,得到的色觉数值的估算值与所述目标值的偏差量小于目标阈值时,将所述第一RGB与所述第二RGB之间的对应关系保存在所述LUT表中。In units of points, according to the deviation between the test value and the target value, multiple rounds of iterative adjustments to the RGB values are respectively started, wherein, after the RGB values are adjusted in each round of iterations, the adjusted RGB values are adjusted at Estimate the color vision value presented when the second color gamut is displayed, and determine the deviation between the estimated value of the color vision value and the target value, until the RGB value is adjusted to the second RGB value, and the obtained color vision value is estimated When the deviation between the value and the target value is smaller than the target threshold, store the corresponding relationship between the first RGB and the second RGB in the LUT table.

一种对象展示方法,包括:A method for displaying an object, comprising:

获取与当前终端设备关联的配置文件,所述配置文件为多份,分别与所述终端设备中支持的多种色彩模式对应,其中包括颜色查找表LUT,所述LUT表用于保存多个点的第一RGB数值与第二RGB数值之间的对应关系,其中,所述第二RGB数值在第二色域下所呈现出的色觉效果,与所述第一RGB数值在预置的第一色域下所呈现出的标准色觉效果之间的相似度满足目标条件;Obtain a configuration file associated with the current terminal device, the configuration file is multiple, corresponding to multiple color modes supported in the terminal device, including a color lookup table LUT, the LUT table is used to save multiple points The corresponding relationship between the first RGB value and the second RGB value, wherein, the color vision effect presented by the second RGB value in the second color gamut is the same as that of the first RGB value in the preset first The similarity between the standard color vision effects presented in the color gamut meets the target condition;

在需要对目标对象进行展示时,确定所述目标对象对应的原始RGB数值;When the target object needs to be displayed, determine the original RGB value corresponding to the target object;

确定所述当前终端设备所处的目标色彩模式,并利用该目标色彩模式对应的目标LUT表,将所述原始RGB数值映射为目标RGB数值后进行展示,以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在所述第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。Determine the target color mode of the current terminal device, and use the target LUT table corresponding to the target color mode to map the original RGB value to the target RGB value and then display it, so that the target object is in the target color mode. The similarity between the color vision effect presented in the second color gamut corresponding to the color mode and the standard color vision effect presented in the first color gamut satisfies the target condition.

一种生成颜色查找表的装置,包括:A device for generating a color lookup table, comprising:

第一RGB数值确定单元,用于获取目标颜色查找表LUT空间中的多个点分别对应的第一RGB数值;The first RGB numerical value determination unit is used to obtain the first RGB numerical values respectively corresponding to a plurality of points in the target color lookup table LUT space;

测试值确定单元,用于以点为单位,分别将所述第一RGB数值提供给测试终端设备,以便在所述测试终端设备中基于第二色域展示所述第一RGB数值对应的图像,并通过色彩分析设备对所述测试终端设备呈现的色觉数值进行采集,以便确定所述第一RGB数值在第二色域下所呈现视觉的测试值;a test value determination unit, configured to provide the first RGB value to the test terminal device in units of dots, so that the image corresponding to the first RGB value is displayed in the test terminal device based on the second color gamut, And collect the color vision value presented by the test terminal device through the color analysis device, so as to determine the visual test value presented by the first RGB value in the second color gamut;

目标值确定单元,用于确定所述第一RGB数值在第一色域下所呈现的色觉数值,并根据该色觉数值确定目标值;A target value determining unit, configured to determine the color vision value presented by the first RGB value in the first color gamut, and determine the target value according to the color vision value;

迭代调整单元,用于以点为单位,根据所述测试值与目标值之间的偏差量,分别启动对RGB数值的多轮迭代调整,其中,在每一轮迭代中调整RGB数值后,对调整后的RGB数值在所述第二色域展示时呈现的色觉数值进行估算,并确定色觉数值的估算值与所述目标值之间的偏差情况,直到将RGB调整为第二RGB数值后,得到的色觉数值的估算值与所述目标值的偏差量小于目标阈值时,将所述第一RGB与所述第二RGB之间的对应关系保存在所述LUT表中。The iterative adjustment unit is used to start multiple rounds of iterative adjustment of the RGB value according to the deviation between the test value and the target value in units of points, wherein, after adjusting the RGB value in each round of iteration, the Estimate the color vision value presented when the adjusted RGB value is displayed in the second color gamut, and determine the deviation between the estimated value of the color vision value and the target value, until the RGB value is adjusted to the second RGB value, When the deviation between the obtained estimated value of the color vision value and the target value is smaller than the target threshold, the corresponding relationship between the first RGB and the second RGB is stored in the LUT table.

一种对象展示装置,包括:An object display device comprising:

配置文件获取单元,用于获取与当前终端设备关联的配置文件,所述配置文件为多份,分别与所述终端设备中支持的多种色彩模式对应,其中包括颜色查找表LUT,所述LUT表用于保存多个点的第一RGB数值与第二RGB数值之间的对应关系,其中,所述第二RGB数值在第二色域下所呈现出的色觉效果,与所述第一RGB数值在预置的第一色域下所呈现出的标准色觉效果之间的相似度满足目标条件;The configuration file obtaining unit is used to obtain the configuration file associated with the current terminal device, the configuration file is multiple copies, corresponding to multiple color modes supported in the terminal device, including a color lookup table LUT, the LUT The table is used to store the correspondence between the first RGB value and the second RGB value of multiple points, wherein the color vision effect presented by the second RGB value in the second color gamut is the same as that of the first RGB value. The similarity between the standard color vision effects presented by the numerical value under the preset first color gamut meets the target condition;

原始RGB数值确定单元,用于在需要对目标对象进行展示时,确定所述目标对象对应的原始RGB数值;An original RGB value determination unit, configured to determine the original RGB value corresponding to the target object when the target object needs to be displayed;

目标RGB数值映射单元,用于确定所述当前终端设备所处的目标色彩模式,并利用该目标色彩模式对应的目标LUT表,将所述原始RGB数值映射为目标RGB数值后进行展示,以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在所述第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。The target RGB value mapping unit is used to determine the target color mode of the current terminal device, and use the target LUT table corresponding to the target color mode to map the original RGB value to the target RGB value and display it, so that The similarity between the color vision effect presented by the target object in the second color gamut corresponding to the target color mode and the standard color vision effect presented in the first color gamut satisfies the target condition .

一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述任一项所述的方法的步骤。A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods described above are implemented.

一种电子设备,包括:An electronic device comprising:

一个或多个处理器;以及one or more processors; and

与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行前述任一项所述的方法的步骤。A memory associated with the one or more processors, the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, perform the method described in any one of the foregoing A step of.

根据本申请提供的具体实施例,本申请公开了以下技术效果:According to the specific embodiments provided by the application, the application discloses the following technical effects:

通过本申请实施例,由于可以预先获取到终端设备的多种色彩模式对应的LUT表,这种LUT表中保存有多个点的第一RGB数值与第二RGB数值之间的对应关系,并且,第二RGB数值在第二色域下所呈现出的色觉效果,与第一RGB数值在预置的第一色域下所呈现出的标准色觉效果之间的相似度满足目标条件。这样,在需要对目标对象进行展示时,在确定出原始RGB数值后,可以确定所述当前终端设备所处的目标色彩模式,并利用该目标色彩模式对应的目标LUT表,将所述原始RGB数值映射为目标RGB数值后进行展示,从而可以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在所述第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。通过这种方式,可以使得终端设备中展示目标对象时,即使终端设备中使用的色域与目标对象调色时所基于的色域不同,也可以获得符合调色预期的色觉效果。Through the embodiment of the present application, since the LUT table corresponding to multiple color modes of the terminal device can be obtained in advance, the corresponding relationship between the first RGB value and the second RGB value of multiple points is stored in this LUT table, and , the similarity between the color vision effect presented by the second RGB value in the second color gamut and the standard color vision effect presented by the first RGB value in the preset first color gamut satisfies the target condition. In this way, when the target object needs to be displayed, after the original RGB value is determined, the target color mode of the current terminal device can be determined, and the target LUT table corresponding to the target color mode can be used to convert the original RGB The numerical value is mapped to the target RGB value and then displayed, so that the color vision effect presented by the target object in the second color gamut corresponding to the target color mode can be compared with the color vision effect presented in the first color gamut. The similarity between the standard color vision effects satisfies the target condition. In this way, when the target object is displayed on the terminal device, even if the color gamut used in the terminal device is different from the color gamut based on which the target object is toned, the color vision effect that meets the grading expectation can be obtained.

其中,在生成LUT表时,可以预先建立LUT空间,并将LUT空间中各个点的第一RGB数值分别发送到测试终端设备进行展示,再通过色彩分析设备采集色觉数值,该第一RGB数值在第二色域下展示时所呈现视觉的测试值。另外可以获取第一RGB数值在第一色域下展示时所呈现视觉的目标值。之后,可以以点为单位,根据所述测试值与目标值之间的偏差量,分别启动对RGB数值的多轮迭代调整,在每一轮调整中,都可以对调整后的RGB数值在所述第二色域展示时呈现的色觉数值进行估算,并确定色觉数值的估算值与所述目标值之间的偏差情况,直到将RGB调整为第二RGB数值后,得到的色觉数值的估算值与所述目标值的偏差量小于目标阈值时,即可将所述第一RGB与所述第二RGB之间的对应关系保存在所述LUT表中。通过这种方式,可以实现LUT表的自动生成。另外,由于可以通过估算的方式确定调整后的RGB数值在所述第二色域展示时呈现的色觉数值,因此,可以降低对色彩分析设备的依赖,便于提升效率。Among them, when generating the LUT table, the LUT space can be established in advance, and the first RGB value of each point in the LUT space is sent to the test terminal device for display, and then the color perception value is collected by the color analysis device. The visual test value presented when displayed in the second color gamut. In addition, the visual target value presented when the first RGB value is displayed in the first color gamut can be obtained. Afterwards, multiple rounds of iterative adjustments to the RGB values can be started respectively in units of points according to the deviation between the test value and the target value. In each round of adjustment, the adjusted RGB values can be adjusted at the Estimate the color vision value presented when the second color gamut is displayed, and determine the deviation between the estimated value of the color vision value and the target value, until the RGB is adjusted to the second RGB value, and the estimated value of the color vision value is obtained When the deviation from the target value is smaller than the target threshold, the corresponding relationship between the first RGB and the second RGB can be stored in the LUT table. In this way, automatic generation of the LUT table can be realized. In addition, since the adjusted RGB value can be determined by estimation, the color vision value presented when the second color gamut is displayed, therefore, the dependence on the color analysis equipment can be reduced, and the efficiency can be improved.

另外,可以以XYZ数值作为色觉数值,在每一轮迭代过程中,可以根据XYZ数值之间的偏差情况确定出偏差量最大的XYZ分量,然后根据XYZ各分量对RGB各分量影响程度的不同,对RGB的其中一分量进行调整,其他RGB分量则可以不做调整,以此避免将RGB调整到错误的数值上。In addition, the XYZ value can be used as the color vision value. In each round of iteration, the XYZ component with the largest deviation can be determined according to the deviation between the XYZ values, and then according to the degree of influence of the XYZ components on the RGB components, One of the components of RGB is adjusted, and the other RGB components may not be adjusted, so as to avoid adjusting RGB to a wrong value.

当然,实施本申请的任一产品并不一定需要同时达到以上所述的所有优点。Of course, implementing any product of the present application does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present application. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是关于不同色域对比的示意图;Figure 1 is a schematic diagram of a comparison of different color gamuts;

图2是本申请实施例提供的系统架构的示意图;Fig. 2 is a schematic diagram of the system architecture provided by the embodiment of the present application;

图3是本申请实施例提供的第一方法的流程图;Fig. 3 is a flow chart of the first method provided by the embodiment of the present application;

图4是本申请实施例提供的LUT空间的示意图;Fig. 4 is a schematic diagram of the LUT space provided by the embodiment of the present application;

图5是本申请实施例提供的参考点选取方式的示意图;Fig. 5 is a schematic diagram of a reference point selection method provided by the embodiment of the present application;

图6是本申请实施例提供的第二方法的流程图;Fig. 6 is a flow chart of the second method provided by the embodiment of the present application;

图7是本申请实施例提供的第一装置的示意图;Fig. 7 is a schematic diagram of the first device provided by the embodiment of the present application;

图8是本申请实施例提供的第二装置的示意图;Fig. 8 is a schematic diagram of a second device provided by an embodiment of the present application;

图9是本申请实施例提供的电子设备的示意图。Fig. 9 is a schematic diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.

为了便于理解本申请实施例所提供的技术方案,下面首先对一些概念进行介绍。In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, some concepts are firstly introduced below.

1、RGB:是一种色彩模型(也可以叫做颜色编码方法),通过一组数字来描述颜色。它是一个加色模型,但本身并不能表示色域。通过与标准色域的描述进行组合,才可以确定到一个像素点的颜色。通过这个过程,具体展示对象(图像、文档等)中的色彩,就可以确定下来。因此,同一RGB值在与不同的色域的描述来进行组合时,在显示器上所呈现出的视觉效果(也即,人眼实际可观察到的效果,包括实际呈现出的色彩等)是不同的。1. RGB: It is a color model (also called a color coding method), which describes colors through a set of numbers. It's an additive color model, but doesn't represent a color gamut by itself. The color of a pixel can be determined by combining it with the description of the standard color gamut. Through this process, the color in the specific display object (image, document, etc.) can be determined. Therefore, when the same RGB value is combined with different color gamut descriptions, the visual effects presented on the display (that is, the effects actually observable by the human eye, including the actual displayed colors, etc.) are different of.

2、色域:就是指某种色彩标准所能表达的颜色构成的范围区域,也即,一个技术系统能够产生的颜色的总和,简单来说就是在色彩中能覆盖到的面积。自然界中可见光谱的颜色组成了最大的色域,该色域中包含了人眼所能见到的所有颜色,可以用CIELAB颜色空间来表示。但是,具体设备的色域大小与设备、介质和观察条件有关。设备的色域越大,表明能够再现的颜色越多。也即,具体设备的色域通常是CIELAB颜色空间的某个子集。换言之,CIELAB颜色空间是人眼能够全部色彩,但是显示器能显示的色彩并没有这么大的空间,和人眼相比,显示器能够显示的色域更小。例如,常见的色域包括Rec.709、DCI-P3、Adobe RGB(Adobe公司所定义的色域)、NTSC(National Television Standards Committee,(美国)国家电视标准委员会)等。就影视领域而言,Rec.709、DCI-P3最为常用。其中,Rec.709也称sRGB,是最早期的色彩标准之一,也是高清电视的国际标准;DCI-P3是美国电影行业推出的一种广色域标准,也是目前数字电影回放设备的色彩标准之一,它呈现的色域相比Rec.709呈现的色域大了25%,主要是绿色和红色的范围更广。例如,如图1(A)、(B)所示,钟形线11所示范围内为CIELAB颜色空间全集,图1(A)中的三角形区域12对应的是Rec.709色域,图1(B)中的三角形区域13对应的是DCI-P3色域。2. Color gamut: It refers to the range of colors that can be expressed by a certain color standard, that is, the sum of the colors that a technical system can produce, simply speaking, it is the area that can be covered by the color. The colors of the visible spectrum in nature constitute the largest color gamut, which contains all the colors that the human eye can see, and can be represented by the CIELAB color space. However, the size of the color gamut of a specific device is related to the device, medium and viewing conditions. The larger the color gamut of a device, the more colors it can reproduce. That is, the color gamut of a specific device is usually a subset of the CIELAB color space. In other words, the CIELAB color space is all the colors that the human eye can display, but the color that the monitor can display does not have such a large space. Compared with the human eye, the color gamut that the monitor can display is smaller. For example, common color gamuts include Rec.709, DCI-P3, Adobe RGB (color gamut defined by Adobe), NTSC (National Television Standards Committee, (USA) National Television Standards Committee), and the like. As far as the field of film and television is concerned, Rec.709 and DCI-P3 are the most commonly used. Among them, Rec.709, also known as sRGB, is one of the earliest color standards and an international standard for high-definition television; DCI-P3 is a wide color gamut standard introduced by the American film industry, and it is also the color standard for current digital movie playback equipment One, the color gamut it presents is 25% larger than that presented by Rec.709, mainly with a wider range of green and red. For example, as shown in Figure 1(A) and (B), the range shown by the bell-shaped line 11 is the complete set of CIELAB color space, and the triangle area 12 in Figure 1(A) corresponds to the Rec.709 color gamut, Figure 1 The triangular area 13 in (B) corresponds to the DCI-P3 color gamut.

3、XYZ色彩体系:是为了解决更精确地定义色彩而提出来的,XYZ三个分量中,X、Z代表的是色度,Y分量既可以代表亮度也可以代表色度,三个分量的单位都是cd/m2(或者叫做nit)。如前文所述,由于不同的设备显示的RGB都是不一样的,不同的设备显示同一个RGB,在人眼看出来是千差万别的,因此,无法用RGB来精确定义颜色。但是,如果用上述XYZ色彩体系,则可以更精确地定义一个设备的色彩空间。3. XYZ color system: It was proposed to solve the problem of defining colors more precisely. Among the three components of XYZ, X and Z represent chroma, and Y component can represent both brightness and chroma. The three components The units are cd/m 2 (or called nit). As mentioned above, since the RGB displayed by different devices is different, different devices display the same RGB, which is very different to the human eye. Therefore, RGB cannot be used to accurately define colors. However, if the above-mentioned XYZ color system is used, the color space of a device can be defined more precisely.

4、xyY:将三维XYZ色彩体系变为二维xy平面的“xy色度图”(xy color diagram)。这个xy色度图就是CIE(Commission Internationale de l′Eclairage,法语,国际照明委员会)在1931年制定的,所以也被称为CIE色彩体系或CIE色度图,也即前述图1中所示的CIELAB颜色空间。在这个xy色度图中,使用与XYZ色彩体系的3个刺激值X、Y、Z的比例X:Y:Z相同比例的x:y:z来表示(其中,x+y+z=1),以这样变换得到的x值作为横轴、y值作为纵轴,用以表示所有颜色的图就是xy色度图。比如,如果一个颜色由XYZ表示为:X=19cd/m2,Y=20cd/m2,Z=21cd/m2,则这个颜色的亮度为20cd/m2,色度可以由x=X/(X+Y+Z)=19/60,y=Y/(X+Y+Z)=20/30来表示。4. xyY: Change the three-dimensional XYZ color system into the "xy color diagram" of the two-dimensional xy plane. This xy chromaticity diagram was formulated by CIE (Commission Internationale de l'Eclairage, French, International Commission on Illumination) in 1931, so it is also called the CIE color system or CIE chromaticity diagram, which is shown in the aforementioned Figure 1 CIELAB color space. In this xy chromaticity diagram, it is represented by x:y:z in the same proportion as the ratio X:Y:Z of the three stimulus values X, Y, and Z of the XYZ color system (wherein, x+y+z=1 ), with the x value obtained in this way as the horizontal axis and the y value as the vertical axis, the graph used to represent all colors is the xy chromaticity diagram. For example, if a color is expressed by XYZ as: X=19cd/m2, Y=20cd/m2, Z=21cd/m2, then the brightness of this color is 20cd/m2, and the chromaticity can be calculated by x=X/(X+Y +Z)=19/60, y=Y/(X+Y+Z)=20/30.

可见,“颜色图”的维数实际为2,是一个平面,用(x,y)两个坐标即可表示所有(与辐照度无关的)颜色,这就是最常见的色度图。色度坐标可以标定每一个人类可感知的颜色,这就是XYZ色彩体系对应的二维的“颜色图”,图中的每一个值都在(0,1)之间。It can be seen that the dimension of the "color map" is actually 2, which is a plane, and all (irradiance-independent) colors can be represented by two coordinates (x, y). This is the most common chromaticity map. The chromaticity coordinates can calibrate every human-perceivable color, which is the two-dimensional "color map" corresponding to the XYZ color system, and each value in the map is between (0, 1).

但到这一步为止,这些颜色还仅是辐照度无关的——它们看起来亮度仍然不同。作为一种简单但有效的解决方案,可以将颜色信息与亮度信息结合,组合成一个叫xyY的空间。只要在xyY空间垂直于Y轴截取一个平面,画出其上的单频光轮廓,即可以得到与亮度无关的“颜色图”了,这才是真正的色度图,也即,不仅有x、y坐标,还隐藏了一个条件:所有点的Y值相等。由于结合了颜色与亮度两大类信息,xyY空间与XYZ空间是等价的。除了XYZ空间中的原点,它们是一一映射的关系。But up to this point, the colors are only irradiance independent - they still appear to have different brightnesses. As a simple but effective solution, color information can be combined with luminance information into a space called xyY. As long as you intercept a plane perpendicular to the Y axis in the xyY space and draw the outline of the single-frequency light on it, you can get a "color map" that has nothing to do with brightness. This is the real chromaticity map, that is, not only x , y coordinates, and a condition is hidden: the Y values of all points are equal. Due to the combination of two types of information, color and brightness, the xyY space and the XYZ space are equivalent. In addition to the origin in XYZ space, they are a one-to-one mapping relationship.

总之,XYZ空间与xyY空间都可以完整地描述色觉,xy色度坐标可以描述亮度无关的颜色。当然,它们之间虽一一映射,但不可通过线性变换互相转换,所以其混色方法完全不同。XYZ空间中的混色方法方便定量计算(向量运算),而xy色度图中的混色方法方便进行定性分析。In short, both XYZ space and xyY space can completely describe color vision, and xy chromaticity coordinates can describe colors that have nothing to do with brightness. Of course, although there is a one-to-one mapping between them, they cannot be converted to each other through linear transformation, so the color mixing methods are completely different. The color mixing method in the XYZ space is convenient for quantitative calculation (vector operation), while the color mixing method in the xy chromaticity diagram is convenient for qualitative analysis.

5、YUV:是被欧洲电视系统所采用的一种颜色编码方法,Y表示亮度,U、V表示色差信息(分别表示Blue和Red的色差信息)。YUV通常用于彩色图像/视频处理的彩色空间。它在编码彩色图像/视频的同时考虑到人眼的属性,这些属性允许在不感知失真的情况下减少色度组件的带宽。并且,使用YUV色彩空间有助于图像/视频压缩,它最初用于模拟电视广播。颜色空间YUV、YIQ、YCbCr和YPbPr都属于YUV家族。从历史的演变而言,其中YUV和Y’UV通常用于编码电视的类比信号,而YcbCr(其中Y与YUV中的Y含义一致,Cb,Cr同样都指色彩,只是在表示方法上不同而已)则是用来描述数位的影像信号,适合影片与图片压缩以及传输,例如MPEG(Moving Picture Experts Group,动态图像专家组,是专门针对运动图像和语音压缩制定国际标准的组织)格式,JPEG(Joint Photographic Experts Group,联合图像专家组,是用于连续色调静态图像压缩的一种标准)格式的图像等。5. YUV: It is a color coding method adopted by the European TV system. Y represents brightness, and U and V represent color difference information (respectively representing the color difference information of Blue and Red). YUV is usually a color space for color image/video processing. It encodes color images/videos while taking into account the properties of the human eye which allow reducing the bandwidth of the chroma component without perceptual distortion. Also, image/video compression is facilitated by using the YUV color space, which was originally used for analog TV broadcasting. The color spaces YUV, YIQ, YCbCr, and YPbPr all belong to the YUV family. In terms of historical evolution, YUV and Y'UV are usually used to encode analog TV signals, while YcbCr (where Y has the same meaning as Y in YUV, and Cb and Cr also refer to color, but they are different in representation) ) is used to describe digital image signals, suitable for video and picture compression and transmission, such as MPEG (Moving Picture Experts Group, an organization that formulates international standards for moving image and voice compression) format, JPEG ( Joint Photographic Experts Group, Joint Photographic Experts Group, is a standard for continuous tone still image compression) format image etc.

6、RGB、色域、xyY、XYZ、YUV之间的关系:6. The relationship between RGB, color gamut, xyY, XYZ, and YUV:

xyY与XYZ都是用于对色觉(色度及亮度)进行描述,两者之间能够相互转化。Both xyY and XYZ are used to describe color vision (chroma and brightness), and the two can be transformed into each other.

关于RGB数值,在已知色域的情况下,可以转换得到二维空间中的色度xy值,但是,不能直接通过公式转换的方式得到亮度Y分量上的数值。也即,无法直接通过公式转换的方式将RGB数值转换为xyY数值,进而也就不能通过公式转换的方式将RGB数值转换得到XYZ数值。Regarding the RGB value, if the color gamut is known, the chromaticity xy value in the two-dimensional space can be converted, but the value on the luminance Y component cannot be obtained directly through formula conversion. That is to say, RGB values cannot be directly converted into xyY values through formula conversion, and then RGB values cannot be converted into XYZ values through formula conversion.

根据YUV数据可以通过公式转换的方式得到RGB数值。在通过相关应用对视频或者图片等图像进行展示的过程中,由于具体的图像通常是通过YUV进行颜色编码,因此,可以首先从图像的码流中还原出每个像素点的YUV数值,在正确地还原出每个像素点的YUV数值后,可以通过YUV与RGB的转换公式提取出每个像素点的RGB数值。According to the YUV data, the RGB value can be obtained by formula conversion. In the process of displaying images such as videos or pictures through related applications, since specific images are usually color-coded by YUV, the YUV value of each pixel can be restored from the code stream of the image first. After accurately restoring the YUV value of each pixel, the RGB value of each pixel can be extracted through the conversion formula of YUV and RGB.

但是,得到具体像素点的RGB数值之后,需要结合具体终端设备当前色彩模式下支持的色域,将具体的像素点显示出来,也即呈现出最终通过人眼在终端设备显示屏上看到的色觉效果。However, after obtaining the RGB value of a specific pixel point, it is necessary to combine the color gamut supported by the current color mode of the specific terminal device to display the specific pixel point, that is, to present the final image that is finally seen on the display screen of the terminal device by human eyes. color vision effect.

其中,在进行视频或者图片等图像的制作或者后期处理时,为了使得具体的图像具有更好的展示效果,通常会选择一种色域作为标准色域(例如,已知大部分终端设备都使用Rec.709色域,则可以将该色域作为标准色域),然后,调色师可以基于该标准色域,对具体像素点的RGB数值进行精细化的调色处理,直到达到预期效果为止。例如,对于某帧图像中的人物脸部区域的某像素点,在Rec.709色域格式下,具体的RGB为某数值时,可以呈现出预期的色觉效果,因此,就可以将该像素点设定为该RGB数值。后续在具体的终端设备上展示该图像时,如果终端设备中的色彩模式也对应该Rec.709色域,则直接根据具体的RGB数值在该Rec.709色域下进行展示时,通常可以使得呈现的色觉(也即人眼的视觉效果)达到预期。此时,该基于某个标准色域进行了调色处理的图像,可以称为该标准色域格式的图像。但是,如果终端设备中的色彩模式对应的是P3等其他色域,则由于同样的RGB数值在基于该其他色域进行展示时,具体呈现出的色觉将会发生变化,例如,脸部区域可能偏红,因此,实际呈现出的色觉效果将会偏离预期。Among them, in the production or post-processing of images such as videos or pictures, in order to make specific images have a better display effect, a color gamut is usually selected as the standard color gamut (for example, it is known that most terminal devices use Rec.709 color gamut, this color gamut can be used as the standard color gamut), and then, based on the standard color gamut, the colorist can fine-tune the RGB values of specific pixels until the desired effect is achieved . For example, for a certain pixel in the face area of a person in a certain frame of image, in the Rec.709 color gamut format, when the specific RGB is a certain value, the expected color vision effect can be presented. Therefore, the pixel can be Set to this RGB value. When the image is subsequently displayed on a specific terminal device, if the color mode in the terminal device also corresponds to the Rec.709 color gamut, when the image is displayed directly in the Rec.709 color gamut according to the specific RGB value, it can usually make The presented color vision (that is, the visual effect of the human eye) is as expected. At this point, the image that has been color-graded based on a certain standard color gamut may be referred to as an image in the standard color gamut format. However, if the color mode in the terminal device corresponds to other color gamuts such as P3, when the same RGB value is displayed based on this other color gamut, the specific color perception will change. For example, the face area may Reddish, therefore, the actual color vision effect will deviate from expectations.

7、色彩分析仪:是一种可以快速(例如,可以达到20次/秒的速度)测量液晶或者各种其他显示设备的亮度和色度的工业机器。也就是说,假设某显示设备上展示出某个单一颜色的画面,则通过该色彩分析仪对着该显示设备的屏幕进行采集及分析,可以确定出该显示设备实际显示的亮度和色度,也即前述xyY数值。7. Color analyzer: It is an industrial machine that can measure the brightness and chromaticity of liquid crystal or various other display devices quickly (for example, the speed can reach 20 times/second). That is to say, assuming that a single color picture is displayed on a display device, the actual brightness and chromaticity displayed by the display device can be determined by collecting and analyzing the screen of the display device through the color analyzer. That is, the aforementioned xyY values.

8、LUT:Lookup Table(颜色查找表)的缩写,通过LUT,可以将一组RGB数值输出为另一组RGB数值,从而改变画面的曝光与色彩等色觉效果。可以将LUT视为某种函数,每个像素的RGB数值经过LUT的重新定位之后,就能得到一组新的RGB数值。现有技术中,LUT表通常用于进行显示设备的色彩校准,或者图像色彩空间的转换,或者特殊色彩效果的设计与模拟,或者调整影片的颜色风格,也就是前文所说的调色,等等。8. LUT: Abbreviation for Lookup Table (color lookup table). Through LUT, one set of RGB values can be output as another set of RGB values, thereby changing the color vision effects such as exposure and color of the picture. The LUT can be regarded as a function. After the RGB value of each pixel is repositioned by the LUT, a new set of RGB values can be obtained. In the prior art, the LUT table is usually used for color calibration of display devices, or image color space conversion, or design and simulation of special color effects, or adjust the color style of movies, that is, the color adjustment mentioned above, etc. Wait.

在本申请实施例中,为了降低终端设备中的色彩模式调整对具体应用中的图像展示造成的影响,提供了相应的解决方案。在该方案中,可以预先LUT表的方式,保存多个点的第一RGB数值与第二RGB数值之间的对应关系,这里的第一RGB数值与第二RGB数值具有以下特点:第二RGB数值在第二色域下所呈现出的色觉效果,与所述第一RGB数值在预置的第一色域下所呈现出的标准色觉效果之间的相似度满足目标条件。也就是说,如果某像素点在第一色域下按照上述第一RGB数值进行展示时可以获得预期的色觉效果,但是,如果终端设备实际使用的是第二色域,则直接在第二色域中利用该第一RGB数值展示时,具体的像素点所呈现出的色觉效果将会偏离预期。针对该情况,可以通过上述LUT表,将第一RGB数值转换为第二RGB数值,然后实际在该第二色域下利用该第二RGB数值展示对应的像素点,则实际呈现出的色觉效果将会更符合预期。In the embodiment of the present application, in order to reduce the impact of the color mode adjustment in the terminal device on the image display in a specific application, a corresponding solution is provided. In this solution, the corresponding relationship between the first RGB value and the second RGB value of multiple points can be stored in the form of a LUT table in advance. The first RGB value and the second RGB value here have the following characteristics: the second RGB value The similarity between the color vision effect presented by the value in the second color gamut and the standard color vision effect presented by the first RGB value in the preset first color gamut satisfies the target condition. That is to say, if a certain pixel is displayed in the first color gamut according to the above-mentioned first RGB value, the expected color vision effect can be obtained, but if the terminal device actually uses the second color gamut, it can be displayed directly in the second color gamut. When the first RGB value is used to display in the domain, the color vision effect presented by the specific pixel will deviate from the expectation. For this situation, the first RGB value can be converted to the second RGB value through the above-mentioned LUT table, and then the second RGB value is actually used to display the corresponding pixel in the second color gamut, and the actual color vision effect presented will be more in line with expectations.

另外,本申请实施例还提供了生成上述LUT表的实现方法,在该方法中,可以搭建测试环境。例如,一种具体的实现方式下,如图2所示,在硬件层面,在该测试环境中可以包括PC端设备,用于测试的手机等测试终端设备,以及色彩分析设备。在软件层面,可以提供用于生成具体LUT表的应用程序,该应用程序可以分为运行于PC端设备中的第一端,以及运行于测试终端设备中的第二端。另外,还可以设计LUT空间,该LUT空间可以是三维空间,三个维度分别与R、G、B相对应。该LUT空间中可以包括N*N*N个点,其中,由于RGB三个分量的取值是在0~255范围内,因此,N可以在2~255之间任意取值,每个点都可以带有一组RGB数值。另外,该LUT空间可以是根据标准色域进行设计的,也即,LUT空间中的多个点对应的RGB数值,是在上述标准色域下的第一RGB数值。In addition, the embodiment of the present application also provides an implementation method for generating the above-mentioned LUT table. In this method, a test environment can be built. For example, in a specific implementation manner, as shown in FIG. 2 , at the hardware level, the test environment may include a PC terminal device, a test terminal device such as a mobile phone for testing, and a color analysis device. At the software level, an application program for generating a specific LUT table can be provided, and the application program can be divided into a first terminal running on a PC terminal device and a second terminal running on a test terminal device. In addition, a LUT space may also be designed, and the LUT space may be a three-dimensional space, and the three dimensions correspond to R, G, and B respectively. The LUT space can include N*N*N points, where, since the values of the three components of RGB are in the range of 0 to 255, N can be any value between 2 and 255, and each point Can have a set of RGB values. In addition, the LUT space may be designed according to the standard color gamut, that is, the RGB values corresponding to multiple points in the LUT space are the first RGB values under the above-mentioned standard color gamut.

具体在建立LUT表时,首先可以在PC设备中的应用程序第一端与测试终端设备中的应用程序第二端之间建立通讯连接,然后,第一端可以依次将LUT空间中的各个点对应的RGB数值提供给第二端。第二端每接收到一组RGB数值,就可以在测试终端设备中,生成对应的纯色图像,并基于该设备的第二色域,在该测试终端设备的显示屏进行展示。此时,可以通过色彩分析设备对着该测试终端设备的显示屏进行色觉数值的采集,例如,具体可以包括色度数值以及亮度数值。也即,可以通过色彩分析设备获取到LUT空间中一个点的RGB数值在测试终端设备中的第二色域下进行展示时,所呈现出的色觉效果的数值表达结果。Specifically, when establishing the LUT table, first, a communication connection can be established between the first end of the application program in the PC device and the second end of the application program in the test terminal device, and then, the first end can sequentially transfer each point in the LUT space to The corresponding RGB values are provided to the second terminal. Whenever the second end receives a set of RGB values, it can generate a corresponding solid-color image in the test terminal device, and display it on the display screen of the test terminal device based on the second color gamut of the device. At this time, the color perception value may be collected from the display screen of the test terminal device through the color analysis device, for example, may specifically include chromaticity value and brightness value. That is, the numerical expression result of the color vision effect presented when the RGB value of a point in the LUT space is displayed in the second color gamut in the test terminal device can be obtained through the color analysis device.

在分别针对LUT空间中的各个点,采集到在测试终端设备的第二色域下展示时的色觉数值之后,相当于获取到了按照各个点的第一RGB数值在第二色域下展示时,所测试出的色觉效果,该色觉效果与第一RGB数值在标准色域下呈现的标准色觉效果是有偏差的。因此,可以确定出对上述标准色觉效果进行表达的色觉数值,并将该色觉数值作为色觉数值的目标值,然后,可以根据上述色觉数值的测试值与目标值之间的偏差值,利用梯度下降法等算法,对第一RGB数值进行多轮调整,直到修改后的某组第二RGB数值在第二色域下呈现出的色觉数值,与第一RGB数值在标准色域下的色觉数值的目标值足够接近时,就可以结束迭代,并建立起该第一RGB数值与该第二RGB数值之间的对应关系,添加到上述第二色域对应的LUT表中。After collecting the color vision values displayed in the second color gamut of the test terminal device for each point in the LUT space, it is equivalent to obtaining the first RGB value of each point when displayed in the second color gamut. The tested color vision effect deviates from the standard color vision effect presented by the first RGB value in the standard color gamut. Therefore, the color vision value that expresses the above-mentioned standard color vision effect can be determined, and the color vision value can be used as the target value of the color vision value, and then, according to the deviation between the test value and the target value of the above color vision value, gradient descent The first RGB value is adjusted for multiple rounds until the color perception value of a modified second RGB value in the second color gamut is equal to the color perception value of the first RGB value in the standard color gamut. When the target value is close enough, the iteration can be ended, and the corresponding relationship between the first RGB value and the second RGB value is established, and added to the LUT table corresponding to the second color gamut.

其他点也都可以分别做类似处理,并将获得的其他第一RGB数值与该第二RGB数值之间的对应关系保存在LUT表中。这个LUT表就可以作为从将标准色域格式的图像在上述第二色域进行展示时,RGB之间的映射关系信息。这样,在具体终端设备展示某图像时,在确定出图像中各像素点的原始RGB数值之后,如果终端设备对应的是上述第二色域,则可以利用上述LUT表,将具体像素点的原始RGB数值转换为目标RGB数值,然后再进行展示。从而使得在该第二色域中基于该目标RGB数值对具体像素点进行展示时,可以获得在标准色域中通过原始RGB数值对具体像素点进行展示时相同或者很接近的色觉效果。Similar processing can also be performed on other points, and the obtained corresponding relationship between other first RGB values and the second RGB values is stored in the LUT table. This LUT table can be used as the mapping relationship information between RGB when the image in the standard color gamut format is displayed in the above-mentioned second color gamut. In this way, when a specific terminal device displays an image, after determining the original RGB value of each pixel in the image, if the terminal device corresponds to the above-mentioned second color gamut, the above-mentioned LUT table can be used to convert the original RGB value of the specific pixel point to The RGB value is converted to the target RGB value, and then displayed. Therefore, when a specific pixel is displayed based on the target RGB value in the second color gamut, the same or very similar color vision effect as when a specific pixel is displayed with the original RGB value in the standard color gamut can be obtained.

其中,在实现上述方案的过程中,还涉及到以下需要解决或优化的问题:Among them, in the process of realizing the above solution, the following problems that need to be solved or optimized are also involved:

问题一:如何确定第一RGB数值在标准色域下的色觉数值。如前文所述,虽然在已知色域的情况下,可以将RGB数值转换得到二维空间中的色度xy值,但是,不能直接通过公式转换的方式得到Y分量上的数值,也即,无法通过公式转换的方式,计算出RGB数值对应的完整的色觉数值。Question 1: How to determine the color perception value of the first RGB value in the standard color gamut. As mentioned above, although the RGB value can be converted to obtain the chromaticity xy value in the two-dimensional space when the color gamut is known, the value on the Y component cannot be obtained directly through formula conversion, that is, It is impossible to calculate the complete color vision value corresponding to the RGB value by means of formula conversion.

针对该问题,考虑到同一组RGB数值在不同色域下展示时所呈现出的色觉差别,在亮度也即Y分量上的数值对上述色觉差别的影响通常比较小,因此,为了获取完整的标准色觉数值,可以在将一组RGB数值在测试终端设备中展示出来之后,利用色彩分析仪采集到的亮度Y值,作为该RGB在标准色域中的Y分量数值。这样,结合前述RGB数值在标准色域中的xy数值,可以得到RGB在标准色域下对应的完整的色觉数值,例如,可以首先确定出xyY数值,另外还可以转换得到XYZ数值,该数值可以作为色觉数值的目标值,等等。In response to this problem, considering the difference in color vision when the same group of RGB values are displayed in different color gamuts, the value on the brightness, that is, the Y component, usually has a relatively small impact on the above-mentioned difference in color vision. Therefore, in order to obtain a complete standard For the color vision value, after displaying a set of RGB values in the test terminal device, the brightness Y value collected by the color analyzer can be used as the Y component value of the RGB in the standard color gamut. In this way, combined with the xy value of the aforementioned RGB value in the standard color gamut, the complete color vision value corresponding to RGB in the standard color gamut can be obtained. For example, the xyY value can be determined first, and the XYZ value can also be converted to obtain the value. As a target value for color vision values, etc.

问题二:在每轮迭代过程中,调整RGB数值后,如何获取调整后的RGB数值在第二色域中呈现的色觉数值。Question 2: In each round of iteration, after adjusting the RGB value, how to obtain the color vision value presented by the adjusted RGB value in the second color gamut.

针对该问题,一种方式是,在每次调整RGB数值后,通知测试终端设备中的应用程序第二端重新按照调整后的RGB数值进行展示,并通过色彩分析设备采集对应的色觉数值。但是,该过程会比较繁琐,并且对色彩分析设备的依赖度也很高。To solve this problem, one way is to notify the second end of the application program in the test terminal device to display again according to the adjusted RGB value after each adjustment of the RGB value, and collect the corresponding color vision value through the color analysis device. However, the process can be cumbersome and highly dependent on color analysis equipment.

因此,本申请实施例中,采用了通过算法进行估算的实现方式。具体的,本申请发明人在实现本申请的过程中发现,如果已知某个点周围的多个点在某色域下的色觉数值,则可以将周围的这些点作为参考点,利用这些参考点在该色域下的色觉数值,估算出该点在该色域下的色觉数值。而在本申请实施例中,刚好可以通过色彩分析设备采集到多个RGB值分别在第二色域展示时的色觉数值,例如,XYZ数值等,因此,在针对某个具体的目标点进行迭代的过程中,调整到某个RGB数值之后,首先可以从LUT空间包括的多个点中确定出位于该调整后的RGB数值周围的多个参考点,然后根据这些参考点对应的色觉数值,即可估算出在第二色域中展示上述调整后的RGB数值时,可以获得的色觉数值,然后,可以将该色觉数值的估算值与前述目标值进行比对,根据两者之间的偏差情况,继续进行下一步迭代中的RGB数值调整,等等。Therefore, in the embodiment of the present application, an implementation manner of estimating through an algorithm is adopted. Specifically, the inventors of the present application found in the process of implementing the present application that if the color vision values of multiple points around a certain point in a certain color gamut are known, these surrounding points can be used as reference points, and these reference points can be used to The color vision value of the point under the color gamut, and estimate the color vision value of the point under the color gamut. However, in the embodiment of the present application, the color vision values of multiple RGB values displayed in the second color gamut can be collected by the color analysis device, for example, XYZ values, etc. Therefore, iterating on a specific target point In the process, after adjusting to a certain RGB value, you can first determine multiple reference points located around the adjusted RGB value from the multiple points included in the LUT space, and then according to the color vision values corresponding to these reference points, that is The color vision value that can be obtained when the above-mentioned adjusted RGB value is displayed in the second color gamut can be estimated, and then the estimated value of the color vision value can be compared with the aforementioned target value, and according to the deviation between the two , continue to adjust the RGB value in the next iteration, and so on.

问题三:在每轮迭代过程中,具体如何进行RGB数值的调整。对于该问题,一种方式下,可以在每一轮迭代中,对RGB三个分量上的数值都进行调整。但是,这种方式下,当色彩相差较大是,可能会调整到错误的RGB上。例如RGB(2,3,5)与RGB(4,6,10),由于RGB三个分量的混合比例相同,因此,在色彩分析仪上x,y的值是一致的。为此,在优选的实施方式中,在以XYZ数值进行色觉量化表达的情况下,由于XYZ三个分量分别对RGB三个分量的影响程度可能是不同的,例如,X分量可能主要影响R分量,Y分量主要影响G分量,Z分量主要影响B分量。因此,在具体进行调整时,可以首先确定出XYZ数值分别在各个分量之间的偏差量,并确定出其中偏差量最大的分量,根据该分量,对RGB数值中对应的分量进行调整。例如,在某一轮迭代中,发现XYZ数值之间,在X分量上的偏差最大,则在此轮迭代中,可以对RGB数值的R分量进行调整,GB分量的数值保持不变。在根据调整后的RGB数值估算出在第二色域中的XYZ数值后,重新与XYZ数值的目标值进行比对,并进行下一轮迭代。在下一轮迭代中,如果估算出的XYZ数值与目标值之间仍然在X分量上的偏差最大,则可以继续对R数值进行调整,如果Y分量上的偏差最大,则可以对G数值进行调整,等等。Question 3: How to adjust the RGB value in each round of iteration. For this problem, in one way, the values on the three components of RGB can be adjusted in each iteration. However, in this way, when the color difference is large, it may be adjusted to the wrong RGB. For example, RGB (2, 3, 5) and RGB (4, 6, 10), since the mixing ratio of the three components of RGB is the same, the values of x and y on the color analyzer are consistent. For this reason, in a preferred embodiment, in the case of quantitative expression of color vision with XYZ values, since the three components of XYZ may have different influences on the three components of RGB, for example, the X component may mainly affect the R component , the Y component mainly affects the G component, and the Z component mainly affects the B component. Therefore, when performing specific adjustments, the deviations of the XYZ values among the respective components can be determined first, and the component with the largest deviation can be determined, and the corresponding components of the RGB values can be adjusted according to this component. For example, in a certain round of iteration, it is found that the deviation between the XYZ values is the largest on the X component, then in this round of iteration, the R component of the RGB value can be adjusted, and the value of the GB component remains unchanged. After the XYZ value in the second color gamut is estimated according to the adjusted RGB value, it is compared with the target value of the XYZ value again, and the next round of iteration is performed. In the next iteration, if the estimated XYZ value still has the largest deviation on the X component from the target value, the R value can continue to be adjusted, and if the Y component has the largest deviation, the G value can be adjusted ,and many more.

总之,通过上述方式,可以针对LUT空间中的多个点,分别建立起第一RGB与第二RGB之间的对应关系,保存为当前测试终端设备中的当前色域建立的LUT表。之后,还可以将当前测试终端设备切换到其他色彩模式,并重新执行上述流程,从而为其他色彩模式对应的色域,分别建立起LUT表。另外,由于不同机型中对色彩模式的定义方式可能不同,另外,即使相同的色彩模式,甚至声明了相同的色域,在不同机型上具体的表现可能也会有所不同,因此,为了获得更好的校正效果,还可以选择其他机型的终端设备,分别对各种色彩模式进行测试,并分别生成LUT表。也即,可以针对各种不同机型下的各种色彩模式,生成多个LUT表,然后,针对具体机型的终端设备,可以将同机型中多个色彩模式分别对应的LUT下发到该终端设备,使得终端设备在进行具体的视频播放等的过程中,可以根据具体终端设备所处的色彩模式,选择使用对应的LUT表,对视频等图像的色彩进行校正之后再进行展示。In a word, through the above method, the corresponding relationship between the first RGB and the second RGB can be respectively established for multiple points in the LUT space, and the LUT table established for the current color gamut in the current test terminal device can be saved. Afterwards, the current test terminal device can also be switched to other color modes, and the above process can be performed again, so as to establish LUT tables for the color gamuts corresponding to other color modes. In addition, because the definition of color mode may be different in different models, in addition, even if the same color mode, or even the same color gamut is declared, the specific performance may be different on different models. Therefore, in order To obtain a better correction effect, you can also choose other types of terminal equipment to test various color modes and generate LUT tables separately. That is, multiple LUT tables can be generated for various color modes under different models, and then, for specific models of terminal devices, the LUTs corresponding to multiple color modes in the same model can be sent to The terminal device enables the terminal device to select and use the corresponding LUT table according to the color mode of the specific terminal device during specific video playback, etc., to correct the color of the video and other images before displaying.

当然,以上方案中,都是假设具体待展示的图像是基于某种特定的色域进行了调色生成的图像,例如,由于大部分终端设备都是使用709色域,因此,具体的视频可以基于该709色域进行调色等处理,相应的,成为709色域格式的视频。但是,在实际应用中,具体在终端设备设备中展示的图像,也可能时基于其他色域进行的调色,对应其他色域格式的视频,等等。因此,在具体实现时,还可以分别针对各种不同色域格式的图像,分别进行LUT的生成处理。也就是说,最终可以生成更多的LUT,例如,具体的LUT表与图像的色域格式、终端设备的色域之间的对应关系可以如表1所示:Of course, in the above solutions, it is assumed that the specific image to be displayed is an image generated by color-grading based on a specific color gamut. For example, since most terminal devices use the 709 color gamut, the specific video can be Based on the 709 color gamut, color adjustment and other processing are performed, and correspondingly, the video becomes a 709 color gamut format video. However, in practical applications, the images displayed on the terminal equipment may also be color-graded based on other color gamuts, corresponding to videos in other color gamut formats, and so on. Therefore, during specific implementation, LUT generation processing may also be performed separately for images in various color gamut formats. That is to say, more LUTs can be generated in the end. For example, the corresponding relationship between the specific LUT table and the color gamut format of the image and the color gamut of the terminal device can be shown in Table 1:

表1Table 1

Figure BDA0003721799800000101
Figure BDA0003721799800000101

Figure BDA0003721799800000111
Figure BDA0003721799800000111

具体应用的服务端可以按照机型,将相关的LUT表提供给终端设备,具体终端设备在进行图像展示时,可以首先确定出具体图像对应的色域格式,终端设备当前色彩模式或者对应的色域,然后再选择使用具体的LUT表进行颜色校正。The server of a specific application can provide the relevant LUT table to the terminal device according to the model. When the specific terminal device performs image display, it can first determine the color gamut format corresponding to the specific image, the current color mode of the terminal device or the corresponding color space. field before choosing to use a specific LUT table for color correction.

下面对本申请实施例提供的具体实现方案进行详细介绍。The specific implementation solutions provided by the embodiments of the present application are introduced in detail below.

实施例一Embodiment one

首先,该实施例一针对具体生成LUT表的方案,从测试应用程序的第一端的角度,提供了一种生成颜色查找表的方法,参见图3,该方法具体可以包括:First of all, this embodiment 1 provides a method for generating a color lookup table from the perspective of the first end of the test application program for the specific solution for generating a LUT table. Referring to FIG. 3, the method may specifically include:

S301:获取目标颜色查找表LUT空间中的多个点分别对应的第一RGB数值。S301: Acquire first RGB values corresponding to multiple points in the LUT space of the target color lookup table.

如前文所述,为了建立最终的LUT表中第一RGB数值与第二RGB数值之间的对应关系,可以首先创建LUT表空间。该LUT空间可以是三维空间,三个维度分别与R、G、B相对应。该LUT空间中可以包括N*N*N个点,其中,由于RGB三个分量的取值是在0~255范围内,因此,N可以在2~255之间任意取值。例如,N可以等于6,此时,该LUT空间中共有6*6*6=216个点,每个点都可以带有R、G、B三个分量上的数值。R、G、B沿着3个分量依次等比增加,每次增量为255/(N-1)。例如,N=6时,R、G、B递增分量为51,取值范围为0、51、102、153、204、255(渲染时再归一化);生成LUT表中的第一RGB数值时,下标从0开始,如图4所示,例子里LUT[5][0][2]对应的R为255,G为0,B为102;例子里LUT[1][1][4]对应的R为51,G为51,B为204,等等。其中,在具体实现时,N也可以取其他数值,N越大精度越高,当然,所需的内存空间也越多,测试时间相应提高,具体可以根据实际需求而定。As mentioned above, in order to establish the corresponding relationship between the first RGB value and the second RGB value in the final LUT table, a LUT table space may be created first. The LUT space may be a three-dimensional space, and the three dimensions correspond to R, G, and B respectively. The LUT space may include N*N*N points, wherein, since the values of the three components of RGB are in the range of 0-255, N may be any value between 2-255. For example, N may be equal to 6. At this time, there are 6*6*6=216 points in the LUT space, and each point may have values on three components of R, G, and B. R, G, and B increase sequentially and proportionally along the three components, and each increment is 255/(N-1). For example, when N=6, the incremental components of R, G, and B are 51, and the value ranges are 0, 51, 102, 153, 204, and 255 (renormalized during rendering); generate the first RGB value in the LUT table , the subscript starts from 0, as shown in Figure 4. In the example, LUT[5][0][2] corresponds to R is 255, G is 0, and B is 102; in the example, LUT[1][1][ 4] corresponds to 51 for R, 51 for G, 204 for B, and so on. Among them, in actual implementation, N can also take other values. The larger N is, the higher the accuracy will be. Of course, the required memory space will be more, and the test time will increase accordingly, which can be determined according to actual needs.

也就是说,预先在LUT空间中确定N*N*N个点,每个点对应各自的第一RGB数值,则最终生成的LUT标准,会存在N*N*N个第一RGB数值与第二RGB数值之间的对应关系。That is to say, N*N*N points are pre-determined in the LUT space, and each point corresponds to its own first RGB value, then the final generated LUT standard will have N*N*N first RGB values and the first RGB value. Correspondence between two RGB values.

S302:以点为单位,分别将所述第一RGB数值提供给测试终端设备,以便在所述测试终端设备中基于第二色域展示所述第一RGB数值对应的图像,并通过色彩分析设备对所述测试终端设备呈现的色觉数值进行采集,以便确定所述第一RGB数值在第二色域下所呈现视觉的测试值。S302: Provide the first RGB value to the test terminal device in units of dots, so that the image corresponding to the first RGB value is displayed based on the second color gamut in the test terminal device, and the color analysis device The color vision value presented by the test terminal device is collected, so as to determine the test value of the vision presented by the first RGB value under the second color gamut.

在确定出LUT空间中多个点的RGB数值后,可以分别将各个点的第一RGB数值发送到测试终端设备,测试终端设备中预先安装有测试应用程序的第二端在每接收到该第一RGB数值后,可以按照该第一RGB数值进行图像展示。例如,可以展示出一张全屏的单色图像,等等。在第二端展示出该图像之后,可以通知第一端,第一端则可以驱动色彩分析设备对测试终端设备显示屏展示出的图像进行色觉数值采集。采集到的色觉数值可以提供给第一端。之后,第一端可以向第二端发送下一个点的第一RGB数值,并重复上述过程,直到针对LUT空间中的各个点,都收集到具体的色觉数值。After determining the RGB values of multiple points in the LUT space, the first RGB values of each point can be sent to the test terminal device respectively, and the second end with the test application program pre-installed in the test terminal device receives the first RGB value every time After receiving an RGB value, image display can be performed according to the first RGB value. For example, a full-screen monochrome image can be displayed, etc. After the second end displays the image, the first end can be notified, and the first end can drive the color analysis device to collect the color perception value of the image displayed on the display screen of the test terminal device. The collected color vision values may be provided to the first end. Afterwards, the first end may send the first RGB value of the next point to the second end, and repeat the above process until specific color perception values are collected for each point in the LUT space.

其中,在具体测试之前,可以测试终端设备设置为某种色彩模式,第二端启动后,可以利用系统提供的接口函数等,从测试终端设备中读取到该色彩模式的标识信息,并提供给第一端,这样,第一端可以获知具体测试终端设备中的当前色彩模式。后续生成LUT表后,可以记录该色彩模式与LUT表之间的对应关系,后续在具体终端设备中使用该色彩模式时,可以利用该LUT表进行色彩校正。另外,还可以将测试终端设备切换到其他色彩模式后,重新执行测试流程,以生成其他色彩模式的LUT表。还可以选择其他机型的测试终端设备,分别在各种不同的色彩模式下进行测试,得到更多的LUT表。Among them, before the specific test, the test terminal device can be set to a certain color mode. After the second terminal is started, the interface function provided by the system can be used to read the identification information of the color mode from the test terminal device, and provide To the first end, in this way, the first end can learn the current color mode in the specific test terminal device. After the LUT table is subsequently generated, the corresponding relationship between the color mode and the LUT table can be recorded, and when the color mode is used in a specific terminal device, the LUT table can be used for color correction. In addition, it is also possible to re-execute the test process after switching the test terminal device to another color mode, so as to generate LUT tables of other color modes. You can also choose other types of test terminal equipment to test in various color modes to get more LUT tables.

其中,色彩分析设备具体采集到的色觉数值通常可以是xyY数值。也即,通过色度图中的坐标xy表示的色度信息,以及通过Y表示的亮度信息。在优选的实施方式下,为了便于后续基于色觉数值对RGB数值进行调整,在通过色彩分析设置采集到上述各个第一RGB在测试终端设备的第二色域下呈现出的xyY数值之后,还可以将该xyY数值转换到XYZ色彩体系下的XYZ数值。这些XYZ数值可以作为LUT空间中的每个点在测试终端设备的第二色域分别呈现出的色觉的测试值。Wherein, the color vision value specifically collected by the color analysis device may generally be an xyY value. That is, chromaticity information represented by coordinate xy in the chromaticity diagram, and luminance information represented by Y. In a preferred embodiment, in order to facilitate the subsequent adjustment of the RGB value based on the color vision value, after collecting the xyY values of the above-mentioned first RGB in the second color gamut of the test terminal device through the color analysis settings, you can also Convert the xyY value to the XYZ value in the XYZ color system. These XYZ values can be used as the test values of the color perception presented by each point in the LUT space in the second color gamut of the test terminal device.

S303:确定所述第一RGB数值在第一色域下所呈现的色觉数值,并根据该色觉数值确定目标值。S303: Determine the color vision value represented by the first RGB value in the first color gamut, and determine a target value according to the color vision value.

除了可以确定出LUT空间中的每个点在测试终端设备的第二色域分别呈现出的色觉的测试值,还可以确定出这些点在第一色域下的色觉数值作为目标值。也即,后续在对RGB数值进行迭代调整过程中,就是以该第一色域下的色觉数值为目标进行调整。In addition to determining the test value of the color vision of each point in the LUT space in the second color gamut of the test terminal device, the color vision value of these points in the first color gamut can also be determined as the target value. That is to say, in the subsequent iterative adjustment process of the RGB value, the color vision value under the first color gamut is targeted for adjustment.

其中,如前文所述,在已知色域情况下,可以从RGB数值转换得到xy数值,但是无法直接转换得到Y分量数值。为此,在具体实现时,本申请实施例可以将色彩分析设备采集到的亮度数值,作为Y分量数值。具体的,对于具体某个点,将其第一RGB数值发送给测试终端设备后并进行展示后,色彩分析设备可以采集到该第一RGB数值在第二色域中呈现出的色觉的xyY数值,此时,可以将该采集到的Y分量的数值,作为该点的第一RGB数值在第一色域中的xyY数值中的Y分量数值。Among them, as mentioned above, in the case of a known color gamut, the xy value can be converted from the RGB value, but the Y component value cannot be directly converted. For this reason, during specific implementation, the embodiment of the present application may use the brightness value collected by the color analysis device as the value of the Y component. Specifically, for a specific point, after sending its first RGB value to the test terminal device and displaying it, the color analysis device can collect the xyY value of the color vision presented by the first RGB value in the second color gamut , at this time, the value of the collected Y component can be used as the value of the Y component in the xyY value of the first RGB value of the point in the first color gamut.

也就是说,在本申请实施例中,第一色域是已知的(例如,默认大部分视频都是基于Rec.709色域进行的调色,则可以将Rec.709色域作为第一色域),针对LUT空间中各个点的第一RGB数值,可以基于该第一色域确定出在标准颜色空间中xy分量上的数值。然后,再将各个点在测试终端设备上展示过程中采集到的亮度数值作为Y分量数值,即可得到第一RGB数值在第一色域中的xyY数值。在优选的实施方式下,同样可以将该xyY数值转换为XYZ数值,并将该数值作为色觉的目标值。That is to say, in this embodiment of the application, the first color gamut is known (for example, by default, most videos are color-graded based on the Rec.709 color gamut, then the Rec.709 color gamut can be used as the first color gamut), for the first RGB value of each point in the LUT space, the value on the xy component in the standard color space can be determined based on the first color gamut. Then, the luminance value collected during the displaying process of each point on the test terminal device is used as the Y component value to obtain the xyY value of the first RGB value in the first color gamut. In a preferred embodiment, the xyY value can also be converted into an XYZ value, and this value can be used as the target value of color vision.

至此,针对LUT空间中的每个点,可以分别得到色觉的目标值,以及在第二色域中展示过程中呈现出色觉的测试值。So far, for each point in the LUT space, the target value of color vision and the test value of color vision presented during the display process in the second color gamut can be obtained respectively.

S304:以点为单位,根据所述测试值与目标值之间的偏差量,分别启动对RGB数值的多轮迭代调整,其中,在每一轮迭代中调整RGB数值后,对调整后的RGB数值在所述第二色域展示时呈现的色觉数值进行估算,并确定色觉数值的估算值与所述目标值之间的偏差情况,直到将RGB调整为第二RGB数值后,得到的色觉数值的估算值与所述目标值的偏差量小于目标阈值时,将所述第一RGB与所述第二RGB之间的对应关系保存在所述LUT表中。S304: In units of points, according to the deviation between the test value and the target value, start multiple rounds of iterative adjustments to the RGB values, wherein, after adjusting the RGB values in each round of iterations, adjust the adjusted RGB values Estimate the color vision value presented when the value is displayed in the second color gamut, and determine the deviation between the estimated value of the color vision value and the target value, until the RGB is adjusted to the second RGB value, the obtained color vision value When the deviation between the estimated value of and the target value is smaller than the target threshold, the corresponding relationship between the first RGB and the second RGB is stored in the LUT table.

在得到多个点对应的色觉数值的测试值以及目标值之后,就可以分别针对每个目标点,通过多轮迭代调整RGB数值,直到调整后的RGB数值在第二色域中的色觉数值足够接近前述目标值。其中,在每一轮迭代过程中,都可以首先对RGB数值进行调整,然后确定出调整后的RGB数值在第二色域中的色觉数值,并与目标值进行比对后,进入下一轮迭代。After obtaining the test values and target values of the color vision values corresponding to multiple points, the RGB values can be adjusted for each target point through multiple rounds of iterations until the adjusted RGB values have sufficient color vision values in the second color gamut close to the aforementioned target value. Among them, in each round of iteration process, the RGB value can be adjusted first, and then the color vision value of the adjusted RGB value in the second color gamut can be determined, and compared with the target value, enter the next round iterate.

其中,关于调整后的RGB数值在第二色域中的色觉数值,由于并不能直接通过公式转换的方式进行计算,因此,本申请实施例还提供了对色觉数值进行估算的方案。具体的,由于本申请实施例能够获取到LUT空间中多个点分别在第二色域中的色觉数值的测试值,因此,可以首先从所述LUT空间中的多个点中,确定位于所述调整后的RGB数值周围的多个参考点。之后,可以根据所述色觉分析设备针对所述多个参考点分别采集的在所述第二色域展示时呈现的色觉数值,对所述调整后的RGB数值在所述第二色域展示时呈现的色觉数值进行估算。也就是说,虽然不能直接根据一个RGB数值转换得到在第二色域中的XYZ数值,但是,由于已知该RGB数值周围的其他多个RGB数值在该第二色域中的XYZ数值,因此,可以将这些已知的XYZ数值作为参考,估算出该RGB数值在第二色域中的XYZ数值。Wherein, the color vision value of the adjusted RGB value in the second color gamut cannot be directly calculated through formula conversion, therefore, the embodiment of the present application also provides a scheme for estimating the color vision value. Specifically, since the embodiment of the present application can obtain the test values of the color perception values of multiple points in the LUT space in the second color gamut respectively, it can first be determined from the multiple points in the LUT space that the Multiple reference points around the adjusted RGB values described above. Afterwards, according to the color vision values respectively collected by the color vision analysis device for the plurality of reference points when displayed in the second color gamut, the adjusted RGB values may be displayed when displayed in the second color gamut. The presented color vision values were estimated. That is to say, although the XYZ value in the second color gamut cannot be directly converted according to an RGB value, since the XYZ values in the second color gamut of other RGB values around the RGB value are known, , these known XYZ values can be used as a reference to estimate the XYZ value of the RGB value in the second color gamut.

例如,假设某一轮迭代过程中,调整后的RGB数值对应图5中的C点,此时,可以在预先建立的LUT空间中,找到该C点周围的八个点C000、C001、C010、C011、C100、C101、C110、C111作为该C点的参考点。由于已经获取到了上述八个参考点的RGB数值在测试终端设备的第二色域下展示时的XYZ数值,因此,进而可以基于这些参考点在第二色域下展示时的XYZ数值,估算出C点在第二色域下展示时的XYZ数值。具体估算时,可以采用三线性插值等算法进行估算。其中,三线性插值(trilinear interpolation)主要是用于在一个3D的立方体中,通过给定顶点的数值,计算立方体中其他点的数值的线性插值方法,关于具体的公式这里不再详述。For example, assuming that in a certain round of iteration, the adjusted RGB value corresponds to point C in Figure 5, at this time, in the pre-established LUT space, eight points C 000 , C 001 , C 010 , C 011 , C 100 , C 101 , C 110 , and C 111 are used as reference points of the C point. Since the XYZ values of the RGB values of the above eight reference points displayed in the second color gamut of the test terminal device have been obtained, it can be further estimated based on the XYZ values of these reference points displayed in the second color gamut The XYZ values of point C displayed in the second color gamut. For specific estimation, algorithms such as trilinear interpolation can be used for estimation. Among them, trilinear interpolation (trilinear interpolation) is mainly used in a 3D cube, through the value of a given vertex, the linear interpolation method to calculate the value of other points in the cube, and the specific formula will not be described in detail here.

而在每一轮迭代中调整RGB数值时,如前文所述,在优选的实施方式下,可以根据上一轮RGB调整后估算出的XYZ数值与所述目标值对应的XYZ数值之间的偏差情况,确定偏差量最大的XYZ分量,然后根据XYZ各分量分别对RGB各分量的影响情况,确定所述偏差量最大的XYZ分量对应的RGB分量,并对该RGB分量进行调整,其他RGB分量保持不变。也就是说,每一轮迭代过程中,可以仅对RGB的其中一个分量进行调整,其他数值不变,具体调整哪个RGB分量,可以根据上一轮估算出XYZ数值与目标值之间的最大偏差分量来进行确定。例如,在某一轮迭代中,发现估算出XYZ数值与目标值之间,在X分量上的偏差最大,则在此轮迭代中,可以对RGB数值的R分量进行调整,GB分量的数值保持不变。在根据调整后的RGB数值重新估算出在第二色域中的XYZ数值后,重新与目标值进行比对,并进行下一轮迭代。在下一轮迭代中,如果估算出的XYZ数值与目标值之间仍然在X分量上的偏差最大,则可以继续对R数值进行调整,如果Y分量上的偏差最大,则可以对G数值进行调整,等等。When adjusting the RGB value in each round of iteration, as mentioned above, in a preferred embodiment, the deviation between the XYZ value estimated after the last round of RGB adjustment and the XYZ value corresponding to the target value can be used situation, determine the XYZ component with the largest deviation, and then determine the RGB component corresponding to the XYZ component with the largest deviation according to the influence of each XYZ component on each RGB component, and adjust the RGB component, and keep the other RGB components. constant. That is to say, in each round of iteration, only one of the RGB components can be adjusted, and the other values remain unchanged. Specifically, which RGB component is adjusted, the maximum deviation between the XYZ value and the target value can be estimated based on the previous round. quantity to determine. For example, in a certain round of iteration, it is found that the deviation between the estimated XYZ value and the target value is the largest on the X component, then in this round of iteration, the R component of the RGB value can be adjusted, and the value of the GB component remains constant. After re-estimating the XYZ values in the second color gamut according to the adjusted RGB values, re-comparison with the target value, and proceed to the next round of iteration. In the next iteration, if the estimated XYZ value still has the largest deviation on the X component from the target value, the R value can continue to be adjusted, and if the Y component has the largest deviation, the G value can be adjusted ,and many more.

通过上述方式,针对LUT空间中的每个点,都可以得到第一RGB数值与第二RGB数值之间的对应关系,通过保存这些对应关系可以生成针对当前第二色域的LUT表。之后,还可以通过测试应用程序的第一端,将当前测试终端设备的机型信息、色彩模式信息以及所述LUT表提交到服务端进行保存。之后,还可以将当前测试终端设备切换到其他色彩模式,重复上述过程,生成针对其他色域的LUT表。另外,还可以针对其他测试终端设备中包括的多个色彩模式分别进行测试,生成LUT表,等等。这些LUT表都可以上传到服务端,并提供各个LUT表分别对应的终端设备机型、色彩模式标识等信息。之后,服务端可以将所述LUT表下发到对应机型的终端设备客户端(这里所谓的服务端与客户端具体可以是某视频平台提供的应用程序服务端及客户端,等等)。这样,客户端在具体需要展示某目标图像时,就可以确定出所在终端设备的当前色彩模式,以及该色彩模式对应的色域等信息。在确定出目标对象中具体像素点上的原始RGB数值后,根据所述LUT表将所述目标对象的原始RGB数值映射为目标RGB数值后再进行展示,以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。Through the above method, for each point in the LUT space, the corresponding relationship between the first RGB value and the second RGB value can be obtained, and by saving these corresponding relationships, a LUT table for the current second color gamut can be generated. Afterwards, the model information, color mode information and the LUT table of the currently tested terminal device may also be submitted to the server for storage through the first terminal of the test application program. Afterwards, the current test terminal device can also be switched to other color modes, and the above process can be repeated to generate LUT tables for other color gamuts. In addition, a plurality of color modes included in other test terminal devices can also be tested separately, a LUT table can be generated, and so on. All these LUT tables can be uploaded to the server, and information such as terminal equipment models and color mode identifications corresponding to each LUT table can be provided. Afterwards, the server can send the LUT table to the terminal device client of the corresponding model (the so-called server and client here can specifically be the application server and client provided by a certain video platform, etc.). In this way, when the client specifically needs to display a certain target image, it can determine the current color mode of the terminal device and the color gamut corresponding to the color mode. After determining the original RGB value on a specific pixel in the target object, the original RGB value of the target object is mapped to the target RGB value according to the LUT table and then displayed, so that the target object is displayed on the target object. The similarity between the color vision effect presented in the second color gamut corresponding to the color mode and the standard color vision effect presented in the first color gamut satisfies the target condition.

总之,在本申请实施例中,通过建立LUT空间,并将LUT空间中各个点的第一RGB数值分别发送到测试终端设备进行展示,再通过色彩分析设备采集色觉数值,该第一RGB数值在第二色域下展示时所呈现视觉的测试值。另外可以获取第一RGB数值在第一色域下展示时所呈现视觉的目标值。之后,可以以点为单位,根据所述测试值与目标值之间的偏差量,分别启动对RGB数值的多轮迭代调整,在每一轮调整中,都可以对调整后的RGB数值在所述第二色域展示时呈现的色觉数值进行估算,并确定色觉数值的估算值与所述目标值之间的偏差情况,直到将RGB调整为第二RGB数值后,得到的色觉数值的估算值与所述目标值的偏差量小于目标阈值时,即可将所述第一RGB与所述第二RGB之间的对应关系保存在所述LUT表中。通过这种方式,可以实现LUT表的自动生成。另外,由于可以通过估算的方式确定调整后的RGB数值在所述第二色域展示时呈现的色觉数值,因此,可以降低对色彩分析设备的依赖,便于提升效率。In short, in the embodiment of this application, by establishing the LUT space, sending the first RGB value of each point in the LUT space to the test terminal device for display, and then collecting the color vision value through the color analysis device, the first RGB value is in the The visual test value presented when displayed in the second color gamut. In addition, the visual target value presented when the first RGB value is displayed in the first color gamut can be obtained. Afterwards, multiple rounds of iterative adjustments to the RGB values can be started respectively in units of points according to the deviation between the test value and the target value. In each round of adjustment, the adjusted RGB values can be adjusted at the Estimate the color vision value presented when the second color gamut is displayed, and determine the deviation between the estimated value of the color vision value and the target value, until the RGB is adjusted to the second RGB value, and the estimated value of the color vision value is obtained When the deviation from the target value is smaller than the target threshold, the corresponding relationship between the first RGB and the second RGB can be stored in the LUT table. In this way, automatic generation of the LUT table can be realized. In addition, since the adjusted RGB value can be determined by estimation, the color vision value presented when the second color gamut is displayed, therefore, the dependence on the color analysis equipment can be reduced, and the efficiency can be improved.

另外,可以以XYZ数值作为色觉数值,在每一轮迭代过程中,可以根据XYZ数值之间的偏差情况确定出偏差量最大的XYZ分量,然后根据XYZ各分量对RGB各分量影响程度的不同,对RGB的其中一分量进行调整,其他RGB分量则可以不做调整,以此避免将RGB调整到错误的数值上。In addition, the XYZ value can be used as the color vision value. In each round of iteration, the XYZ component with the largest deviation can be determined according to the deviation between the XYZ values, and then according to the degree of influence of the XYZ components on the RGB components, One of the components of RGB is adjusted, and the other RGB components may not be adjusted, so as to avoid adjusting RGB to a wrong value.

实施例二Embodiment two

该实施例二是针对LUT表建立之后的应用过程,从具体应用呈现客户端的角度,提供了一种对象展示方法,参见图6,该方法具体可以包括:The second embodiment is aimed at the application process after the establishment of the LUT table, and provides an object display method from the perspective of a specific application presentation client. Referring to FIG. 6, the method may specifically include:

S601:获取与当前终端设备关联的配置文件,所述配置文件为多份,分别与所述终端设备中支持的多种色彩模式对应,其中包括颜色查找表LUT,所述LUT表用于保存多个点的第一RGB数值与第二RGB数值之间的对应关系,其中,所述第二RGB数值在第二色域下所呈现出的色觉效果,与所述第一RGB数值在预置的第一色域下所呈现出的标准色觉效果之间的相似度满足目标条件。S601: Obtain a configuration file associated with the current terminal device, the configuration file is multiple copies, corresponding to multiple color modes supported by the terminal device, including a color lookup table LUT, the LUT table is used to save multiple The corresponding relationship between the first RGB value and the second RGB value of points, wherein, the color vision effect presented by the second RGB value in the second color gamut is the same as that of the first RGB value in the preset The similarity between the standard color vision effects presented in the first color gamut satisfies the target condition.

可以由服务端根据具体终端设备的机型信息,以配置文件的形式,将同机型关联的各个LUT表下发给客户端。由于该LUT表可能被高频使用,以此,客户端则可以将配置文件保存在终端设备本地,以使得具体需要对某展示对象展示时,可以使用具体的LUT表进行色彩校正。The server can send each LUT table associated with the same model to the client in the form of a configuration file according to the model information of the specific terminal device. Since the LUT table may be frequently used, the client can save the configuration file locally on the terminal device, so that when a specific display object needs to be displayed, the specific LUT table can be used for color correction.

S602:在需要对目标对象进行展示时,确定所述目标对象对应的原始RGB数值。S602: When the target object needs to be displayed, determine the original RGB value corresponding to the target object.

目标对象具体可以是待播放的视频、图片、照片等等。具体实现时,如前文所述,由于具体的视频文件等可能是通过YUV方式进行编码,因此,可以从同一帧图像的码流中,解析出各个像素点对应的YUV数值,之后,可以根据YUV与RGB之间的转换公式,计算出各个像素点对应的RGB数值。该RGB数值就属于从目标对象中解析获得的原始RGB数值。如果直接按照该RGB数值进行展示,则呈现出的视觉效果可能会偏离预期。Specifically, the target object may be a video, a picture, a photo, etc. to be played. In the specific implementation, as mentioned above, since specific video files may be encoded by YUV, the YUV value corresponding to each pixel can be parsed from the code stream of the same frame of image, and then, according to the YUV The conversion formula between RGB and calculates the RGB value corresponding to each pixel. The RGB value belongs to the original RGB value parsed from the target object. If the RGB value is displayed directly, the presented visual effect may deviate from expectations.

S603:确定所述当前终端设备所处的目标色彩模式,并利用该目标色彩模式对应的目标LUT表,将所述原始RGB数值映射为目标RGB数值后进行展示,以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在所述第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。S603: Determine the target color mode of the current terminal device, and use the target LUT table corresponding to the target color mode to map the original RGB value to the target RGB value and display it, so that the target object is displayed in the target color mode. The similarity between the color vision effect presented in the second color gamut corresponding to the target color mode and the standard color vision effect presented in the first color gamut satisfies the target condition.

在本申请实施例中,客户端在获取到具体像素点的原始RGB数值后,可以确定所述当前终端设备所处的目标色彩模式,并利用该目标色彩模式对应的目标LUT表,将所述原始RGB数值映射为目标RGB数值后进行展示,这样,可以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在所述第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。In this embodiment of the application, after the client acquires the original RGB value of a specific pixel, it can determine the target color mode of the current terminal device, and use the target LUT table corresponding to the target color mode to convert the The original RGB value is mapped to the target RGB value and then displayed. In this way, the color vision effect presented by the target object in the second color gamut corresponding to the target color mode can be different from that in the first color gamut. The similarity between the presented standard color vision effects satisfies the target condition.

这里需要说明的是,由于LUT表中各个点是按照一定的步长(例如,前述例子中的N=6)进行设置的,因此,可能并不是所有RGB(256*256*256)数值都能够直接在LUT表中被找到。但此时,客户端可以利用LUT表中所具有的各个点,根据一定的算法,将任意的RGB数值映射到新的RGB数值上,并使得新的RGB数值在第二色域下所呈现出的色觉效果,与映射前的RGB数值在所述第一色域下所呈现出的标准色觉效果足够相似。What needs to be explained here is that since each point in the LUT table is set according to a certain step size (for example, N=6 in the preceding example), it may not be possible for all RGB (256*256*256) values to be are found directly in the LUT table. But at this time, the client can use each point in the LUT table to map any RGB value to a new RGB value according to a certain algorithm, and make the new RGB value appear in the second color gamut. The color vision effect is sufficiently similar to the standard color vision effect presented by the RGB value before mapping under the first color gamut.

通过该实施例二,由于可以预先获取到终端设备的多种色彩模式对应的LUT表,这种LUT表中保存有多个点的第一RGB数值与第二RGB数值之间的对应关系,并且,第二RGB数值在第二色域下所呈现出的色觉效果,与第一RGB数值在预置的第一色域下所呈现出的标准色觉效果之间的相似度满足目标条件。这样,在需要对目标对象进行展示时,在确定出原始RGB数值后,可以确定所述当前终端设备所处的目标色彩模式,并利用该目标色彩模式对应的目标LUT表,将所述原始RGB数值映射为目标RGB数值后进行展示,从而可以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在所述第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。通过这种方式,可以使得终端设备中展示目标对象时,即使终端设备中使用的色域与目标对象调色时所基于的色域不同,也可以获得符合调色预期的色觉效果。Through the second embodiment, because the LUT table corresponding to multiple color modes of the terminal device can be obtained in advance, the corresponding relationship between the first RGB value and the second RGB value of multiple points is stored in this LUT table, and , the similarity between the color vision effect presented by the second RGB value in the second color gamut and the standard color vision effect presented by the first RGB value in the preset first color gamut satisfies the target condition. In this way, when the target object needs to be displayed, after the original RGB value is determined, the target color mode of the current terminal device can be determined, and the target LUT table corresponding to the target color mode can be used to convert the original RGB The numerical value is mapped to the target RGB value and then displayed, so that the color vision effect presented by the target object in the second color gamut corresponding to the target color mode can be compared with the color vision effect presented in the first color gamut. The similarity between the standard color vision effects satisfies the target condition. In this way, when the target object is displayed on the terminal device, even if the color gamut used in the terminal device is different from the color gamut on which the target object is toned, the color perception effect that meets the grading expectation can be obtained.

关于实施例二中的未详述部分,可以参见实施例一以及本申请说明书其他部分的记载,这里不再赘述。For the parts not described in detail in the second embodiment, reference may be made to the descriptions in the first embodiment and other parts of the specification of this application, and details are not repeated here.

需要说明的是,本申请实施例中可能会涉及到对用户数据的使用,在实际应用中,可以在符合所在国的适用法律法规要求的情况下(例如,用户明确同意,对用户切实通知,等),在适用法律法规允许的范围内在本文描述的方案中使用用户特定的个人数据。It should be noted that the embodiment of this application may involve the use of user data. In practical applications, it can be in compliance with the applicable laws and regulations of the country where it is located (for example, the user expressly agrees, the user is actually notified, etc.), use user-specific personal data in the scenarios described herein to the extent permitted by applicable laws and regulations.

与实施例一相对应,本申请实施例还提供了一种生成颜色查找表的装置,参见图7,该装置可以包括:Corresponding to Embodiment 1, the embodiment of the present application also provides a device for generating a color lookup table, see FIG. 7, the device may include:

第一RGB数值确定单元701,用于获取目标颜色查找表LUT空间中的多个点在预置的第一色域下的第一RGB数值;The first RGB value determining unit 701 is used to obtain the first RGB value of multiple points in the target color lookup table LUT space under the preset first color gamut;

测试值确定单元702,用于以点为单位,分别将所述第一RGB数值提供给测试终端设备,以便在所述测试终端设备中基于第二色域展示所述第一RGB数值对应的图像,并通过色彩分析设备对所述测试终端设备呈现的色觉数值进行采集,以便确定所述第一RGB数值在第二色域下所呈现视觉的测试值;The test value determination unit 702 is configured to provide the first RGB value to the test terminal device in units of dots, so that the image corresponding to the first RGB value is displayed in the test terminal device based on the second color gamut , and collect the color vision value presented by the test terminal device through the color analysis device, so as to determine the test value of the vision presented by the first RGB value in the second color gamut;

目标值确定单元703,用于确定所述第一RGB数值在第一色域下所呈现的色觉数值,并根据该色觉数值确定目标值;A target value determining unit 703, configured to determine the color vision value presented by the first RGB value in the first color gamut, and determine the target value according to the color vision value;

迭代调整单元704,用于以点为单位,根据所述测试值与目标值之间的偏差量,分别启动对RGB数值的多轮迭代调整,其中,在每一轮迭代中调整RGB数值后,对调整后的RGB数值在所述第二色域展示时呈现的色觉数值进行估算,并确定色觉数值的估算值与所述目标值之间的偏差情况,直到将RGB调整为第二RGB数值后,得到的色觉数值的估算值与所述目标值的偏差量小于目标阈值时,将所述第一RGB与所述第二RGB之间的对应关系保存在所述LUT表中。The iterative adjustment unit 704 is configured to start multiple rounds of iterative adjustments to the RGB values in units of points according to the deviation between the test value and the target value, wherein, after adjusting the RGB values in each round of iteration, Estimate the color vision value presented when the adjusted RGB value is displayed in the second color gamut, and determine the deviation between the estimated value of the color vision value and the target value, until RGB is adjusted to the second RGB value and saving the correspondence between the first RGB and the second RGB in the LUT table when the deviation between the obtained estimated color vision value and the target value is smaller than the target threshold.

具体的,所述目标值确定单元具体可以用于:Specifically, the target value determination unit can be specifically used for:

根据所述第一RGB数值在第一色域下的色度值,以及在所述测试终端设备按照该第一RGB数值进行展示过程中从所述测试终端设备中采集到的亮度值,确定所述第一RGB数值在所述第一色域下的色觉数值,并根据该色觉数值确定色觉数值的目标值。According to the chromaticity value of the first RGB value in the first color gamut, and the brightness value collected from the test terminal device during the display process of the test terminal device according to the first RGB value, determine the The color perception value of the first RGB value in the first color gamut, and determine the target value of the color perception value according to the color perception value.

其中,所述色彩分析设备采集到的色觉数值包括xyY数值,其中,xy分量代表色度,Y分量代表亮度;Wherein, the color perception value collected by the color analysis device includes an xyY value, wherein the xy component represents chroma, and the Y component represents brightness;

此时,所述测试值确定单元具体可以用于:At this point, the test value determination unit can specifically be used for:

将所述采集到的xyY数值转换到XYZ色彩体系,得到XYZ数值,将该XYZ数值确定为所述色觉数值的测试值;其中,所述X、Z分量代表色度,Y分量代表亮度及色度;Converting the collected xyY value to the XYZ color system to obtain the XYZ value, and determining the XYZ value as the test value of the color vision value; wherein, the X and Z components represent chromaticity, and the Y component represents brightness and color Spend;

所述目标值确定单元具体可以用于:The target value determination unit can specifically be used for:

根据所述第一RGB数值在所述第一色域下的xy色度值,以及所述色彩分析设备从所述测试终端设备显示屏采集到的亮度信息,得到所述目标点在所述第一色域下的色觉xyY数值,并将该xyY数值转化到XYZ色彩体系,得到XYZ数值,将该XYZ数值确定为所述色觉数值的目标值。According to the xy chromaticity value of the first RGB value in the first color gamut, and the brightness information collected by the color analysis device from the display screen of the test terminal device, it is obtained that the target point is in the first color gamut. The xyY value of color vision in a color gamut, and converting the xyY value into the XYZ color system to obtain the XYZ value, and determining the XYZ value as the target value of the color vision value.

其中,所述迭代调整单元在进行RGB数值调整时,具体可以用于:Wherein, when the iterative adjustment unit performs RGB value adjustment, it can be specifically used for:

在每一轮迭代中调整RGB数值时,根据上一轮RGB调整后估算出的XYZ数值与所述目标值对应的XYZ数值之间的偏差情况,确定偏差量最大的XYZ分量;When adjusting the RGB value in each round of iteration, according to the deviation between the estimated XYZ value after the last round of RGB adjustment and the XYZ value corresponding to the target value, determine the XYZ component with the largest deviation;

根据XYZ各分量分别对RGB各分量的影响情况,确定所述偏差量最大的XYZ分量对应的RGB分量,并对该RGB分量进行调整,其他RGB分量保持不变。According to the influence of each XYZ component on each RGB component, determine the RGB component corresponding to the XYZ component with the largest deviation, and adjust the RGB component, and keep the other RGB components unchanged.

另外,所述迭代调整单元在具体进行色觉数值估算时,具体可以用于:In addition, when the iterative adjustment unit specifically estimates the color vision value, it can be specifically used for:

从所述LUT空间中的多个点中,确定位于所述调整后的RGB数值周围的多个参考点;determining a plurality of reference points located around the adjusted RGB values from a plurality of points in the LUT space;

根据所述色觉分析设备针对所述多个参考点分别采集的在所述第二色域展示时呈现的色觉数值,对所述调整后的RGB数值在所述第二色域展示时呈现的色觉数值进行估算。According to the color vision values displayed in the second color gamut respectively collected by the color vision analysis device for the plurality of reference points, the color vision displayed in the second color gamut for the adjusted RGB values Values are estimated.

另外,该装置还可以包括:Additionally, the device may include:

上传单元,用于将所述测试终端设备的机型信息、色彩模式信息以及所述LUT表提交到服务端进行保存,以便将所述LUT表下发到对应机型的终端设备客户端,以便所述客户端在所述色彩模式下展示目标对象时,根据所述LUT表将所述目标对象的原始RGB数值映射为目标RGB数值后再进行展示,以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在所述第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。An uploading unit, configured to submit the model information, color mode information, and the LUT table of the test terminal device to the server for storage, so as to send the LUT table to the terminal device client of the corresponding model, so that When the client displays the target object in the color mode, the original RGB value of the target object is mapped to the target RGB value according to the LUT table before displaying, so that the target object is displayed in the target color The similarity between the color vision effect presented in the second color gamut corresponding to the mode and the standard color vision effect presented in the first color gamut satisfies the target condition.

与实施例二相对应,本申请实施例还提供了一种对象展示装置,参见图8,该装置可以包括:Corresponding to Embodiment 2, this embodiment of the present application also provides an object display device, see Figure 8, the device may include:

配置文件获取单元801,用于获取与当前终端设备关联的配置文件,所述配置文件为多份,分别与所述终端设备中支持的多种色彩模式对应,其中包括颜色查找表LUT,所述LUT表用于保存多个点的第一RGB数值与第二RGB数值之间的对应关系,其中,所述第二RGB数值在第二色域下所呈现出的色觉效果,与所述第一RGB数值在预置的第一色域下所呈现出的标准色觉效果之间的相似度满足目标条件;The configuration file obtaining unit 801 is configured to obtain a configuration file associated with the current terminal device, the configuration file is multiple copies, corresponding to multiple color modes supported in the terminal device, including a color lookup table LUT, the The LUT table is used to save the correspondence between the first RGB value and the second RGB value of multiple points, wherein the color perception effect presented by the second RGB value in the second color gamut is the same as that of the first RGB value. The similarity between the standard color vision effects presented by RGB values in the preset first color gamut meets the target condition;

原始RGB数值确定单元802,用于在需要对目标对象进行展示时,确定所述目标对象对应的原始RGB数值;The original RGB value determination unit 802 is used to determine the original RGB value corresponding to the target object when the target object needs to be displayed;

目标RGB数值映射单元803,用于确定所述当前终端设备所处的目标色彩模式,并利用该目标色彩模式对应的目标LUT表,将所述原始RGB数值映射为目标RGB数值后进行展示,以使得所述目标对象在所述目标色彩模式对应的第二色域下所呈现出的色觉效果,与在所述第一色域下所呈现出的标准色觉效果之间的相似度满足所述目标条件。The target RGB value mapping unit 803 is configured to determine the target color mode in which the current terminal device is located, and use the target LUT table corresponding to the target color mode to map the original RGB value into a target RGB value and then display it, so as to Make the similarity between the color vision effect presented by the target object under the second color gamut corresponding to the target color mode and the standard color vision effect presented under the first color gamut meet the target condition.

另外,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述方法实施例中任一项所述的方法的步骤。In addition, the embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in any one of the foregoing method embodiments are implemented.

以及一种电子设备,包括:and an electronic device comprising:

一个或多个处理器;以及one or more processors; and

与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行前述方法实施例中任一项所述的方法的步骤。A memory associated with the one or more processors, the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, perform any one of the foregoing method embodiments The steps of the method.

其中,图9示例性的展示出了其中一种电子设备的架构,例如,设备900可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理,飞行器等。Wherein, FIG. 9 exemplarily shows the architecture of one of the electronic devices. For example, the device 900 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, Personal digital assistants, aircraft and more.

参照图9,设备900可以包括以下一个或多个组件:处理组件902,存储器904,电源组件906,多媒体组件908,音频组件910,输入/输出(I/O)的接口912,传感器组件914,以及通信组件916。9, device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and communication component 916 .

处理组件902通常控制设备900的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件902可以包括一个或多个处理器920来执行指令,以完成本公开技术方案提供的方法的全部或部分步骤。此外,处理组件902可以包括一个或多个模块,便于处理组件902和其他组件之间的交互。例如,处理部件902可以包括多媒体模块,以方便多媒体组件908和处理组件902之间的交互。The processing component 902 generally controls the overall operations of the device 900, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the method provided by the technical solution of the present disclosure. Additionally, processing component 902 may include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902 .

存储器904被配置为存储各种类型的数据以支持在设备900的操作。这些数据的示例包括用于在设备900上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器904可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 904 is configured to store various types of data to support operations at the device 900 . Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and the like. The memory 904 can be implemented by any type of volatile or non-volatile memory device or their combination, such as 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), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件906为设备900的各种组件提供电力。电源组件906可以包括电源管理系统,一个或多个电源,及其他与为设备900生成、管理和分配电力相关联的组件。The power supply component 906 provides power to various components of the device 900 . Power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 900 .

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

音频组件910被配置为输出和/或输入音频信号。例如,音频组件910包括一个麦克风(MIC),当设备900处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器904或经由通信组件916发送。在一些实施例中,音频组件910还包括一个扬声器,用于输出音频信号。The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a microphone (MIC) configured to receive external audio signals when the device 900 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 904 or sent via communication component 916 . In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

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

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

通信组件916被配置为便于设备900和其他设备之间有线或无线方式的通信。设备900可以接入基于通信标准的无线网络,如WiFi,或2G、3G、4G/LTE、5G等移动通信网络。在一个示例性实施例中,通信部件916经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件916还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 916 is configured to facilitate wired or wireless communications between device 900 and other devices. The device 900 can access wireless networks based on communication standards, such as WiFi, or mobile communication networks such as 2G, 3G, 4G/LTE, and 5G. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,设备900可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, device 900 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器904,上述指令可由设备900的处理器920执行以完成本公开技术方案提供的方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 904 including instructions, the above instructions can be executed by the processor 920 of the device 900 to complete the method provided by the technical solution of the present disclosure . For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的系统及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment. The systems and system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as 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 elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

以上对本申请所提供的对象展示、生成颜色查找表的方法及装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本申请的限制。The method and device for displaying objects and generating a color lookup table provided by this application have been introduced in detail above. In this paper, specific examples have been used to illustrate the principle and implementation of this application. The description of the above embodiments is only for help. Understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. To sum up, the contents of this specification should not be understood as limiting the application.

Claims (11)

1. A method of generating a color lookup table, comprising:
acquiring first RGB values respectively corresponding to a plurality of points in a target color look-up table (LUT) space;
respectively providing the first RGB values to test terminal equipment by taking points as units so as to display an image corresponding to the first RGB values in the test terminal equipment based on a second color gamut, and collecting color vision values displayed by the test terminal equipment through color analysis equipment so as to determine visual test values of the first RGB values in the second color gamut;
determining color vision numerical values presented by the first RGB numerical values in a first color gamut, and determining target values according to the color vision numerical values;
and respectively starting multiple rounds of iterative adjustment of the RGB values according to the deviation between the test value and the target value by taking the point as a unit, wherein after the RGB values are adjusted in each round of iteration, the color vision values displayed by the adjusted RGB values in the second color gamut display are estimated, the deviation condition between the estimated value of the color vision values and the target value is determined, and the corresponding relation between the first RGB and the second RGB is stored in the LUT table until the deviation between the estimated value of the color vision values and the target value obtained after the RGB values are adjusted to the second RGB values is smaller than a target threshold value.
2. The method of claim 1,
said determining color vision values that said first RGB values exhibit in a first color gamut comprises:
determining the color vision numerical value of the first RGB numerical value in the first color gamut according to the chromatic value of the first RGB numerical value in the first color gamut and the brightness value collected from the test terminal equipment in the process of displaying the first RGB numerical value by the test terminal equipment according to the first RGB numerical value, and determining the target value of the color vision numerical value according to the color vision numerical value.
3. The method of claim 1,
the color vision numerical values collected by the color analysis equipment comprise xyz numerical values, wherein an xy component represents chroma, and a Y component represents brightness;
the determining the test value of the vision presented by the first RGB value in the second color gamut comprises:
converting the collected XYZ numerical value into an XYZ color system to obtain an XYZ numerical value, and determining the XYZ numerical value as a test value of the color vision numerical value; wherein, the X and Z components represent chroma, and the Y component represents brightness and chroma;
the determining the target value according to the color vision numerical value comprises:
and obtaining a color vision xyY value of the target point in the first color gamut according to the xy chromatic value of the first RGB value in the first color gamut and the brightness information collected by the color analysis device from the display screen of the test terminal device, converting the xyY value into an XYZ color system to obtain an XYZ value, and determining the XYZ value as the target value of the color vision value.
4. The method of claim 3,
when the RGB values are adjusted in each iteration, the XYZ component with the maximum deviation amount is determined according to the deviation condition between the estimated XYZ values after the previous round of RGB adjustment and the XYZ values corresponding to the target values;
and according to the influence of each XYZ component on each RGB component, determining the RGB component corresponding to the XYZ component with the maximum deviation amount, adjusting the RGB component, and keeping other RGB components unchanged.
5. The method of claim 1,
the estimating of the color vision numerical values presented by the adjusted RGB numerical values when displayed in the second color gamut includes:
determining, from a plurality of points in the LUT space, a plurality of reference points located around the adjusted RGB values;
and estimating the color vision numerical values presented by the adjusted RGB numerical values during the second color gamut display according to the color vision numerical values presented by the color vision analysis equipment during the second color gamut display and respectively acquired by the color vision analysis equipment aiming at the plurality of reference points.
6. The method of any of claims 1 to 5, further comprising:
and submitting the model information, the color mode information and the LUT table of the test terminal equipment to a server for storage so as to issue the LUT table to a terminal equipment client of a corresponding model, so that when the client displays a target object in the color mode, the original RGB numerical value of the target object is mapped into a target RGB numerical value according to the LUT table and then displayed, so that the similarity between the color vision effect of the target object in a second color gamut corresponding to the target color mode and the standard color vision effect displayed in the first color gamut meets the target condition.
7. An object display method, comprising:
acquiring a configuration file associated with current terminal equipment, wherein the configuration file is divided into a plurality of parts and respectively corresponds to a plurality of color modes supported in the terminal equipment, the configuration file comprises a color lookup table (LUT) which is used for storing a corresponding relation between a first RGB numerical value and a second RGB numerical value of a plurality of points, wherein the similarity between a color vision effect presented by the second RGB numerical value in a second color gamut and a standard color vision effect presented by the first RGB numerical value in a preset first color gamut meets a target condition;
when a target object needs to be displayed, determining an original RGB value corresponding to the target object;
and determining a target color mode of the current terminal equipment, and displaying the original RGB numerical value after mapping the original RGB numerical value into a target RGB numerical value by using a target LUT (look up table) corresponding to the target color mode, so that the similarity between the color vision effect of the target object in a second color gamut corresponding to the target color mode and the standard color vision effect in the first color gamut meets the target condition.
8. An apparatus for generating a color look-up table, comprising:
the first RGB numerical value determining unit is used for acquiring first RGB numerical values respectively corresponding to a plurality of points in the space of the target color lookup table LUT;
the test value determining unit is used for respectively providing the first RGB values to test terminal equipment by taking points as units so as to display an image corresponding to the first RGB values in the test terminal equipment based on a second color gamut, and collecting color vision values displayed by the test terminal equipment through color analysis equipment so as to determine visual test values displayed by the first RGB values in the second color gamut;
a target value determination unit configured to determine a color vision numerical value represented by the first RGB numerical value in the first color gamut, and determine a target value according to the color vision numerical value;
and the iteration adjusting unit is used for respectively starting multiple rounds of iteration adjustment on the RGB values according to the deviation amount between the test value and the target value by taking a point as a unit, estimating the color vision value displayed by the adjusted RGB value in the second color gamut display after the RGB value is adjusted in each round of iteration, and determining the deviation condition between the estimated value of the color vision value and the target value until the deviation amount between the estimated value of the color vision value and the target value obtained after the RGB value is adjusted to the second RGB value is smaller than a target threshold value, and storing the corresponding relation between the first RGB and the second RGB in the LUT table.
9. An object display apparatus, comprising:
a configuration file obtaining unit, configured to obtain a configuration file associated with a current terminal device, where the configuration file is multiple copies and corresponds to multiple color modes supported in the terminal device, where the configuration file includes a color lookup table LUT, and the LUT is configured to store a correspondence between a first RGB value and a second RGB value of a plurality of points, where a similarity between a color vision effect exhibited by the second RGB value in a second color gamut and a standard color vision effect exhibited by the first RGB value in a preset first color gamut satisfies a target condition;
the device comprises an original RGB numerical value determining unit, a target object display unit and a display unit, wherein the original RGB numerical value determining unit is used for determining an original RGB numerical value corresponding to a target object when the target object needs to be displayed;
and the target RGB numerical value mapping unit is used for determining a target color mode in which the current terminal equipment is positioned, mapping the original RGB numerical value into a target RGB numerical value by using a target LUT (look up table) corresponding to the target color mode, and then displaying the target RGB numerical value so as to enable the similarity between the color vision effect presented by the target object in a second color gamut corresponding to the target color mode and the standard color vision effect presented in the first color gamut to meet the target condition.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
11. An electronic device, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform the steps of the method of any of claims 1 to 7.
CN202210753681.3A 2022-06-29 2022-06-29 Object display method and device, and color lookup table generation method and device Pending CN115294945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210753681.3A CN115294945A (en) 2022-06-29 2022-06-29 Object display method and device, and color lookup table generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210753681.3A CN115294945A (en) 2022-06-29 2022-06-29 Object display method and device, and color lookup table generation method and device

Publications (1)

Publication Number Publication Date
CN115294945A true CN115294945A (en) 2022-11-04

Family

ID=83820080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210753681.3A Pending CN115294945A (en) 2022-06-29 2022-06-29 Object display method and device, and color lookup table generation method and device

Country Status (1)

Country Link
CN (1) CN115294945A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117612470A (en) * 2023-10-27 2024-02-27 神力视界(深圳)文化科技有限公司 Color lookup table generating method and color correcting method
CN118762627A (en) * 2024-06-11 2024-10-11 格兰菲智能科技股份有限公司 Lookup table generation method, device and computer equipment for color conversion

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07274019A (en) * 1994-03-28 1995-10-20 Toshiba Corp Image evaluation method and color image input device
US20040051888A1 (en) * 2002-06-06 2004-03-18 Imaging Solutions Ag Color management with reference gamut
JP2007274629A (en) * 2006-03-31 2007-10-18 Sharp Corp Image processing method, image processing device, imaging device, program and recoding medium
CN101188096A (en) * 2007-12-18 2008-05-28 上海广电集成电路有限公司 A LCD color domain mapping algorithm and color management system
CN106782428A (en) * 2016-12-27 2017-05-31 上海天马有机发光显示技术有限公司 A kind of colour gamut method of adjustment and colour gamut adjustment system of display device
KR20180062571A (en) * 2016-11-30 2018-06-11 엘지디스플레이 주식회사 Method and apparatus for generating compensation data of display panel
CN113034622A (en) * 2019-12-09 2021-06-25 深圳市万普拉斯科技有限公司 Three-dimensional lookup table generation method and device and display equipment
CN114067739A (en) * 2020-07-31 2022-02-18 北京小米移动软件有限公司 Color gamut mapping method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07274019A (en) * 1994-03-28 1995-10-20 Toshiba Corp Image evaluation method and color image input device
US20040051888A1 (en) * 2002-06-06 2004-03-18 Imaging Solutions Ag Color management with reference gamut
JP2007274629A (en) * 2006-03-31 2007-10-18 Sharp Corp Image processing method, image processing device, imaging device, program and recoding medium
CN101188096A (en) * 2007-12-18 2008-05-28 上海广电集成电路有限公司 A LCD color domain mapping algorithm and color management system
KR20180062571A (en) * 2016-11-30 2018-06-11 엘지디스플레이 주식회사 Method and apparatus for generating compensation data of display panel
CN106782428A (en) * 2016-12-27 2017-05-31 上海天马有机发光显示技术有限公司 A kind of colour gamut method of adjustment and colour gamut adjustment system of display device
CN113034622A (en) * 2019-12-09 2021-06-25 深圳市万普拉斯科技有限公司 Three-dimensional lookup table generation method and device and display equipment
CN114067739A (en) * 2020-07-31 2022-02-18 北京小米移动软件有限公司 Color gamut mapping method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117612470A (en) * 2023-10-27 2024-02-27 神力视界(深圳)文化科技有限公司 Color lookup table generating method and color correcting method
CN118762627A (en) * 2024-06-11 2024-10-11 格兰菲智能科技股份有限公司 Lookup table generation method, device and computer equipment for color conversion
CN118762627B (en) * 2024-06-11 2025-06-20 格兰菲智能科技股份有限公司 Lookup table generation method, device and computer equipment for color conversion

Similar Documents

Publication Publication Date Title
KR101766867B1 (en) Color adjustment method and device
KR100834638B1 (en) Image color adjustment method of image projector and its device
CN106782428B (en) A kind of the colour gamut method of adjustment and colour gamut adjustment system of display device
CN109274985B (en) Video transcoding method and device, computer equipment and storage medium
CN101198070A (en) Apparatus and method for improving image visibility
KR101303874B1 (en) Apparatus and method for gamut mapping
CN107343187A (en) Method of color gamut mapping of color, display terminal and computer-readable recording medium
CN115294945A (en) Object display method and device, and color lookup table generation method and device
CN108141576A (en) Display device and its control method
CN114067003A (en) Color gamut conversion method and device, electronic equipment and storage medium
CN111696479B (en) Color gamut adjusting method and device
CN115271848A (en) Product information flow display method, device and electronic device
CN107534763B (en) Adaptive Color Level Interpolation Method and Apparatus
CN112468793B (en) Color adjusting method and device of OLED screen and computer readable storage medium
CN116453459A (en) Screen display method and device, readable storage medium and electronic equipment
WO2021069282A1 (en) Perceptually improved color display in image sequences on physical displays
WO2021169810A1 (en) Video processing method, and server
Wen Color management for future video Systems
CN112188179B (en) Image thumbnail display method, image thumbnail display device, and storage medium
CN119905074A (en) Display control method, device, electronic equipment and medium
CN120032602A (en) Display method, display device, electronic equipment and storage medium
CN120343218A (en) Video processing method, device, electronic equipment and storage medium
CN120235789A (en) Color enhancement method, device, equipment and storage medium
CN118197196A (en) Screen correction method and device, electronic equipment, chip and medium
CN119007610A (en) Image display method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination