[go: up one dir, main page]

CN109614064A - Picture display method, picture display device and terminal equipment - Google Patents

Picture display method, picture display device and terminal equipment Download PDF

Info

Publication number
CN109614064A
CN109614064A CN201811523071.4A CN201811523071A CN109614064A CN 109614064 A CN109614064 A CN 109614064A CN 201811523071 A CN201811523071 A CN 201811523071A CN 109614064 A CN109614064 A CN 109614064A
Authority
CN
China
Prior art keywords
picture
color gamut
color
value
color space
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
CN201811523071.4A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811523071.4A priority Critical patent/CN109614064A/en
Publication of CN109614064A publication Critical patent/CN109614064A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

The application provides a picture display method, a picture display device and a terminal device, wherein the picture display method is applied to the terminal device, the terminal device can correctly restore colors in a picture with a color gamut standard of a first color gamut, and the picture display method comprises the following steps: acquiring a picture to be displayed with a color gamut standard as a second color gamut, wherein a color space corresponding to the second color gamut is covered by a color space corresponding to the first color gamut; converting the picture to be displayed into an intermediate picture with the color gamut standard of the first color gamut; and displaying the intermediate picture. The method and the device can solve the technical problem that the current terminal equipment cannot efficiently restore the colors in the pictures with different color gamut standards to a certain extent.

Description

一种图片显示方法、图片显示装置及终端设备A picture display method, picture display device and terminal equipment

技术领域technical field

本申请属于图片处理技术领域,尤其涉及一种图片显示方法、图片显示装置、终端设备及计算机可读存储介质。The present application belongs to the technical field of picture processing, and in particular, relates to a picture display method, a picture display device, a terminal device and a computer-readable storage medium.

背景技术Background technique

目前,市场上大部分的终端设备只能正确还原色域标准为某个特定色域的图片中的颜色,比如,一些终端设备只能正确还原色域标准为sRGB(standard Red Green Blue,标准红绿蓝)色域的图片中的颜色,而另一些终端设备只能正确还原Adobe RGB色域的图片中的颜色。At present, most terminal devices on the market can only correctly restore the color gamut in a picture whose color gamut standard is a certain color gamut. For example, some terminal devices can only correctly restore the color gamut standard to sRGB (standard Red Green Blue, standard red Green and blue) color gamut in the picture, while other terminal devices can only correctly restore the color in the Adobe RGB color gamut picture.

为了使终端设备能够正确还原不同色域标准的图片中的颜色,目前采用的常规做法是:将终端设备的显示系统设置为多种工作模式,比如,sRGB模式、DCI-P3模式以及AdobeRGB模式(当终端设备的显示系统被设置为某种工作模式时,该终端设备只能正确还原该工作模式对应的色域标准的图片中的颜色),通过用户手动更改终端设备显示系统的工作模式,使得该终端设备能够正确还原不同色域标准的图片中的颜色。In order to enable the terminal device to correctly restore the colors in pictures with different color gamut standards, the current conventional practice is to set the display system of the terminal device to various working modes, such as sRGB mode, DCI-P3 mode and AdobeRGB mode ( When the display system of the terminal device is set to a certain working mode, the terminal device can only correctly restore the color in the picture of the color gamut standard corresponding to the working mode), and the user manually changes the working mode of the terminal device display system, so that the The terminal device can correctly restore the colors in pictures of different color gamut standards.

由此可见,由于需要用户手动更改终端设备显示系统的工作模式,因此,目前的终端设备无法高效率地还原不同色域标准的图片中的颜色。It can be seen that, since the user is required to manually change the working mode of the display system of the terminal device, the current terminal device cannot efficiently restore the colors in pictures of different color gamut standards.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请提供了一种图片显示方法、图片显示装置、终端设备及计算机可读存储介质,可以解决目前的终端设备无法高效率地还原不同色域标准的图片中的颜色的技术问题。In view of this, the present application provides a picture display method, a picture display device, a terminal device and a computer-readable storage medium, which can solve the technical problem that the current terminal device cannot efficiently restore colors in pictures of different color gamut standards .

本申请第一方面提供了一种图片显示方法,应用于终端设备,该终端设备可正确还原色域标准为第一色域的图片中的颜色,上述图片显示方法包括:A first aspect of the present application provides a picture display method, which is applied to a terminal device. The terminal device can correctly restore the color in a picture whose color gamut standard is the first color gamut. The above picture display method includes:

获取色域标准为第二色域的待显示图片,其中,该第二色域对应的颜色空间被上述第一色域对应的颜色空间覆盖;obtaining a picture to be displayed whose color gamut standard is a second color gamut, wherein the color space corresponding to the second color gamut is covered by the color space corresponding to the first color gamut;

将上述待显示图片转换为色域标准为上述第一色域的中间图片;Converting the above-mentioned picture to be displayed into an intermediate picture whose color gamut standard is the above-mentioned first color gamut;

显示上述中间图片。Show the middle picture above.

本申请第二方面提供了一种图片显示装置,应用于终端设备,该终端设备可正确还原色域标准为第一色域的图片中的颜色,上述图片显示装置包括:A second aspect of the present application provides a picture display device, which is applied to a terminal device. The terminal device can correctly restore colors in a picture whose color gamut standard is the first color gamut. The picture display device includes:

图片获取模块,用于获取色域标准为第二色域的待显示图片,其中,该第二色域对应的颜色空间被上述第一色域对应的颜色空间覆盖;A picture acquisition module, configured to acquire a picture to be displayed whose color gamut standard is a second color gamut, wherein the color space corresponding to the second color gamut is covered by the color space corresponding to the first color gamut;

色域转换模块,用于将上述待显示图片转换为色域标准为上述第一色域的中间图片;a color gamut conversion module, configured to convert the above-mentioned picture to be displayed into an intermediate picture whose color gamut standard is the above-mentioned first color gamut;

图片显示模块,用于显示上述中间图片。The picture display module is used to display the above-mentioned intermediate picture.

本申请第三方面提供了一种终端设备,包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上述第一方面方法的步骤。A third aspect of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the method in the first aspect when the processor executes the computer program. A step of.

本申请第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上述第一方面方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

本申请第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面方法的步骤。A fifth aspect of the present application provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by one or more processors, the steps of the method of the first aspect are implemented.

由上可见,本申请提供了一种图片显示方法,该图片显示方法应用于终端设备,该终端设备可正确还原色域标准为第一色域的图片中的颜色。本申请提供的图片显示方法首先获取待显示图片,其中,该待显示图片的色域标准为第二色域,该第二色域对应的颜色空间被上述第一色域对应的颜色空间覆盖,比如,若上述第一色域为DCI-P3色域,则该第二色域可以为sRGB色域(sRGB色域对应的颜色空间被DCI-P3色域对应的颜色空间覆盖);其次,将获取的上述待显示图片转换为色域标准为上述第一色域的中间图片,然后显示该中间图片。在本申请中,上述第二色域对应的颜色空间需要被上述第一色域对应的颜色空间覆盖住,这样才能将待显示图片的色域由第二色域转换为第一色域,而没有颜色失真。本申请所提供的技术方案中的各个步骤由终端设备执行,使得可正确还原第一色域图片的颜色的终端设备,在接收到第二色域的图片时,可以自动将该第二色域的图片转换为色域标准为上述第一色域的中间图片,从而使得该终端设备不仅可以正确还原第一色域的图片中的颜色,也可以正确还原第二色域的图片中的颜色,而完全不需要用户更改终端设备显示系统的工作模式,因此,本申请可以在一定程度上解决目前的终端设备无法高效率地还原不同色域标准的图片中的颜色的技术问题。As can be seen from the above, the present application provides a picture display method, and the picture display method is applied to a terminal device, and the terminal device can correctly restore the colors in a picture whose color gamut standard is the first color gamut. The picture display method provided by the present application first obtains a picture to be displayed, wherein the color gamut standard of the picture to be displayed is a second color gamut, and the color space corresponding to the second color gamut is covered by the color space corresponding to the first color gamut, For example, if the above-mentioned first color gamut is the DCI-P3 color gamut, the second color gamut may be the sRGB color gamut (the color space corresponding to the sRGB color gamut is covered by the color space corresponding to the DCI-P3 color gamut); The acquired picture to be displayed is converted into an intermediate picture whose color gamut standard is the first color gamut, and then the intermediate picture is displayed. In this application, the color space corresponding to the second color gamut needs to be covered by the color space corresponding to the first color gamut, so that the color gamut of the picture to be displayed can be converted from the second color gamut to the first color gamut, and No color distortion. Each step in the technical solution provided by this application is performed by the terminal device, so that the terminal device that can correctly restore the color of the first color gamut picture, when receiving the second color gamut picture, can automatically use the second color gamut The picture is converted into an intermediate picture whose color gamut standard is the above-mentioned first color gamut, so that the terminal device can not only correctly restore the color in the picture of the first color gamut, but also can correctly restore the color in the picture of the second color gamut, The user does not need to change the working mode of the display system of the terminal device at all. Therefore, the present application can solve the technical problem that the current terminal device cannot efficiently restore the colors in pictures of different color gamut standards to a certain extent.

