CN109614064A - A kind of image display method, image display apparatus and terminal device - Google Patents

A kind of image display method, image display apparatus and terminal device 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
color space
value
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

This application provides a kind of image display method, image display apparatus and terminal devices, the image display method is applied to terminal device, the terminal device can correctly restore the color in the picture that gamut standards are the first colour gamut, the image display method includes: to obtain the picture to be shown that gamut standards are the second colour gamut, wherein, the corresponding color space of second colour gamut is covered by the corresponding color space of first colour gamut;The picture to be shown is converted into the intermediate picture that gamut standards are first colour gamut;Show the intermediate picture.The application can solve the technical issues of current terminal device can not expeditiously restore the color in the picture of different gamut standards to a certain extent.

Description

Picture display method, picture display device and terminal equipment
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to an image display method, an image display apparatus, a terminal device, and a computer-readable storage medium.
Background
At present, most terminal devices in the market can only correctly restore colors in pictures with a color gamut standard of a certain specific color gamut, for example, some terminal devices can only correctly restore colors in pictures with a color gamut standard of sRGB (standard Red Green Blue), while other terminal devices can only correctly restore colors in pictures with an Adobe RGB color gamut.
In order to enable the terminal device to correctly restore the colors in the pictures with different color gamut standards, the conventional practice adopted at present is: the method includes the steps that a display system of the terminal device is set to be in multiple working modes, such as an sRGB mode, a DCI-P3 mode and an AdobeRGB mode (when the display system of the terminal device is set to be in a certain working mode, the terminal device can only correctly restore colors in pictures of color gamut standards corresponding to the working mode), and the working mode of the display system of the terminal device is manually changed by a user, so that the terminal device can correctly restore colors in pictures of different color gamut standards.
Therefore, the current terminal device cannot efficiently restore the colors in the pictures with different color gamut standards because the user is required to manually change the operating mode of the display system of the terminal device.
Disclosure of Invention
In view of the above, the present application provides a picture display method, a picture display apparatus, 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 with different color gamut standards.
A first aspect of the present application provides a picture display method, which is applied to a terminal device, where the terminal device can correctly restore a color in a picture with a color gamut standard as a first color gamut, and the picture display method includes:
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 being the first color gamut;
and displaying the intermediate picture.
The second aspect of the present application provides a picture display device, which is applied to a terminal device, where the terminal device can correctly restore colors in a picture with a color gamut standard as a first color gamut, and the picture display device includes:
the image acquisition module is used for acquiring a to-be-displayed image with a color gamut standard of 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;
the color gamut conversion module is used for converting the picture to be displayed into an intermediate picture with the color gamut standard being the first color gamut;
and the picture display module is used for displaying the intermediate picture.
A third aspect of the present application provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the present application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method of the first aspect as described above.
Therefore, the image display method is applied to the terminal device, and the terminal device can correctly restore the color in the image with the color gamut standard being the first color gamut. The image display method provided by the application firstly obtains a to-be-displayed image, wherein the color gamut standard of the to-be-displayed image is a second color gamut, and a color space corresponding to the second color gamut is covered by a color space corresponding to the first color gamut, for example, if the first color gamut is a DCI-P3 color gamut, the second color gamut may be an sRGB color gamut (the color space corresponding to the sRGB color gamut is covered by a color space corresponding to a DCI-P3 color gamut); and secondly, converting the acquired picture to be displayed into an intermediate picture with the color gamut standard being the first color gamut, and then displaying the intermediate picture. 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 into the first color gamut without color distortion. Each step in the technical scheme provided by the application is executed by the terminal device, so that the terminal device capable of correctly reducing the color of the first color gamut picture can automatically convert the picture of the second color gamut into the intermediate picture with the color gamut standard being the first color gamut when receiving the picture of the second color gamut, so that the terminal device can correctly reduce the color in the picture of the first color gamut and also correctly reduce the color in the picture of the second color gamut without changing the working mode of a display system of the terminal device by a user, and therefore, the technical problem that the current terminal device cannot efficiently reduce the color in the pictures with different color gamut standards can be solved to a certain extent.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating an implementation of a picture display method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an implementation of a color gamut conversion method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a method for calculating an intermediate picture according to an embodiment of the present application;
fig. 4 is a schematic diagram of a color space corresponding to the sRGB color gamut;
fig. 5 is a schematic flow chart illustrating an implementation of another picture display method according to the second embodiment of the present application;
fig. 6 is a schematic structural diagram of an image display device according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from 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 embodiment of the application can be applied to terminal equipment, and the terminal equipment includes, but is not limited to: smart phones, tablet computers, desktop computers, learning machines, smart wearable devices, and the like.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes 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 used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, a picture display method provided in an embodiment of the present application is described below, where the picture display method is applied to a terminal device, and the terminal device can correctly restore a color in a picture with a color gamut standard being a first color gamut (for example, by manually setting a working mode of a display system of the terminal device by a user, the terminal device can correctly restore the color in the picture with the color gamut standard being the first color gamut):
in step S101, a to-be-displayed picture with a color gamut standard as a second color gamut is obtained, where a color space corresponding to the second color gamut is covered by a color space corresponding to the first color gamut;
in the embodiment of the present invention, if the first color gamut is an Adobe RGB color gamut, the second color gamut may be an sRGB color gamut, and if the first color gamut is a DCI-P3 color gamut, the second color gamut may be an sRGB color gamut. The first color gamut and the second color gamut are not particularly limited, but the second color gamut and the first color gamut satisfy the following relationship: the color space corresponding to the second gamut is to be covered by the color space corresponding to the first gamut.
In step S102, converting the picture to be displayed into an intermediate picture with a color gamut standard of the first color gamut;
in this embodiment of the application, the color gamut conversion needs to be performed on the to-be-displayed picture acquired in step S101, so as to obtain an intermediate picture with the color gamut standard being the first color gamut, fig. 2 shows an implementation flow diagram of a color gamut conversion method, and the intermediate picture in step S102 may be obtained according to fig. 2. As shown in fig. 2, the step S102 may include steps S201 to S205:
in step S201, performing normalization processing on the to-be-displayed picture to obtain a normalized picture in which the R value, the G value, and the B value of each pixel point are all within the range of [0,1 ];
in step S201, normalization processing may be performed according to the number of bits of the pixel value of the pixel point in the picture to be displayed, for example, if the R value, the B value, and the G value of each pixel point in the picture to be displayed are 8 bits, the R value, the B value, and the G value of each pixel point may be divided by 255, so as to obtain a normalized picture in which the R value, the B value, and the G value of each pixel point are all within the range of [0,1 ].
For a detailed description of the specific acquisition process of the intermediate picture shown in fig. 2, reference is made to fig. 3. As shown in fig. 3, the picture 301 to be displayed is a 2 × 3 picture, the picture 301 to be displayed has 6 pixels, each pixel has 8 bits of R value, G value, and B value, the R value of the first pixel is 180, the G value is 234, and the B value is 100. Firstly, in step S201, the to-be-displayed picture 301 is normalized to obtain a normalized picture 302, where an R value of a first pixel point of the normalized picture 302 is 180/255 ≈ 0.70588, a G value is 234/255 ≈ 0.91765, and a B value is 100/255 ≈ 0.39216.
In step S202, linear processing is performed on the R value, G value, and B value of each pixel point in the normalized picture to obtain a linearly processed picture
After the normalized picture is obtained in step S201, the normalized picture is subjected to linear processing to obtain a linearly processed picture. In step S202, linear processing may be performed on the normalized picture by using a piecewise function shown in the following formula:
note that, a is 0.9479, B is 0.05214, c is 0.07739, d is 0.04045, γ is 2.4, U is an R value, a G value, or a B value of a pixel in the normalized picture, and U _ linear is an R value, a G value, or a B value of a pixel in the picture after the linear processing.
It is assumed that the normalized picture 302 in fig. 3 is linearly processed using the above-mentioned piecewise function, so as to obtain a linearly processed picture 303. For the first pixel of the normalized picture 302, the R value ≈ 0.70588, the G value ≈ 0.91765, and the B value ≈ 0.39216, so that according to the above piecewise function, the R value ═ of the first pixel of the linearly processed picture 303 can be obtained (a × 0.70588+ B)γ0.4565, G value ═ a × 0.91765+ b)γ0.8229, B value ═ a × 0.39216+ B)γ0.1275. For other pixels of the linearly processed picture 303The calculation method of the dot pixel value is not described herein (indicated by an ellipsis in fig. 3).
In step S203, the color space of the linearly processed picture is converted from the color space corresponding to the second color gamut into an XYZ color space according to a first conversion formula, so as to obtain a first converted picture, where the first conversion formula is as follows:wherein M is1In order to convert the color space corresponding to the second gamut into a conversion matrix of the XYZ space,the pixel values of the pixel points in the image after the linear processing,the pixel values of the pixel points in the first converted picture are obtained;
in step S203, the matrix M is1Is a 3 × 3 matrix, and the matrix M is1And multiplying the pixel value of each pixel point of the linearly processed picture to obtain a first converted picture. As shown in FIG. 3, the R value of the first pixel of the first transformed picture 304 is M1With a 3 x 1 matrixThe first row of values after multiplication, G, is M1With a 3 x 1 matrixThe multiplied second row number value, B is M1With a 3 x 1 matrixThe calculation of the multiplied third row numerical value for the pixel values of other pixel points of the picture 304 is not repeated here.
Further, in this step, M1To correspond the second color gamutThe color space of (2) into an XYZ space, and M is briefly described below1The acquisition process of (1):
wherein, 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
As can be seen, M1Calculating X in the formular、Yr、Zr、Xg、Yg、Zg、Xb、YbAnd ZbIs according to Rx、Ry、Gx、Gy、BxAnd ByTo obtain wherein R isx、Ry、Gx、Gy、BxAnd ByRespective coordinates in the normalized color space for the color space corresponding to the second gamut. Assuming that the second gamut is the sRGB gamut, R is shown in fig. 4xAnd RyRespectively the abscissa and ordinate of the point A, Rx=0.64、Ry=0.33;GxAnd GyRespectively the horizontal and vertical coordinates of point B, Gx=0.30、Gy=0.60;BxAnd ByRespectively the horizontal and vertical coordinates of point C, Bx=0.15、By=0.06。
In addition, M1Calculating S in the formular、SgAnd SbCalculated according to the following formula:
wherein,the white point coordinates under the D65 illuminant, or the white point coordinates under the D50 illuminantIs the white point coordinate under the light source of D65
Matrix M shown above1The calculation process of (a) is relatively complicated, so that in order to save the running time of the terminal device, the matrix M can be calculated in advance in practical application1And locally saving M in the terminal equipment1Accordingly, before step S203, it may include: local query of transformation matrix M at terminal equipment1. So as to be able to find M according to the query1Step S203 is executed.
In step S204, the color space of the first converted picture is converted from the XYZ color space to the color space corresponding to the first color gamut according to a second conversion formula, so as to obtain a second converted picture, where the second conversion formula is:wherein M is2In order to convert the color space corresponding to the first color gamut into a conversion matrix of the XYZ space,the pixel values of the pixel points in the first converted picture,the pixel values of the pixel points in the second converted picture are obtained;
in step S204, the matrix M is obtained2Also a 3 x 3 matrix, and a matrix M2Inverse matrix M of2 -1The pixel of each pixel point of the first converted picture obtained in step S203And multiplying the values to obtain a second conversion picture. As shown in FIG. 3, the R value of the first pixel of the second converted picture 305 is M2 -1M1With a 3 x 1 matrixThe first row of values after multiplication, G, is M2 -1M1With a 3 x 1 matrixThe multiplied second row number value, B is M2 -1M1With a 3 x 1 matrixThe third row of multiplied values is not repeated here for the calculation of the pixel values of other pixels of the picture 305.
In this step, M2The specific calculation process and M are used to convert the color space corresponding to the first color gamut into a conversion matrix of XYZ space1For the exact same, refer to the description of step S203, and the description is omitted here. Due to the matrix M2The calculation process of (a) is also relatively complicated, so that in order to save the running time of the terminal device, the matrix M can be calculated in advance in practical application2And locally saving M in the terminal equipment2Accordingly, before step S204, it may include: local query matrix M at terminal equipment2And calculating the matrix M2Inverse matrix M of2 -1. Thus can be according to M2 -1Step S204 is executed.
Alternatively, the matrix M may be calculated in advance2 -1Directly saving M locally at the terminal equipment2 -1Accordingly, before step S204, it may include: local query matrix M at terminal equipment2 -1. So as to be able to find M according to the query2 -1Step S204 is executed.
In step S205, an inverse linear process and an inverse normalization process are performed on the second converted picture to obtain an intermediate picture, wherein the inverse linear process is an inverse operation of the linear process, and the inverse normalization process is an inverse operation of the normalization process.
In this step, the second converted picture obtained in step S204 is first subjected to inverse linear processing, which is the inverse operation of the linear processing described in step S202, and then subjected to inverse normalization processing, which is the inverse operation of the normalization processing described above.
As shown in fig. 3, first, the 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 calculation process of the inverse function is conventional and will not be described herein, and only f is used-1(x) Representing), the R value of the first pixel point of the image 306 after the inverse linear processing is f can be obtained-1(RSecond conversion) G has a value of f-1(GSecond conversion) B has a value of f-1(BSecond conversion) Wherein R isSecond conversion、GSecond conversionAnd BSecond conversionAre respectively asThe first row number, the second row number, and the third row number. The calculation process for other pixel points of the picture 306 is not described herein again.
Secondly, the picture 306 is subjected to inverse normalization processing, that is, the R value, the G value and the B value of each pixel point are multiplied by 255, so as to obtain an intermediate picture 307.
In the embodiment of the present application, fig. 2 shows a method for determining an intermediate picture, however, it should be noted by those skilled in the art that other methods are also possible for the method for determining an intermediate picture in step S102, and the method is not limited to fig. 2.
In step S103, the intermediate picture is displayed;
the technical scheme provided by the application is applied to the terminal equipment which can correctly restore the color in the picture of the first color gamut, so that the terminal equipment can correctly restore the color in the intermediate picture.
Please 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 necessarily covers the color space corresponding to the first color gamut. The terminal device can display the intermediate picture by executing the following steps: firstly, 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 into the color space of the display of the terminal device; secondly, the display picture is displayed on a display of the terminal equipment.
In the first embodiment of the present application, steps S101 to S103 are executed by a terminal device, so that the terminal device capable of correctly restoring colors of a first color gamut picture can automatically convert a second color gamut picture into an intermediate picture with a color gamut standard being the first color gamut when receiving the second color gamut picture, so that the terminal device can correctly restore not only colors in the first color gamut picture but also colors in the second color gamut picture without changing a working mode of a display system of the terminal device by a user, and therefore, a technical problem that a current terminal device cannot efficiently restore colors in pictures with different color gamut standards can be solved to a certain extent.
Example two
Another picture display method provided in the second embodiment of the present application is described below, and similar to the first embodiment, the picture display method is also applied to a terminal device, and in the second embodiment of the present application, the first color gamut is defined as a DCI-P3 color gamut, and the second color gamut is defined as an sRGB color gamut, and the terminal device can correctly restore colors in a picture in a DCI-P3 color gamut, please refer to fig. 5, where the picture display method provided in the second embodiment of the present application includes:
in step S501, an initial picture is acquired;
the initial picture in step S501 may be a picture taken by a user through a camera Application (APP) of the terminal device, for example, the user starts a camera APP in the terminal device, and takes a picture by using the camera APP, and the terminal device may determine the picture as the initial picture; or, the initial picture may be a camera APP in the terminal device or a frame of preview picture in a preview picture acquired by the camera APP, for example, after the user starts the camera APP of the terminal device, the terminal device may use a certain frame of picture displayed on a display screen of the terminal device as the initial picture; or, the initial picture may be a picture locally stored in the terminal device, for example, the terminal device may use a picture in a local gallery as the initial picture; or, the initial picture may 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; alternatively, the initial picture may also be a certain frame of picture in a video watched online or a locally stored video, for example, a certain frame of picture in an animation picture watched online by the user is determined as the initial picture. The source of the initial picture is not limited in the present application.
In step S502, it is determined whether the color gamut standard of the initial picture is the sRGB color gamut;
the terminal device may determine whether the color gamut standard of the initial picture is an sRGB color gamut by obtaining the attribute information of the initial picture, and if it is determined that the initial picture is the sRGB color gamut, determine the initial picture as the picture to be displayed in the first embodiment, and execute steps S102 to S103 in the first embodiment to display the initial picture.
If it is determined that the initial picture is not in the sRGB color gamut, the initial picture may be displayed without any processing, however, the color of the displayed initial picture may deviate from the color of the initial picture itself.
Or, if it is determined that the initial picture obtained in step S501 is not the sRGB color gamut, it may be determined 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, and if it is determined that the color space corresponding to the DCI-P3 is covered, color gamut conversion may be performed on the initial picture, the initial picture is converted into a picture whose color gamut standard is the DCI-P3 color gamut, and then the converted picture is displayed (a specific process of color gamut conversion may refer to embodiment one), and if it is determined that the color space corresponding to the DCI-P3 is not covered, the initial picture may be directly displayed.
In step S503, if the color gamut standard corresponding to the initial picture is the sRGB color gamut, determining the initial picture as a picture to be displayed;
in step S504, the picture to be displayed is converted into an intermediate picture with a color gamut standard of DCI-P3;
in step S505, the intermediate picture is displayed;
that is, if the color gamut standard of the initial picture obtained in step S501 is the sRGB color gamut, the initial picture is determined as the picture to be displayed in the first embodiment, and steps S102 to S103 in the first embodiment are executed to display the initial picture. In the second embodiment of the present application, the specific implementation process of steps S504 to S505 is completely the same as that of steps S102 to S103 in the first embodiment, and specific reference may be made to the description of the first embodiment, and details are not repeated here.
In the second embodiment of the present application, the first color gamut in the first embodiment is specifically determined as a DCI-P3 color gamut, and the second color gamut is specifically determined as an sRGB color gamut, so that a terminal device capable of correctly reducing the colors of a picture in a DCI-P3 color gamut can correctly reduce the colors of the picture in the sRGB color gamut without changing the operating mode of the display system of the terminal device by a user
It should be understood that, the size of the serial number of each step in the foregoing method embodiments does not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
A third embodiment of the present application provides a picture display apparatus, which is applied to a terminal device, where the terminal device can correctly restore a color in a picture with a color gamut standard as a first color gamut, and for convenience of description, only a part related to the present application is shown, as shown in fig. 6, the picture display apparatus 600 includes:
a picture obtaining module 601, configured to obtain a to-be-displayed picture with a color gamut standard being a second color gamut, where a color space corresponding to the second color gamut is covered by a color space corresponding to the first color gamut;
a color gamut conversion module 602, configured to convert the picture to be displayed into an intermediate picture with a color gamut standard equal to the first color gamut;
a picture display module 603, configured to display the intermediate picture.
Optionally, the color gamut conversion module 602 includes:
the normalization processing unit is used for performing normalization processing on the picture to be displayed to obtain a normalized picture with the R value, the G value and the B value of each pixel point within the range of [0,1 ];
the linear processing unit is used for carrying out linear processing on the R value, the G value and the B value of each pixel point in the normalized picture to obtain a linearly processed picture;
a first conversion unit, configured to convert the color space of the linearly processed picture from the color space corresponding to the second color gamut to an XYZ color space according to a first conversion formula, so as to obtain a first converted picture, where the first conversion formula is as follows:
wherein M is1In order to convert the color space corresponding to the second gamut into a conversion matrix of the XYZ space,the pixel values of the pixel points in the image after the linear processing,the pixel values of the pixel points in the first converted picture are obtained;
a second conversion unit, configured to convert the color space of the first conversion picture from the XYZ color space to the color space corresponding to the first color gamut according to a second conversion formula, so as to obtain a second conversion picture, where the second conversion formula is:
wherein M is2In order to convert the color space corresponding to the first color gamut into a conversion matrix of the XYZ space,the pixel values of the pixel points in the first converted picture,the pixel values of the pixel points in the second converted picture are obtained;
and an inverse processing unit, configured to perform inverse linear processing and inverse normalization processing on the second converted picture to obtain an intermediate picture, where the inverse linear processing is an inverse operation of the linear processing, and the inverse normalization processing is an inverse operation of the normalization processing.
Optionally, the linear processing unit is specifically configured to:
according to a piecewise function, carrying out linear processing on the R value, the G value and the B value of each pixel point in the normalized picture to obtain a linearly processed picture, wherein the piecewise function is as follows:
wherein, a is 0.9479, B is 0.05214, c is 0.07739, d is 0.04045, γ is 2.4, U is the R value, G value or B value of the pixel in the normalized picture, and U _ linear is the R value, G value or B value of the pixel in the picture after the linear processing.
Optionally, the terminal device locally stores a conversion matrix M for converting the color space corresponding to the second color gamut into the XYZ color space1
Accordingly, the color gamut conversion module 602 further includes:
a first matrix query unit, configured to query locally at the terminal device a conversion matrix M for converting the color space corresponding to the second color gamut into the XYZ color space1
Optionally, the terminal device locally stores a conversion matrix M for converting the color space corresponding to the first color gamut into the XYZ color space2
Accordingly, the color gamut conversion module 602 further includes:
a second matrix query unit, configured to query, locally at the terminal device, a conversion matrix M for converting the color space corresponding to the first color gamut into the XYZ color space2
An inverse matrix calculation unit for calculating the matrix M2Inverse matrix M of2 -1
Optionally, the image display apparatus 600 further includes:
the initial picture acquisition module is used for acquiring an initial picture;
a color gamut standard judging module, configured to judge whether the color gamut standard of the initial picture is the second color gamut;
correspondingly, the image obtaining module 601 is specifically configured to: and if the color gamut standard of the initial picture is the second color gamut, determining the initial picture as the picture to be displayed.
Optionally, the picture display module 603 includes:
a color space transformation unit, configured to transform a color space of the intermediate picture, and transform the color space of the intermediate picture from a color space corresponding to the first color gamut into a color space of the terminal device display, so as to obtain a display picture;
and the display unit is used for displaying the display picture.
It should be noted that, for the information interaction, execution process, and other contents between the above devices/modules/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, which may be referred to in the section of the embodiment of the method specifically, and are not described herein again.
Example four
Fig. 7 is a schematic diagram of a terminal device according to a fourth embodiment of the present application, where the terminal device can correctly restore colors in a picture with a color gamut standard being a first color gamut. As shown in fig. 7, the terminal device 7 of this embodiment includes: a processor 70, a memory 71 and a computer program 72 stored in said memory 71 and executable on said processor 70. The processor 70 implements the steps of the various method embodiments described above, such as steps S101 to S103 shown in fig. 1, when executing the computer program 72. Alternatively, the processor 70 implements the functions of the modules/units in the device embodiments, for example, the functions of the modules 601 to 603 shown in fig. 6, when executing the computer program 72.
Illustratively, the computer program 72 may be divided into one or more modules/units, which are stored in the memory 71 and executed by the processor 70 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 72 in the terminal device 7. For example, the computer program 72 may be divided into a picture acquisition module, a color gamut conversion module, and a picture display module, and the functions of the modules are as follows:
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 being the first color gamut;
and displaying the intermediate picture.
The terminal device may include, but is not limited to, a processor 70 and a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a terminal device 7, and does not constitute a limitation of the terminal device 7, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device may also include input and output devices, network access devices, buses, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided in the terminal device 7. Further, the memory 71 may include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used to store the computer program and other programs and data required by the terminal device. The above-mentioned memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the above modules or units is only one logical function division, and there may be other division manners in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units described above, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media that does not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A picture display method is applied to a 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 is characterized by comprising 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.
2. The picture display method according to claim 1, wherein the converting the picture to be displayed into the intermediate picture with the color gamut standard of the first color gamut comprises:
normalizing the picture to be displayed to obtain a normalized picture with the R value, the G value and the B value of each pixel point within the range of [0,1 ];
performing linear processing on the R value, the G value and the B value of each pixel point in the normalized picture to obtain a linearly processed picture;
converting the color space of the linearly processed picture from the color space corresponding to the second color gamut to an XYZ color space according to a first conversion formula to obtain a first converted picture, where the first conversion formula is:
wherein M is1To convert the color space corresponding to the second gamut into a conversion matrix of XYZ space,for the pixel values of the pixels in the linearly processed picture,the pixel values of the pixel points in the first converted picture are obtained;
converting the color space of the first conversion picture from the XYZ color space to the color space corresponding to the first color gamut according to a second conversion formula to obtain a second conversion picture, where the second conversion formula is:
wherein M is2To convert the color space corresponding to the first gamut into a conversion matrix of the XYZ space,for the pixel values of the pixel points in the first converted picture,the pixel values of the pixel points in the second conversion picture are obtained;
and performing inverse linear processing and inverse normalization processing on the second converted picture to obtain an intermediate picture, wherein the inverse linear processing is inverse operation of the linear processing, and the inverse normalization processing is inverse operation of the normalization processing.
3. The picture display method according to claim 2, wherein the performing linear processing on the R value, the G value, and the B value of each pixel point in the normalized picture to obtain a linearly processed picture comprises:
according to a piecewise function, carrying out linear processing on the R value, the G value and the B value of each pixel point in the normalized picture to obtain a linearly processed picture, wherein the piecewise function is as follows:
wherein a is 0.9479, B is 0.05214, c is 0.07739, d is 0.04045, γ is 2.4, U is an R value, a G value, or a B value of a pixel in the normalized picture, and U _ linear is an R value, a G value, or a B value of a pixel in the linearly processed picture.
4. The picture display method according to claim 2, wherein a conversion matrix M for converting the color space corresponding to the second gamut into the XYZ color space is locally stored in the terminal device1
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 to obtain the first converted picture, the method further includes:
locally inquiring a conversion matrix M for converting the color space corresponding to the second color gamut into the XYZ color space in the terminal equipment1
5. The picture display method according to claim 2, wherein a conversion matrix M for converting the color space corresponding to the first gamut into the XYZ color space is locally stored in the terminal device2
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 to obtain the second converted picture, the method further includes:
locally inquiring a conversion matrix M for converting the color space corresponding to the first color gamut into the XYZ color space in the terminal device2
Calculating the matrix M2Inverse matrix M of2 -1
6. The picture display method according to any one of claims 1 to 5, wherein before the step of obtaining the picture to be displayed with the color gamut standard of the second color gamut, the method further comprises:
acquiring an initial picture;
judging whether the color gamut standard of the initial picture is the second color gamut or not;
correspondingly, acquiring a to-be-displayed picture with the color gamut standard being the second color gamut comprises the following steps:
and if the color gamut standard of the initial picture is the second color gamut, determining the initial picture as the picture to be displayed.
7. The picture display method according to any one of claims 1 to 5, wherein the displaying the intermediate picture comprises:
converting the color space of the intermediate picture from the color space corresponding to the first color gamut into the color space of the display of the terminal equipment to obtain a display picture;
and displaying the display picture.
8. The utility model provides a picture display device, is applied to terminal equipment, terminal equipment can correctly restore the colour in the picture that the colour gamut standard is first colour gamut, its characterized in that, picture display device includes:
the image acquisition module is used for acquiring a to-be-displayed image with a color gamut standard of 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;
the color gamut conversion module is used for converting the picture to be displayed into an intermediate picture with the color gamut standard of the first color gamut;
and the picture display module is used for displaying the intermediate picture.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the picture display method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the picture display method according to any one of claims 1 to 7.
CN201811523071.4A 2018-12-13 2018-12-13 A kind of image display method, image display apparatus and terminal device Pending CN109614064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811523071.4A CN109614064A (en) 2018-12-13 2018-12-13 A kind of image display method, image display apparatus and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811523071.4A CN109614064A (en) 2018-12-13 2018-12-13 A kind of image display method, image display apparatus and terminal device

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 A kind of image display method, image display apparatus and terminal device

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
KR101138852B1 (en) Smart clipper for mobile displays
US11328645B2 (en) Display control method and device for N-primary-color display panel, and display device
US20190325802A1 (en) Method and apparatus for color gamut mapping color gradient preservation
CN110996174B (en) Video image quality enhancement method and related equipment thereof
CN113507598B (en) Video picture display method, device, terminal and storage medium
CN104935902A (en) Image color enhancement method and device, and electronic equipment
CN112287257A (en) Page display method and device, electronic equipment and storage medium
CN1655626B (en) System and method for clipping values of pixels
WO2019090580A1 (en) System and method for image dynamic range adjusting
CN111312141A (en) Color gamut adjusting method and device
CN109614064A (en) A kind of image display method, image display apparatus and terminal device
TW201342879A (en) Extended range color space
CN111338627B (en) Front-end webpage theme color adjustment method and device
CN116489377A (en) Image processing method and electronic device
CN111615714B (en) Color adjustment method of RGB data
US10200571B2 (en) Displaying an adjusted image according to ambient light conditions
CN104021579A (en) Method and device for changing colors of image
WO2021172744A1 (en) Electronic device and control method therefor
CN109996017B (en) Image adjusting method and terminal thereof
CN111192333B (en) Image display method, image display device, and computer storage medium
CN112261227A (en) Method for multi-screen equal-proportion adaptation of mobile terminal
CN112887686B (en) Image acquisition device and method
CN109003225A (en) A kind of more palace trrellis diagram piece treating method and apparatus and a kind of electronic equipment
WO2016169205A1 (en) Display method and display device
CN108600721A (en) A kind of method of color gamut mapping of color and equipment

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