附图说明Description of drawings

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

图1是本申请实施例一提供的一种图片显示方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flowchart of a picture display method provided in Embodiment 1 of the present application;

图2是本申请实施例一提供的一种色域转换方法的实现流程示意图;FIG. 2 is a schematic flowchart of the implementation of a color gamut conversion method provided in Embodiment 1 of the present application;

图3是本申请实施例一提供的一种中间图片的计算方法示意图;3 is a schematic diagram of a calculation method for an intermediate picture provided in Embodiment 1 of the present application;

图4是sRGB色域对应的颜色空间示意图;Figure 4 is a schematic diagram of the color space corresponding to the sRGB color gamut;

图5是本申请实施例二提供的另一种图片显示方法的实现流程示意图;FIG. 5 is a schematic flowchart of the implementation of another picture display method provided in Embodiment 2 of the present application;

图6是本申请实施例三提供的一种图片显示装置的结构示意图;FIG. 6 is a schematic structural diagram of a picture display device according to Embodiment 3 of the present application;

图7是本申请实施例四提供的终端设备的结构示意图。FIG. 7 is a schematic structural diagram of a terminal device provided in Embodiment 4 of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

本申请实施例提供的图片显示方法可以适用于终端设备,示例性地,上述终端设备包括但不限于:智能手机、平板电脑、桌上型计算机、学习机、智能穿戴设备等。The image display method provided by the embodiments of the present application may be applicable to terminal devices. Exemplarily, the above-mentioned terminal devices include but are not limited to: smart phones, tablet computers, desktop computers, learning machines, smart wearable devices, and the like.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other features , whole, step, operation, element, component and/or the presence or addition of a collection thereof.

还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the application herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.

还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .

另外,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application, the terms "first", "second" and the like are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in the present application, the following specific embodiments are used for description.

实施例一Example 1

下面对本申请实施例一提供的一种图片显示方法进行描述,该图片显示方法应用于终端设备,该终端设备可正确还原色域标准为第一色域的图片中的颜色(比如,通过用户手动设置该终端设备显示系统的工作模式,使得该终端设备可正确还原色域标准为第一色域的图片中的颜色),请参阅附图1,本申请实施例一提供的图片显示方法包括:A picture display method provided in Embodiment 1 of the present application is described below. The picture display method is applied to a terminal device, and the terminal device can correctly restore the color in a picture whose color gamut standard is the first color gamut (for example, manually by a user). Set the working mode of the terminal device display system so that the terminal device can correctly restore the color in the picture whose color gamut standard is the first color gamut), please refer to FIG. 1, the picture display method provided by the first embodiment of the present application includes:

在步骤S101中,获取色域标准为第二色域的待显示图片,其中,该第二色域对应的颜色空间被上述第一色域对应的颜色空间覆盖;In step S101, a picture to be displayed whose color gamut standard is a second color gamut is obtained, wherein the color space corresponding to the second color gamut is covered by the color space corresponding to the above-mentioned first color gamut;

在本申请实施例中,若上述第一色域为Adobe RGB色域,则上述第二色域可以为sRGB色域,若上述第一色域为DCI-P3色域,则上述第二色域也可以为sRGB色域。本申请并不对上述第一色域以及第二色域作具体限定,但是上述第二色域以及上述第一色域之间需满足关系:上述第二色域对应的颜色空间要被上述第一色域对应的颜色空间覆盖。In the embodiment of the present application, if the first color gamut is the Adobe RGB color gamut, the second color gamut may be the sRGB color gamut, and if the first color gamut is the DCI-P3 color gamut, the second color gamut Can also be sRGB color gamut. This application does not specifically limit the first color gamut and the second color gamut, but the relationship between the second color gamut and the first color gamut needs to be satisfied: the color space corresponding to the second color gamut The color space overlay corresponding to the color gamut.

在步骤S102中,将上述待显示图片转换为色域标准为上述第一色域的中间图片;In step S102, the above-mentioned to-be-displayed picture is converted into an intermediate picture whose color gamut standard is the above-mentioned first color gamut;

在本申请实施例中,需要对步骤S101获取的待显示图片进行色域转换,从而得到色域标准为上述第一色域的中间图片,附图2示出了一种色域转换方法的实现流程示意图,该步骤S102中的中间图片可以根据附图2得到。如图2所示,该步骤S102可以包括步骤S201-S205:In the embodiment of the present application, it is necessary to perform color gamut conversion on the picture to be displayed obtained in step S101, so as to obtain an intermediate picture whose color gamut standard is the above-mentioned first color gamut. FIG. 2 shows the realization of a color gamut conversion method. A schematic flowchart, the middle picture in step S102 can be obtained according to FIG. 2 . As shown in FIG. 2, this step S102 may include steps S201-S205:

在步骤S201中,对上述待显示图片进行归一化处理,得到各个像素点的R值、G值以及B值均在[0,1]范围内的归一化图片;In step S201, the above-mentioned pictures to be displayed are normalized to obtain a normalized picture whose R value, G value and B value of each pixel are in the range of [0, 1];

在该步骤S201中,可以根据待显示图片中像素点像素值的位数来进行归一化处理,比如,若待显示图片中每个像素点的R值、B值以及G值均是8位的,则可以将每个像素点的R值、B值以及G值除以255,从而得到每个像素点的R值、B值以及G值均在[0,1]范围内的归一化图片。In this step S201, normalization processing may be performed according to the number of bits of pixel values of pixels in the picture to be displayed. For example, if the R value, B value and G value of each pixel in the picture to be displayed are all 8 bits , then the R value, B value and G value of each pixel can be divided by 255, so as to obtain the normalization of the R value, B value and G value of each pixel in the range of [0,1] picture.

为了详细说明附图2所示的中间图片的具体获取过程,可参见附图3。如图3所示,待显示图片301为一2×3的图片,该待显示图片301共6个像素点,每个像素点的R值、G值以及B值均是8位,第一个像素点的R值=180,G值=234,B值=100。首先利用该步骤S201,对该待显示图片301进行归一化处理,得到归一化图片302,该归一化图片302第一个像素点的R值=180/255≈0.70588,G值=234/255≈0.91765,B值=100/255≈0.39216。For a detailed description of the specific acquisition process of the middle picture shown in FIG. 2 , reference may be made to FIG. 3 . As shown in FIG. 3 , the picture to be displayed 301 is a 2×3 picture. The picture to be displayed 301 has a total of 6 pixels, and the R value, G value and B value of each pixel are 8 bits. The R value of the pixel point=180, the G value=234, and the B value=100. First, use this step S201 to normalize the to-be-displayed picture 301 to obtain a normalized picture 302. The R value of the first pixel of the normalized picture 302 = 180/255≈0.70588, and the G value = 234 /255≈0.91765, B value=100/255≈0.39216.

在步骤S202中,对上述归一化图片中的各个像素点的R值、G值以及B值进行线性处理,得到线性处理后图片In step S202, linearly process the R value, G value and B value of each pixel in the normalized picture to obtain a linearly processed picture

通过步骤S201得到归一化图片之后,对该归一化图片进行线性处理,得到线性处理后图片。其中,该步骤S202可以采用下式所示的分段函数,对上述归一化图片进行线性处理,该分段函数为:After the normalized picture is obtained through step S201, the normalized picture is linearly processed to obtain a linearly processed picture. Wherein, in this step S202, a piecewise function shown in the following formula can be used to perform linear processing on the above-mentioned normalized picture, and the piecewise function is:

其中,a=0.9479,b=0.05214,c=0.07739,d=0.04045,γ=2.4,U是上述归一化图片中像素点的R值、G值或者B值,U_linear是上述线性处理后图片中像素点的R值、G值或者B值,请本领域技术人员注意,该分段函数仅仅是线性处理的一个示例,本申请并不对该步骤中的线性处理算法进行具体限定。 Among them, a=0.9479, b=0.05214, c=0.07739, d=0.04045, γ=2.4, U is the R value, G value or B value of the pixel in the above normalized picture, U_linear is the above linear processing picture For the R value, G value or B value of a pixel, those skilled in the art should note that this piecewise function is only an example of linear processing, and this application does not specifically limit the linear processing algorithm in this step.

假设利用上述分段函数,对附图3中的归一化图片302进行线性处理,从而得到线性处理后图片303。对于归一化图片302的第一个像素点来说,其R值≈0.70588,G值≈0.91765,B值≈0.39216,因此,根据上述分段函数,可以得到线性处理后图片303的第一个像素点的R值=(a×0.70588+b)γ≈0.4565,G值=(a×0.91765+b)γ≈0.8229,B值=(a×0.39216+b)γ≈0.1275。对于线性处理后图片303的其他像素点像素值的计算方法此处不再赘述(附图3中以省略号表示)。It is assumed that the normalized picture 302 in FIG. 3 is linearly processed by using the above piecewise function, so as to obtain the linearly processed picture 303 . For the first pixel of the normalized picture 302, its R value ≈ 0.70588, G value ≈ 0.91765, and B value ≈ 0.39216. Therefore, according to the above piecewise function, the first pixel of the linearly processed picture 303 can be obtained. The R value of the pixel point=(a×0.70588+b) γ≈0.4565 , the G value=(a×0.91765+b) γ≈0.8229 , and the B value=(a×0.39216+b) γ≈0.1275 . The method for calculating the pixel values of other pixels in the linearly processed picture 303 will not be repeated here (indicated by ellipsis in FIG. 3 ).

在步骤S203中,根据第一转换公式,将上述线性处理后图片的颜色空间由上述第二色域对应的颜色空间转换为XYZ颜色空间,得到第一转换图片,该第一转换公式为:其中,M1为将上述第二色域对应的颜色空间转换为XYZ空间的转换矩阵,为上述线性处理后图片中像素点的像素值,为上述第一转换图片中像素点的像素值;In step S203, according to the first conversion formula, the color space of the above-mentioned linearly processed picture is converted from the color space corresponding to the above-mentioned second color gamut to the XYZ color space to obtain a first converted picture. The first conversion formula is: Wherein, M 1 is a conversion matrix that converts the color space corresponding to the second color gamut to the XYZ space, is the pixel value of the pixel in the image after the above linear processing, is the pixel value of the pixel in the above-mentioned first converted picture;

在该步骤S203中,上述矩阵M1为一3×3的矩阵,将矩阵M1与线性处理后图片的每个像素点的像素值相乘,得到第一转换图片。如图3所示,第一转换图片304的第一个像素点的R值为M1与3×1的矩阵相乘后的第一行数值,G值为M1与3×1的矩阵相乘后的第二行数值,B值为M1与3×1的矩阵相乘后的第三行数值,对于图片304的其他像素点像素值的计算此处不再赘述。In this step S203, the matrix M 1 is a 3×3 matrix, and the matrix M 1 is multiplied by the pixel value of each pixel of the linearly processed picture to obtain the first converted picture. As shown in FIG. 3 , the R value of the first pixel of the first converted picture 304 is M 1 and a 3×1 matrix The first row of values after multiplication, the G value is M 1 and a 3×1 matrix The value of the second row after multiplication, the B value is a matrix of M 1 and 3 × 1 For the multiplied values in the third row, the calculation of the pixel values of other pixels in the picture 304 will not be repeated here.

此外,在该步骤中,M1为将上述第二色域对应的颜色空间转换为XYZ空间的转换矩阵,以下简要说明M1的获取过程:In addition, in this step, M 1 is a conversion matrix that converts the color space corresponding to the second color gamut to the XYZ space, and the acquisition process of M 1 is briefly described below:

其中,Xr=Rx/Ry,Yr=1,Zr=(1-Rx-Ry)/Ry,Xg=Gx/Gy,Yg=1,Zg=(1-Gx-Gy)/Gy,Xb=Bx/By,Yb=1,Zb=(1-Bx-By)/By Wherein, Xr =Rx/ Ry , Yr =1, Zr =(1-Rx- Ry )/ Ry , Xg = Gx / Gy , Yg = 1 , Zg =( 1-G x -G y )/G y , X b =B x /B y , Y b =1, Z b =(1-B x -B y )/B y .

由此可见,M1计算公式中的Xr、Yr、Zr、Xg、Yg、Zg、Xb、Yb以及Zb是根据Rx、Ry、Gx、Gy、Bx以及By得到,其中,该Rx、Ry、Gx、Gy、Bx以及By为第二色域对应的颜色空间在归一化色彩空间中的各个坐标。假设该第二色域为sRGB色域,则如图4所示,Rx以及Ry分别为A点的横纵坐标,Rx=0.64、Ry=0.33;Gx以及Gy分别为B点的横纵坐标,Gx=0.30、Gy=0.60;Bx以及By分别为C点的横纵坐标,Bx=0.15、By=0.06。It can be seen that X r , Y r , Z r , X g , Y g , Z g , X b , Y b and Z b in the calculation formula of M 1 are based on R x , R y , G x , G y , B x and By are obtained, wherein the R x , R y , G x , G y , B x and By are the coordinates in the normalized color space of the color space corresponding to the second color gamut. Assuming that the second color gamut is the sRGB color gamut, as shown in FIG. 4 , R x and R y are the horizontal and vertical coordinates of point A, R x =0.64, R y =0.33; G x and G y are B respectively The abscissa and ordinate of the point are G x =0.30 and G y =0.60; B x and By are the abscissa and ordinate of point C respectively, B x = 0.15 and By = 0.06.

另外,M1计算公式中的Sr、Sg以及Sb根据下式计算:In addition, S r , S g and S b in the calculation formula of M 1 are calculated according to the following formula:

其中,可以为D65光源下的白点坐标,或者也可以是D50光源下的白点坐标,若为D65光源下的白点坐标,则 in, It can be the white point coordinates under the D65 light source, or it can be the white point coordinates under the D50 light source. is the white point coordinates under the D65 light source, then

上述所展示的矩阵M1的计算过程较为复杂,因此,为节省终端设备的运行时间,在实际应用中,可以事先计算出矩阵M1,并在终端设备本地保存M1,相应地,在步骤S203之前,可以包括:在终端设备本地查询转换矩阵M1。从而可以根据查询到的M1,执行步骤S203。The calculation process of the matrix M 1 shown above is relatively complicated. Therefore, in order to save the running time of the terminal device, in practical applications, the matrix M 1 can be calculated in advance, and M 1 is stored locally in the terminal device. Correspondingly, in step Before S203, it may include: querying the conversion matrix M 1 locally in the terminal device. Therefore, step S203 can be performed according to the queried M 1 .

在步骤S204中,根据第二转换公式,将上述第一转换图片的颜色空间由XYZ颜色空间转换为上述第一色域对应的颜色空间,得到第二转换图片,该第二转换公式为:其中,M2为将上述第一色域对应的颜色空间转换为XYZ空间的转换矩阵,为上述第一转换图片中像素点的像素值,为上述第二转换图片中像素点的像素值;In step S204, according to the second conversion formula, the color space of the above-mentioned first conversion picture is converted from the XYZ color space to the color space corresponding to the above-mentioned first color gamut to obtain a second conversion picture. The second conversion formula is: Wherein, M 2 is the conversion matrix that converts the color space corresponding to the first color gamut to the XYZ space, is the pixel value of the pixel in the above-mentioned first converted picture, is the pixel value of the pixel in the above-mentioned second converted picture;

在该步骤S204中,上述矩阵M2同样也为一3×3的矩阵,将矩阵M2的逆矩阵M2 -1与步骤S203得到的第一转换图片的每个像素点的像素值相乘,得到第二转换图片。如图3所示,第二转换图片305的第一个像素点的R值为M2 -1M1与3×1的矩阵相乘后的第一行数值,G值为M2 -1M1与3×1的矩阵相乘后的第二行数值,B值为M2 -1M1与3×1的矩阵相乘后的第三行数值,对于图片305的其他像素点像素值的计算此处不再赘述。In this step S204, the above - mentioned matrix M2 is also a 3 ×3 matrix, and the inverse matrix M2-1 of the matrix M2 is multiplied by the pixel value of each pixel of the first converted picture obtained in step S203 , to get the second converted image. As shown in FIG. 3 , the R value of the first pixel of the second converted picture 305 is a matrix of M 2 -1 M 1 and 3×1 The value of the first row after multiplication, the G value is M 2 -1 M 1 and a 3×1 matrix The second row of values after multiplication, the B value is M 2 -1 M 1 and a 3×1 matrix For the multiplied values in the third row, the calculation of the pixel values of other pixels in the picture 305 will not be repeated here.

在该步骤中,M2为将上述第一色域对应的颜色空间转换为XYZ空间的转换矩阵,具体计算过程与M1完全相同,具体可参见步骤S203的描述,此处不再赘述。由于矩阵M2的计算过程也较为复杂,因此,为节省终端设备的运行时间,在实际应用中,可以事先计算出矩阵M2,并在终端设备本地保存M2,相应地,在步骤S204之前,可以包括:在终端设备本地查询矩阵M2,并计算查询出的矩阵M2的逆矩阵M2 -1。从而可以根据M2 -1,执行步骤S204。In this step, M 2 is a conversion matrix that converts the color space corresponding to the first color gamut to XYZ space, and the specific calculation process is exactly the same as that of M 1 . For details, please refer to the description of step S203, which will not be repeated here. Since the calculation process of the matrix M 2 is also relatively complicated, in order to save the running time of the terminal device, in practical applications, the matrix M 2 can be calculated in advance and stored locally in the terminal device. Correspondingly, before step S204 , which may include: querying the matrix M 2 locally in the terminal device, and calculating the inverse matrix M 2 -1 of the queried matrix M 2 . Therefore, step S204 can be performed according to M 2 -1 .

或者,也可以事先计算出矩阵M2 -1,在终端设备本地直接保存M2 -1,相应地,在步骤S204之前,可以包括:在终端设备本地查询矩阵M2 -1。从而可以根据查询到的M2 -1,执行步骤S204。Alternatively, the matrix M 2 -1 can also be calculated in advance, and M 2 -1 is directly stored locally in the terminal device. Correspondingly, before step S204 , it may include: querying the matrix M 2 -1 locally in the terminal device. Therefore, step S204 can be performed according to the queried M 2 -1 .

在步骤S205中,对上述第二转换图片进行逆线性处理以及逆归一化处理,得到中间图片,其中,上述逆线性处理为上述线性处理的逆运算,上述逆归一化处理为上述归一化处理的逆运算。In step S205, inverse linear processing and inverse normalization processing are performed on the second converted picture to obtain an intermediate picture, wherein the inverse linear processing is an inverse operation of the linear processing, and the inverse normalization processing is the above normalization The inverse operation of the processing.

在该步骤中,首先对步骤S204得到的第二转换图片进行逆线性处理,该逆线性处理为步骤S202所述的线性处理的逆运算,其次,将逆线性处理得到的图片进行逆归一化处理,该逆归一化处理为上述归一化处理的逆运算。In this step, first perform inverse linear processing on the second converted picture obtained in step S204, and the inverse linear processing is an inverse operation of the linear processing described in step S202, and secondly, perform inverse normalization on the picture obtained by the inverse linear processing The inverse normalization process is an inverse operation of the above normalization process.

如图3所示,首先,利用步骤S202所述的分段函数的反函数对第二转换图片305做逆线性处理,假设该分段函数的反函数为f-1(x)(该反函数的计算过程较为常规,此处不再赘述,仅仅用f-1(x)表示),则可以得到逆线性处理后的图片306第一个像素点的R值为f-1(R第二转换)、G值为f-1(G第二转换)、B值为f-1(B第二转换),其中R第二转换、G第二转换以及B第二转换分别为的第一行数值、第二行数值以及第三行数值。对于图片306的其他像素点的计算过程此处不再赘述。As shown in FIG. 3 , first, inverse linear processing is performed on the second converted picture 305 by using the inverse function of the piecewise function described in step S202, assuming that the inverse function of the piecewise function is f −1 (x) (the inverse function The calculation process is relatively conventional, and will not be repeated here, but only represented by f -1 (x)), then the R value of the first pixel of the inverse linearly processed picture 306 can be obtained as f -1 ( the second conversion of R ), G value is f -1 (G second conversion ), B value is f -1 (B second conversion ), wherein R second conversion , G second conversion and B second conversion are respectively The first row of values, the second row of values, and the third row of values. The calculation process of other pixel points of the picture 306 is not repeated here.

其次,对图片306做逆归一化处理,也即是每个像素点的R值、G值以及B值都乘以255,从而得到中间图片307。Next, inverse normalization is performed on the picture 306 , that is, the R value, the G value and the B value of each pixel are multiplied by 255, thereby obtaining the intermediate picture 307 .

在本申请实施例中,附图2给出了一种中间图片的确定方法,然而,本领域技术人员应该注意,该步骤S102中中间图片的确定方法也可以有其他方法,并不局限于附图2。In this embodiment of the present application, FIG. 2 shows a method for determining an intermediate picture. However, those skilled in the art should note that there may be other methods for determining the intermediate picture in step S102, which are not limited to the following methods. figure 2.

在步骤S103中,显示上述中间图片;In step S103, the above-mentioned intermediate picture is displayed;

由于本申请所提供的技术方案应用于可以正确还原第一色域的图片中的颜色的终端设备,因此,该终端设备可正确还原中间图片中的颜色。Since the technical solution provided in the present application is applied to a terminal device that can correctly restore the colors in the pictures in the first color gamut, the terminal device can correctly restore the colors in the intermediate pictures.

请本领域技术人员注意,由于该终端设备可正确还原第一色域的图片中的颜色,因此,该终端设备显示器的颜色空间必然覆盖该第一色域对应的颜色空间。该终端设备可以通过执行如下步骤实现显示该中间图片:首先,该终端设备需要对中间图片的颜色空间进行转换,将该中间图片的颜色空间由上述第一色域对应的颜色空间转换为该终端设备显示器的颜色空间;其次,在该终端设备的显示器上显示该显示图片。Those skilled in the art should note that, since the terminal device can correctly restore the colors in the picture of the first color gamut, the color space of the display of the terminal device must cover the color space corresponding to the first color gamut. The terminal device can display the intermediate picture by performing the following steps: First, the terminal device needs to convert the color space of the intermediate picture, and convert the color space of the intermediate picture from the color space corresponding to the first color gamut to the terminal device. The color space of the device display; secondly, the display picture is displayed on the display of the terminal device.

在本申请实施例一中,步骤S101-S103由终端设备执行,使得可正确还原第一色域图片的颜色的终端设备,在接收到第二色域的图片时,可以自动将该第二色域的图片转换为色域标准为上述第一色域的中间图片,从而使得该终端设备不仅可以正确还原第一色域的图片中的颜色,也可以正确还原第二色域的图片中的颜色,而完全不需要用户更改终端设备显示系统的工作模式,因此,可以在一定程度上解决目前的终端设备无法高效率地还原不同色域标准的图片中的颜色的技术问题。In the first embodiment of the present application, steps S101-S103 are performed by the terminal device, so that the terminal device that can correctly restore the color of the first color gamut picture, when receiving the second color gamut picture, can automatically use the second color gamut. The picture in the gamut is converted into an intermediate picture whose color gamut standard is the above-mentioned first color gamut, so that the terminal device can not only correctly restore the color in the picture in the first color gamut, but also can correctly restore the color in the picture in the second color gamut , and the user does not need to change the working mode of the display system of the terminal device. Therefore, the technical problem that the current terminal device cannot efficiently restore the colors in pictures of different color gamut standards can be solved to a certain extent.

实施例二Embodiment 2

下面对本申请实施例二提供的另一种图片显示方法进行描述,与实施例一相同,该图片显示方法也应用于终端设备,本申请实施例二将实施例一中的第一色域限定为DCI-P3色域,将第二色域限定为sRGB色域,该终端设备可正确还原DCI-P3色域的图片中的颜色,请参阅附图5,本申请实施例二提供的图片显示方法包括:The following describes another picture display method provided in the second embodiment of the present application. Similar to the first embodiment, the picture display method is also applied to the terminal device. In the second embodiment of the present application, the first color gamut in the first embodiment is limited to DCI-P3 color gamut, the second color gamut is limited to sRGB color gamut, the terminal device can correctly restore the color in the picture in the DCI-P3 color gamut, please refer to FIG. 5, the picture display method provided by the second embodiment of the present application include:

在步骤S501中,获取初始图片;In step S501, an initial picture is obtained;

该步骤S501所述的初始图片可以是用户通过终端设备的相机应用程序(Application,APP)拍摄的图片,比如,用户启动终端设备中的相机APP,利用该相机APP拍摄一图片,该终端设备可以将该图片确定为初始图片;或者,上述初始图片可以是终端设备中的相机APP或者摄像机APP所采集的预览画面中的一帧预览图片,比如,用户启动终端设备的相机APP后,该终端设备可以将该终端设备显示屏上所显示的某一帧图片作为初始图片;或者,上述初始图片可以是终端设备本地所保存的图片,比如,终端设备可以将本地图库中的一张图片作为初始图片;或者,上述初始图片也可以是用户在互联网上下载的图片,比如,终端设备将用户在浏览器中下载的图片确定为初始图片;或者,上述初始图片还可以是在线观看的视频或本地保存的视频中的某一帧图片,比如,将用户在线观看的动画片中的某一帧图片确定为初始图片。本申请对上述初始图片的来源不作限定。The initial picture described in this step S501 may be a picture taken by the user through the camera application (Application, APP) of the terminal device. For example, if the user starts the camera APP in the terminal device, and uses the camera APP to take a picture, the terminal device may The picture is determined as the initial picture; or, the above-mentioned initial picture may be a preview picture in the preview picture collected by the camera APP in the terminal device or the camera APP, for example, after the user starts the camera APP of the terminal device, the terminal device A certain frame of picture displayed on the display screen of the terminal device can be used as the initial picture; or, the above-mentioned initial picture can be a picture saved locally by the terminal device, for example, the terminal device can use a picture in the local gallery as the initial picture Or, the above-mentioned initial picture can also be a picture downloaded by the user on the Internet, for example, the terminal device determines the picture downloaded by the user in the browser as the initial picture; Or, the above-mentioned initial picture can also be a video watched online or saved locally A certain frame of picture in the video, for example, a certain frame of picture in the cartoon watched by the user online is determined as the initial picture. This application does not limit the source of the above-mentioned initial pictures.

在步骤S502中,判断上述初始图片的色域标准是否为sRGB色域;In step S502, determine whether the color gamut standard of the above-mentioned initial picture is the sRGB color gamut;

终端设备可以通过获取该初始图片的属性信息,来确定该初始图片的色域标准是否为sRGB色域,若确定出该初始图片为sRGB色域,则将该初始图片确定为实施例一所述的待显示图片,并执行实施例一中的步骤S102-S103来将该初始图片显示出来。The terminal device can determine whether the color gamut standard of the initial picture is the sRGB color gamut by acquiring the attribute information of the initial picture. the picture to be displayed, and execute steps S102-S103 in the first embodiment to display the initial picture.

若确定该初始图片不是sRGB色域,则可以不对该初始图片作任何处理,直接将该初始图片显示出来,然而,这会使得显示出来的初始图片的颜色与该初始图片本身的颜色有所偏差。If it is determined that the initial image is not in the sRGB color gamut, the initial image can be displayed directly without any processing. However, this will cause the displayed initial image to deviate from the color of the initial image itself. .

或者,若确定步骤S501获取的初始图片不是sRGB色域时,则可以判断该初始图片的色域对应的颜色空间是否被DCI-P3色域对应的颜色空间覆盖,若判断出被DCI-P3对应的颜色空间覆盖,则可以对该初始图片进行色域转换,将该初始图片转换为色域标准为DCI-P3色域的图片,然后将该转换得到的图片显示出来(色域转换的具体过程可参见实施例一),若判断出没有被DCI-P3对应的颜色空间覆盖,则可以直接将该初始图片显示出来。Or, if it is determined that the initial picture obtained in step S501 is not in the sRGB color gamut, it can be judged whether the color space corresponding to the color gamut of the initial picture is covered by the color space corresponding to the DCI-P3 color gamut. If the color space is covered, you can perform color gamut conversion on the initial picture, convert the initial picture into a picture whose color gamut standard is DCI-P3 color gamut, and then display the converted picture (the specific process of color gamut conversion). See Embodiment 1). If it is determined that the color space corresponding to DCI-P3 is not covered, the initial picture can be displayed directly.

在步骤S503中,若上述初始图片对应的色域标准为sRGB色域,则将该初始图片确定为待显示图片;In step S503, if the color gamut standard corresponding to the above-mentioned initial picture is the sRGB color gamut, then the initial picture is determined as the picture to be displayed;

在步骤S504中,将上述待显示图片转换为色域标准为DCI-P3色域的中间图片;In step S504, the above-mentioned picture to be displayed is converted into an intermediate picture whose color gamut standard is DCI-P3 color gamut;

在步骤S505中,显示上述中间图片;In step S505, the above-mentioned intermediate picture is displayed;

也即是,若步骤S501获取的初始图片的色域标准为sRGB色域,则将该初始图片确定为实施例一所述的待显示图片,并执行实施例一中的步骤S102-S103来显示该初始图片。其中,在本申请实施例二中,步骤S504-S505的具体实施过程与实施例一中的步骤S102-S103完全相同,具体可参见实施例一的描述,此处不再赘述。That is, if the color gamut standard of the initial picture obtained in step S501 is the sRGB color gamut, then the initial picture is determined as the picture to be displayed according to the first embodiment, and steps S102-S103 in the first embodiment are executed to display. The initial picture. Wherein, in the second embodiment of the present application, the specific implementation process of steps S504-S505 is exactly the same as that of steps S102-S103 in the first embodiment, and details can be referred to the description of the first embodiment, which will not be repeated here.

本申请实施例二将实施例一中的第一色域具体确定为DCI-P3色域,将第二色域具体确定为sRGB色域,使得能够正确还原DCI-P3色域的图片颜色的终端设备,在不需要用户更改终端设备显示系统的工作模式的情况下,也可以将sRGB色域的图片中的颜色正确还原出来,因此,本申请实施例二与实施例一相同,也可以在一定程度上解决目前的终端设备无法高效率地还原不同色域标准的图片中的颜色的技术问题In the second embodiment of the present application, the first color gamut in the first embodiment is specifically determined as the DCI-P3 color gamut, and the second color gamut is specifically determined as the sRGB color gamut, so that the terminal that can correctly restore the picture color of the DCI-P3 color gamut The device can also correctly restore the colors in the pictures in the sRGB color gamut without the need for the user to change the working mode of the terminal device display system. Therefore, the second embodiment of the present application is the same as the first embodiment, and it can also be To a certain extent, it solves the technical problem that the current terminal equipment cannot efficiently restore the colors in pictures of different color gamut standards

应理解,上述方法实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above method embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. .

实施例三Embodiment 3

本申请实施例三提供了一种图片显示装置,应用于终端设备,该终端设备可正确还原色域标准为第一色域的图片中的颜色,为便于说明,仅示出与本申请相关的部分,如图6所示,图片显示装置600包括:The third embodiment of the present application provides a picture display device, which is applied to a terminal device. The terminal device can correctly restore the colors in a picture whose color gamut standard is the first color gamut. For the convenience of description, only the pictures related to the present application are shown. In part, as shown in FIG. 6, the picture display device 600 includes:

图片获取模块601,用于获取色域标准为第二色域的待显示图片,其中,该第二色域对应的颜色空间被上述第一色域对应的颜色空间覆盖;The picture acquisition module 601 is configured to acquire a picture to be displayed whose color gamut standard is a second color gamut, wherein the color space corresponding to the second color gamut is covered by the color space corresponding to the above-mentioned first color gamut;

色域转换模块602,用于将上述待显示图片转换为色域标准为上述第一色域的中间图片;A color gamut conversion module 602, configured to convert the above-mentioned picture to be displayed into an intermediate picture whose color gamut standard is the above-mentioned first color gamut;

图片显示模块603,用于显示上述中间图片。The picture display module 603 is configured to display the above-mentioned intermediate picture.

可选地,上述色域转换模块602包括:Optionally, the above-mentioned color gamut conversion module 602 includes:

归一化处理单元,用于对上述待显示图片进行归一化处理,得到各个像素点的R值、G值以及B值均在[0,1]范围内的归一化图片;a normalization processing unit, configured to perform normalization processing on the above-mentioned picture to be displayed, and obtain a normalized picture whose R value, G value and B value of each pixel are in the range of [0, 1];

线性处理单元,用于对上述归一化图片中的各个像素点的R值、G值以及B值进行线性处理,得到线性处理后图片;The linear processing unit is used to perform linear processing on the R value, G value and B value of each pixel in the above-mentioned normalized picture to obtain a linearly processed picture;

第一转换单元,用于根据第一转换公式,将上述线性处理后图片的颜色空间由上述第二色域对应的颜色空间转换至XYZ颜色空间,得到第一转换图片,上述第一转换公式为:The first conversion unit is configured to convert the color space of the above-mentioned linearly processed picture from the color space corresponding to the above-mentioned second color gamut to the XYZ color space according to a first conversion formula, and obtain a first conversion picture. The above-mentioned first conversion formula is: :

其中,M1为将上述第二色域对应的颜色空间转换为XYZ空间的转换矩阵,为上述线性处理后图片中像素点的像素值,为上述第一转换图片中像素点的像素值; Wherein, M 1 is a conversion matrix that converts the color space corresponding to the second color gamut to the XYZ space, is the pixel value of the pixel in the image after the above linear processing, is the pixel value of the pixel in the above-mentioned first converted picture;

第二转换单元,用于根据第二转换公式,将上述第一转换图片的颜色空间由XYZ颜色空间转换至上述第一色域对应的颜色空间,得到第二转换图片,上述第二转换公式为:The second conversion unit is configured to convert the color space of the first converted picture from the XYZ color space to the color space corresponding to the first color gamut according to the second conversion formula, so as to obtain a second converted picture. The second conversion formula is: :

其中,M2为将上述第一色域对应的颜色空间转换为XYZ空间的转换矩阵,为上述第一转换图片中像素点的像素值,为上述第二转换图片中像素点的像素值; Wherein, M 2 is the conversion matrix that converts the color space corresponding to the first color gamut to the XYZ space, is the pixel value of the pixel in the above-mentioned first converted picture, is the pixel value of the pixel in the above-mentioned second converted picture;

逆处理单元,用于对上述第二转换图片进行逆线性处理以及逆归一化处理,得到中间图片,其中,上述逆线性处理为上述线性处理的逆运算,上述逆归一化处理为上述归一化处理的逆运算。The inverse processing unit is configured to perform inverse linear processing and inverse normalization processing on the above-mentioned second converted picture to obtain an intermediate picture, wherein the above-mentioned inverse linear processing is an inverse operation of the above-mentioned linear processing, and the above-mentioned inverse normalization processing is the above-mentioned normalization processing. The inverse operation of the normalization process.

可选地,上述线性处理单元具体用于:Optionally, the above-mentioned linear processing unit is specifically used for:

根据分段函数,对上述归一化图片中的各个像素点的R值、G值以及B值进行线性处理,得到线性处理后图片,该分段函数为:According to the piecewise function, linearly process the R value, G value and B value of each pixel in the above normalized picture to obtain the linearly processed picture. The piecewise function is:

其中,a=0.9479,b=0.05214,c=0.07739,d=0.04045,γ=2.4,U是上述归一化图片中像素点的R值、G值或者B值,U_linear是上述线性处理后图片中像素点的R值、G值或者B值。 Among them, a=0.9479, b=0.05214, c=0.07739, d=0.04045, γ=2.4, U is the R value, G value or B value of the pixel in the above normalized picture, U_linear is the above linear processing picture The R value, G value or B value of the pixel.

可选地,上述终端设备本地中保存有将上述第二色域对应的颜色空间转换至XYZ颜色空间的转换矩阵M1Optionally, the terminal device locally stores a conversion matrix M 1 for converting the color space corresponding to the second color gamut to the XYZ color space;

相应地,上述色域转换模块602还包括:Correspondingly, the above-mentioned color gamut conversion module 602 further includes:

第一矩阵查询单元,用于在上述终端设备本地查询将上述第二色域对应的颜色空间转换至XYZ颜色空间的转换矩阵M1The first matrix query unit is configured to locally query the conversion matrix M 1 for converting the color space corresponding to the second color gamut to the XYZ color space in the terminal device.

可选地,上述终端设备本地中保存有将上述第一色域对应的颜色空间转换至XYZ颜色空间的转换矩阵M2Optionally, the terminal device locally stores a conversion matrix M 2 for converting the color space corresponding to the first color gamut to the XYZ color space;

相应地,上述色域转换模块602还包括:Correspondingly, the above-mentioned color gamut conversion module 602 further includes:

第二矩阵查询单元,用于在上述终端设备本地查询将上述第一色域对应的颜色空间转换至XYZ颜色空间的转换矩阵M2a second matrix query unit, configured to locally query the conversion matrix M 2 for converting the color space corresponding to the first color gamut to the XYZ color space in the terminal device;

逆矩阵计算单元,用于计算上述矩阵M2的逆矩阵M2 -1The inverse matrix calculation unit is used to calculate the inverse matrix M 2 -1 of the above matrix M 2 .

可选地,上述图片显示装置600还包括:Optionally, the above picture display apparatus 600 further includes:

初始图片获取模块,用于获取初始图片;The initial image acquisition module is used to acquire the initial image;

色域标准判断模块,用于判断上述初始图片的色域标准是否为上述第二色域;a color gamut standard judgment module, used to judge whether the color gamut standard of the above-mentioned initial picture is the above-mentioned second color gamut;

相应地,上述图片获取模块601具体用于:若上述初始图片的色域标准为上述第二色域,则将上述初始图片确定为上述待显示图片。Correspondingly, the above-mentioned picture obtaining module 601 is specifically configured to: if the color gamut standard of the above-mentioned initial picture is the above-mentioned second color gamut, determine the above-mentioned initial picture as the above-mentioned picture to be displayed.

可选地,上述图片显示模块603包括:Optionally, the above picture display module 603 includes:

颜色空间变换单元,用于对上述中间图片的颜色空间进行变换,将上述中间图片的颜色空间由上述第一色域对应的颜色空间转换为上述终端设备显示器的颜色空间,得到显示图片;The color space transforming unit is used to transform the color space of the above-mentioned intermediate picture, and convert the color space of the above-mentioned intermediate picture from the color space corresponding to the above-mentioned first color gamut to the color space of the above-mentioned terminal device display, so as to obtain a display picture;

显示单元,用于显示上述显示图片。The display unit is used for displaying the above display picture.

需要说明的是,上述装置/模块/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices/modules/units are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section for details. , and will not be repeated here.

实施例四Embodiment 4

图7是本申请实施例四提供的终端设备的示意图,该终端设备可正确还原色域标准为第一色域的图片中的颜色。如图7所示,该实施例的终端设备7包括:处理器70、存储器71以及存储在上述存储器71中并可在上述处理器70上运行的计算机程序72。上述处理器70执行上述计算机程序72时实现上述各个方法实施例中的步骤,例如图1所示的步骤S101至S103。或者,上述处理器70执行上述计算机程序72时实现上述各装置实施例中各模块/单元的功能,例如图6所示模块601至603的功能。FIG. 7 is a schematic diagram of a terminal device provided in Embodiment 4 of the present application. The terminal device can correctly restore colors in a picture whose color gamut standard is the first color gamut. As shown in FIG. 7 , the terminal device 7 in this embodiment includes: a processor 70 , a memory 71 , and a computer program 72 stored in the above-mentioned memory 71 and executable on the above-mentioned processor 70 . When the above-mentioned processor 70 executes the above-mentioned computer program 72, the steps in the above-mentioned various method embodiments are implemented, for example, steps S101 to S103 shown in FIG. 1 . Alternatively, when the above-mentioned processor 70 executes the above-mentioned computer program 72, the functions of each module/unit in each of the above-mentioned apparatus embodiments, for example, the functions of the modules 601 to 603 shown in FIG. 6 are implemented.

示例性的,上述计算机程序72可以被分割成一个或多个模块/单元,上述一个或者多个模块/单元被存储在上述存储器71中,并由上述处理器70执行,以完成本申请。上述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述上述计算机程序72在上述终端设备7中的执行过程。例如,上述计算机程序72可以被分割成图片获取模块、色域转换模块以及图片显示模块,各模块具体功能如下:Exemplarily, the above-mentioned computer program 72 can be divided into one or more modules/units, and the above-mentioned one or more modules/units are stored in the above-mentioned memory 71 and executed by the above-mentioned processor 70 to complete the present application. The above-mentioned one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the above-mentioned computer program 72 in the above-mentioned terminal device 7 . For example, the above-mentioned computer program 72 can be divided into a picture acquisition module, a color gamut conversion module and a picture display module, and the specific functions of each module are as follows:

获取色域标准为第二色域的待显示图片,其中,该第二色域对应的颜色空间被上述第一色域对应的颜色空间覆盖;obtaining a picture to be displayed whose color gamut standard is a second color gamut, wherein the color space corresponding to the second color gamut is covered by the color space corresponding to the first color gamut;

将上述待显示图片转换为色域标准为上述第一色域的中间图片;Converting the above-mentioned picture to be displayed into an intermediate picture whose color gamut standard is the above-mentioned first color gamut;

显示上述中间图片。Show the middle picture above.

上述终端设备可包括,但不仅限于,处理器70、存储器71。本领域技术人员可以理解,图7仅仅是终端设备7的示例,并不构成对终端设备7的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如上述终端设备还可以包括输入输出设备、网络接入设备、总线等。The above-mentioned terminal device may include, but is not limited to, the processor 70 and the memory 71 . Those skilled in the art can understand that FIG. 7 is only an example of the terminal device 7, and does not constitute a limitation on the terminal device 7, and may include more or less components than the one shown, or combine some components, or different components For example, the above-mentioned terminal device may also include input and output devices, network access devices, buses, and the like.

所称处理器70可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 70 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

上述存储器71可以是上述终端设备7的内部存储单元,例如终端设备7的硬盘或内存。上述存储器71也可以是上述终端设备7的外部存储设备,例如上述终端设备7上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,上述存储器71还可以既包括上述终端设备7的内部存储单元也包括外部存储设备。上述存储器71用于存储上述计算机程序以及上述终端设备所需的其它程序和数据。上述存储器71还可以用于暂时地存储已经输出或者将要输出的数据。The above-mentioned memory 71 may be an internal storage unit of the above-mentioned terminal device 7 , such as a hard disk or a memory of the terminal device 7 . The above-mentioned memory 71 can also be an external storage device of the above-mentioned terminal device 7, such as a plug-in hard disk equipped on the above-mentioned terminal device 7, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory Card (Flash Card) and so on. Further, the above-mentioned memory 71 may also include both the internal storage unit of the above-mentioned terminal device 7 and an external storage device. The above-mentioned memory 71 is used to store the above-mentioned computer program and other programs and data required by the above-mentioned terminal device. The above-mentioned memory 71 can also be used to temporarily store data that has been output or is to be output.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the embodiments provided in this application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are only illustrative. For example, the division of the above modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or Components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.

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

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

上述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the above-mentioned integrated modules/units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random Access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media does not Including electrical carrier signals and telecommunication signals.

以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that the above-mentioned embodiments can still be used for The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the present application. within the scope of protection of the application.

Claims (10)

1.一种图片显示方法,应用于终端设备,所述终端设备可正确还原色域标准为第一色域的图片中的颜色,其特征在于,所述图片显示方法包括:1. a picture display method, applied to terminal equipment, the terminal equipment can correctly restore the color gamut standard is the color in the picture of the first color gamut, it is characterized in that, described picture display method comprises: 获取色域标准为第二色域的待显示图片,其中,所述第二色域对应的颜色空间被所述第一色域对应的颜色空间覆盖;acquiring a picture to be displayed whose color gamut standard is a second color gamut, wherein the color space corresponding to the second color gamut is covered by the color space corresponding to the first color gamut; 将所述待显示图片转换为色域标准为所述第一色域的中间图片;converting the picture to be displayed into an intermediate picture whose color gamut standard is the first color gamut; 显示所述中间图片。The intermediate picture is displayed. 2.如权利要求1所述的图片显示方法,其特征在于,所述将所述待显示图片转换为色域标准为所述第一色域的中间图片,包括:2. The picture display method according to claim 1, wherein the converting the to-be-displayed picture into an intermediate picture whose color gamut standard is the first color gamut comprises: 对所述待显示图片进行归一化处理,得到各个像素点的R值、G值以及B值均在[0,1]范围内的归一化图片;Normalize the picture to be displayed to obtain a normalized picture in which the R value, G value and B value of each pixel are in the range of [0, 1]; 对所述归一化图片中的各个像素点的R值、G值以及B值进行线性处理,得到线性处理后图片;Perform linear processing on the R value, G value and B value of each pixel in the normalized picture to obtain a linearly processed picture; 根据第一转换公式,将所述线性处理后图片的颜色空间由所述第二色域对应的颜色空间转换至XYZ颜色空间,得到第一转换图片,所述第一转换公式为:According to the first conversion formula, the color space of the linearly processed image is converted from the color space corresponding to the second color gamut to the XYZ color space to obtain a first converted image. The first conversion formula is: 其中,M1为将所述第二色域对应的颜色空间转换为XYZ空间的转换矩阵,为所述线性处理后图片中像素点的像素值,为所述第一转换图片中像素点的像素值; Wherein, M 1 is a conversion matrix that converts the color space corresponding to the second color gamut to the XYZ space, is the pixel value of the pixel in the image after the linear processing, is the pixel value of the pixel in the first converted picture; 根据第二转换公式,将所述第一转换图片的颜色空间由XYZ颜色空间转换至所述第一色域对应的颜色空间,得到第二转换图片,所述第二转换公式为:According to the second conversion formula, the color space of the first conversion picture is converted from the XYZ color space to the color space corresponding to the first color gamut to obtain a second conversion picture. The second conversion formula is: 其中,M2为将所述第一色域对应的颜色空间转换为XYZ空间的转换矩阵,为所述第一转换图片中像素点的像素值,为所述第二转换图片中像素点的像素值; Wherein, M 2 is a conversion matrix that converts the color space corresponding to the first color gamut to XYZ space, is the pixel value of the pixel in the first converted picture, is the pixel value of the pixel in the second converted picture; 对所述第二转换图片进行逆线性处理以及逆归一化处理,得到中间图片,其中,所述逆线性处理为所述线性处理的逆运算,所述逆归一化处理为所述归一化处理的逆运算。Perform inverse linear processing and inverse normalization processing on the second converted picture to obtain an intermediate picture, wherein the inverse linear processing is an inverse operation of the linear processing, and the inverse normalization processing is the normalization The inverse operation of the processing. 3.如权利要求2所述的图片显示方法,其特征在于,所述对所述归一化图片中的各个像素点的R值、G值以及B值进行线性处理,得到线性处理后图片,包括:3. The picture display method according to claim 2, wherein the R value, G value and B value of each pixel in the normalized picture are linearly processed to obtain a picture after linear processing, include: 根据分段函数,对所述归一化图片中的各个像素点的R值、G值以及B值进行线性处理,得到线性处理后图片,所述分段函数为:According to the piecewise function, linearly process the R value, G value and B value of each pixel in the normalized picture to obtain a picture after linear processing, and the piecewise function is: 其中,a=0.9479,b=0.05214,c=0.07739,d=0.04045,γ=2.4,U是所述归一化图片中像素点的R值、G值或者B值,U_linear是所述线性处理后图片中像素点的R值、G值或者B值。 Among them, a=0.9479, b=0.05214, c=0.07739, d=0.04045, γ=2.4, U is the R value, G value or B value of the pixel in the normalized picture, U_linear is the linear processing The R value, G value or B value of the pixel in the picture. 4.如权利要求2所述的图片显示方法,其特征在于,所述终端设备本地中保存有将所述第二色域对应的颜色空间转换至XYZ颜色空间的转换矩阵M14. The picture display method according to claim 2, wherein a conversion matrix M 1 for converting a color space corresponding to the second color gamut to an XYZ color space is stored locally in the terminal device; 相应地,在所述根据第一转换公式,将所述线性处理后图片的颜色空间由所述第二色域对应的颜色空间转换至XYZ颜色空间,得到第一转换图片的步骤之前,还包括:Correspondingly, before the step of converting the color space of the linearly processed picture from the color space corresponding to the second color gamut to the XYZ color space according to the first conversion formula, and obtaining the first converted picture, further comprising: : 在所述终端设备本地查询将所述第二色域对应的颜色空间转换至XYZ颜色空间的转换矩阵M1A conversion matrix M 1 for converting the color space corresponding to the second color gamut to the XYZ color space is queried locally on the terminal device. 5.如权利要求2所述的图片显示方法,其特征在于,所述终端设备本地中保存有将所述第一色域对应的颜色空间转换至XYZ颜色空间的转换矩阵M25. The picture display method according to claim 2, wherein a conversion matrix M 2 for converting a color space corresponding to the first color gamut to an XYZ color space is locally stored in the terminal device; 相应地,在所述根据第二转换公式,将所述第一转换图片的颜色空间由XYZ颜色空间转换至所述第一色域对应的颜色空间,得到第二转换图片的步骤之前,还包括:Correspondingly, before the step of converting the color space of the first converted picture from the XYZ color space to the color space corresponding to the first color gamut according to the second conversion formula, and obtaining the second converted picture, further comprising: : 在所述终端设备本地查询将所述第一色域对应的颜色空间转换至XYZ颜色空间的转换矩阵M2Inquire locally on the terminal device a conversion matrix M 2 for converting the color space corresponding to the first color gamut to the XYZ color space; 计算所述矩阵M2的逆矩阵M2 -1The inverse matrix M 2 -1 of the matrix M 2 is calculated. 6.如权利要求1至5中任一项所述的图片显示方法,其特征在于,在所述获取色域标准为第二色域的待显示图片的步骤之前,还包括:6. The picture display method according to any one of claims 1 to 5, wherein before the step of acquiring the picture to be displayed whose color gamut standard is the second color gamut, the method further comprises: 获取初始图片;Get the initial image; 判断所述初始图片的色域标准是否为所述第二色域;Determine whether the color gamut standard of the initial picture is the second color gamut; 相应地,获取色域标准为第二色域的待显示图片,包括:Correspondingly, acquiring a picture to be displayed whose color gamut standard is the second color gamut includes: 若所述初始图片的色域标准为所述第二色域,则将所述初始图片确定为所述待显示图片。If the color gamut standard of the initial picture is the second color gamut, the initial picture is determined as the picture to be displayed. 7.如权利要求1至5中任一项所述的图片显示方法,其特征在于,所述显示所述中间图片,包括:7. The picture display method according to any one of claims 1 to 5, wherein the displaying the intermediate picture comprises: 对所述中间图片的颜色空间进行变换,将所述中间图片的颜色空间由所述第一色域对应的颜色空间转换为所述终端设备显示器的颜色空间,得到显示图片;Transforming the color space of the intermediate picture, converting the color space of the intermediate picture from the color space corresponding to the first color gamut to the color space of the terminal device display, to obtain a display picture; 显示所述显示图片。The display picture is displayed. 8.一种图片显示装置,应用于终端设备,所述终端设备可正确还原色域标准为第一色域的图片中的颜色,其特征在于,所述图片显示装置包括:8. A picture display device, applied to a terminal device, the terminal device can correctly restore the color in a picture whose color gamut standard is a first color gamut, wherein the picture display device comprises: 图片获取模块,用于获取色域标准为第二色域的待显示图片,其中,所述第二色域对应的颜色空间被所述第一色域对应的颜色空间覆盖;A picture acquisition module, configured to acquire a picture to be displayed whose color gamut standard is a second color gamut, wherein the color space corresponding to the second color gamut is covered by the color space corresponding to the first color gamut; 色域转换模块,用于将所述待显示图片转换为色域标准为所述第一色域的中间图片;a color gamut conversion module, configured to convert the to-be-displayed picture into an intermediate picture whose color gamut standard is the first color gamut; 图片显示模块,用于显示所述中间图片。The picture display module is used for displaying the intermediate picture. 9.一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7中任一项所述图片显示方法的步骤。9. A terminal device, comprising a memory, a processor and a computer program stored in the memory and running on the processor, characterized in that, when the processor executes the computer program, the implementation as claimed in the claims Steps of the picture display method described in any one of 1 to 7. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述图片显示方法的步骤。10. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the picture display according to any one of claims 1 to 7 is realized steps of the method.
CN201811523071.4A 2018-12-13 2018-12-13 Picture display method, picture display device and terminal equipment Pending CN109614064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811523071.4A CN109614064A (en) 2018-12-13 2018-12-13 Picture display method, picture display device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811523071.4A CN109614064A (en) 2018-12-13 2018-12-13 Picture display method, picture display device and terminal equipment

Publications (1)

Publication Number Publication Date
CN109614064A true CN109614064A (en) 2019-04-12

Family

ID=66008558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811523071.4A Pending CN109614064A (en) 2018-12-13 2018-12-13 Picture display method, picture display device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109614064A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377390A (en) * 2019-07-17 2019-10-25 Oppo广东移动通信有限公司 Image information processing method, device and electronic equipment
CN112328824A (en) * 2020-07-21 2021-02-05 北京沃东天骏信息技术有限公司 Picture detection method and system, computer system and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4843573A (en) * 1987-10-26 1989-06-27 Tektronix, Inc. Display-based color system
US20080112024A1 (en) * 2006-11-09 2008-05-15 Seiko Epson Corporation Image processing apparatus, image processing method, image processing program, recording medium storing image processing program, and image display apparatus
CN102110429A (en) * 2009-12-29 2011-06-29 英特尔公司 Techniques for adapting a color gamut
CN105118026A (en) * 2015-07-28 2015-12-02 小米科技有限责任公司 Color gamut mode switching method and device
CN108184037A (en) * 2017-12-12 2018-06-19 维沃移动通信有限公司 A kind of method for displaying image and mobile terminal
CN108806621A (en) * 2017-05-02 2018-11-13 上海和辉光电有限公司 A kind of gamut conversion method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4843573A (en) * 1987-10-26 1989-06-27 Tektronix, Inc. Display-based color system
US20080112024A1 (en) * 2006-11-09 2008-05-15 Seiko Epson Corporation Image processing apparatus, image processing method, image processing program, recording medium storing image processing program, and image display apparatus
CN102110429A (en) * 2009-12-29 2011-06-29 英特尔公司 Techniques for adapting a color gamut
CN105118026A (en) * 2015-07-28 2015-12-02 小米科技有限责任公司 Color gamut mode switching method and device
CN108806621A (en) * 2017-05-02 2018-11-13 上海和辉光电有限公司 A kind of gamut conversion method and device
CN108184037A (en) * 2017-12-12 2018-06-19 维沃移动通信有限公司 A kind of method for displaying image and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377390A (en) * 2019-07-17 2019-10-25 Oppo广东移动通信有限公司 Image information processing method, device and electronic equipment
CN110377390B (en) * 2019-07-17 2021-09-14 Oppo广东移动通信有限公司 Image information processing method and device and electronic equipment
CN112328824A (en) * 2020-07-21 2021-02-05 北京沃东天骏信息技术有限公司 Picture detection method and system, computer system and computer readable medium

Similar Documents

Publication Publication Date Title
CN109863549B (en) Electronic device, display apparatus, and control method thereof
CN104820537B (en) Method and device for adjusting terminal display effect
CN105261326A (en) Display device for adjusting display color gamut and method for adjusting display color gamut
WO2021135683A1 (en) Display terminal adjustment method and display terminal
CN105933616A (en) Image processing method and equipment
CN107909569A (en) One kind flower screen detection method, flower screen detection device and electronic equipment
CN110070499A (en) Image processing method, device and computer readable storage medium
CN113507598A (en) Video picture display method, device, terminal and storage medium
CN109614064A (en) Picture display method, picture display device and terminal equipment
CN116668838A (en) Image processing method and electronic equipment
CN109996017B (en) An image adjustment method and terminal thereof
WO2024138793A1 (en) Image correction method and apparatus based on fpga, and device and medium
CN103150182B (en) A kind of method and system of mobile terminal quick-setting wallpaper
WO2020155072A1 (en) Mixed layer processing method and apparatus
US10200571B2 (en) Displaying an adjusted image according to ambient light conditions
WO2022089211A1 (en) Image quality adjustment method and device
CN115775541A (en) Backlight compensation method and device of display screen, chip and terminal
TWI430653B (en) Image processing device and image processing method
WO2023035943A1 (en) Color card generating method, image processing method, and apparatuses, and readable storage medium
CN113194267B (en) Image processing method and device and photographing method and device
CN115063333B (en) Image processing method, device, electronic device and computer readable storage medium
CN115691394A (en) A display compensation method, device, equipment, display device and storage medium
EP4287129A1 (en) Image processing method and electronic device
TWI390961B (en) Image processing device and image processing method
CN118379949A (en) Image display method, device, electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190412

RJ01 Rejection of invention patent application after publication