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

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

Info

Publication number
CN115294945A
CN115294945A CN202210753681.3A CN202210753681A CN115294945A CN 115294945 A CN115294945 A CN 115294945A CN 202210753681 A CN202210753681 A CN 202210753681A CN 115294945 A CN115294945 A CN 115294945A
Authority
CN
China
Prior art keywords
color
rgb
value
target
values
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210753681.3A
Other languages
Chinese (zh)
Inventor
黄嘉发
华伟彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youku Technology Co Ltd
Original Assignee
Beijing Youku Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Youku Technology Co Ltd filed Critical Beijing Youku Technology Co Ltd
Priority to CN202210753681.3A priority Critical patent/CN115294945A/en
Publication of CN115294945A publication Critical patent/CN115294945A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The embodiment of the application discloses a method and a device for displaying an object and generating a color lookup table, wherein the method comprises the following steps: acquiring a configuration file associated with the current terminal device, wherein the configuration file comprises a color lookup table (LUT), the LUT is used for storing a corresponding relation between a first RGB numerical value and a second RGB numerical value of a plurality of points, the color vision effect of the second RGB numerical value in a second color gamut meets a target condition through similarity between the color vision effect and a standard color vision effect of the first RGB numerical value in a preset first color gamut; when a target object needs to be displayed, determining an original RGB value corresponding to the target object; and determining a target color mode of the current terminal equipment, and mapping the original RGB numerical value into a target RGB numerical value by using a target LUT table corresponding to the target color mode for displaying. By the embodiment of the application, the influence of color mode adjustment in the terminal equipment on image display (including video playing and the like) in specific application can be reduced.

Description

Object display method and device, and color lookup table generation method and device
Technical Field
The present application relates to the field of interface display technologies, and in particular, to a method and an apparatus for generating an object display and generating a color lookup table.
Background
In some terminal devices such as mobile phones, in order to meet various personalized requirements of users, various color modes may be provided, for example, including a "standard mode", a "vivid mode", and the like. Wherein, different color modes correspond to different color gamuts, can show same show object as different vividness. Thus, if the user prefers a bright tone, a "bright mode" may be selected, if a soft tone is preferred, a "standard mode" may be selected, and so on.
However, when a user adjusts the color mode of the terminal device, the user usually only wants to adjust the color tone on a UI (user interface) level such as a desktop, and actually, such a change in the color mode may affect various aspects of the terminal device, including specific applications installed in the device. For example, if a video-related application is installed in a certain terminal device, when a specific video is played by the application after the color mode of the terminal device is adjusted, the overall color tone of the played video may also be changed. For example, after adjusting to the "vivid mode", the color of the face of the person in the video may become reddish relative to the standard mode, so as to affect the playing effect of the video.
Therefore, how to reduce the influence of color mode adjustment in the terminal device on image display (including video playing) in specific applications becomes a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application provides a method and a device for displaying an object and generating a color lookup table, which can reduce the influence of color mode adjustment in terminal equipment on image display (including video playing and the like) in specific application.
The present application provides the following:
a method of generating a color lookup table, comprising:
acquiring first RGB values respectively corresponding to a plurality of points in a target color lookup table (LUT) space;
respectively providing the first RGB values to test terminal equipment by taking points as units so as to display an image corresponding to the first RGB values in the test terminal equipment based on a second color gamut, and collecting color vision values displayed by the test terminal equipment through color analysis equipment so as to determine visual test values of the first RGB values in the second color gamut;
determining color vision numerical values presented by the first RGB numerical values in a first color gamut, and determining target values according to the color vision numerical values;
and respectively starting multiple rounds of iterative adjustment of the RGB values according to the deviation between the test value and the target value by taking the point as a unit, wherein after the RGB values are adjusted in each round of iteration, the color vision values displayed by the adjusted RGB values in the second color gamut display are estimated, the deviation condition between the estimated value of the color vision values and the target value is determined, and the corresponding relation between the first RGB and the second RGB is stored in the LUT table until the deviation between the estimated value of the color vision values and the target value obtained after the RGB values are adjusted to the second RGB values is smaller than a target threshold value.
An object display method, comprising:
acquiring a configuration file associated with current terminal equipment, wherein the configuration file is in multiple parts and respectively corresponds to multiple color modes supported in the terminal equipment, the configuration file comprises a color lookup table (LUT) which is used for storing a corresponding relation between a first RGB value and a second RGB value of multiple points, wherein the color vision effect of the second RGB value in a second color gamut and the similarity between the standard color vision effect of the first RGB value in a preset first color gamut meet a target condition;
when a target object needs to be displayed, determining an original RGB value corresponding to the target object;
and determining a target color mode of the current terminal equipment, and displaying the original RGB numerical value after mapping the original RGB numerical value into a target RGB numerical value by using a target LUT (look up table) corresponding to the target color mode, so that the similarity between the color vision effect of the target object in a second color gamut corresponding to the target color mode and the standard color vision effect in the first color gamut meets the target condition.
An apparatus for generating a color look-up table, comprising:
the first RGB numerical value determining unit is used for acquiring first RGB numerical values respectively corresponding to a plurality of points in the space of the target color lookup table LUT;
the test value determining unit is used for respectively providing the first RGB values to test terminal equipment by taking a point as a unit so as to display an image corresponding to the first RGB values in the test terminal equipment based on a second color gamut, and collecting color vision values presented by the test terminal equipment through color analysis equipment so as to determine a visual test value presented by the first RGB values in the second color gamut;
a target value determination unit configured to determine a color vision numerical value represented by the first RGB numerical value in the first color gamut, and determine a target value according to the color vision numerical value;
and the iteration adjusting unit is used for respectively starting multiple rounds of iteration adjustment on the RGB values according to the deviation amount between the test value and the target value by taking a point as a unit, estimating the color vision values presented by the adjusted RGB values when the second color gamut is displayed after the RGB values are adjusted in each round of iteration, and determining the deviation condition between the estimated values of the color vision values and the target value until the deviation amount between the estimated values of the color vision values and the target value, which are obtained after the RGB values are adjusted to be the second RGB values, is smaller than a target threshold value, and storing the corresponding relation between the first RGB and the second RGB values in the LUT table.
An object display apparatus comprising:
the configuration file acquisition unit is used for acquiring a configuration file associated with the current terminal equipment, wherein the configuration file is divided into a plurality of parts and respectively corresponds to a plurality of color modes supported in the terminal equipment, the configuration file acquisition unit comprises a color lookup table (LUT) which is used for storing the corresponding relation between a first RGB value and a second RGB value of a plurality of points, wherein the color vision effect presented by the second RGB value in a second color gamut and the similarity between the standard color vision effect presented by the first RGB value in a preset first color gamut meet a target condition;
the device comprises an original RGB numerical value determining unit, a target object display unit and a display unit, wherein the original RGB numerical value determining unit is used for determining an original RGB numerical value corresponding to a target object when the target object needs to be displayed;
and the target RGB numerical value mapping unit is used for determining a target color mode in which the current terminal equipment is positioned, mapping the original RGB numerical value into a target RGB numerical value by using a target LUT (look up table) corresponding to the target color mode, and then displaying the target RGB numerical value so as to enable the similarity between the color vision effect presented by the target object in a second color gamut corresponding to the target color mode and the standard color vision effect presented in the first color gamut to meet the target condition.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the preceding claims.
An electronic device, comprising:
one or more processors; and
memory associated with the one or more processors for storing program instructions which, when read and executed by the one or more processors, perform the steps of the method of any of the preceding claims.
According to the specific embodiments provided by the application, the application discloses the following technical effects:
according to the embodiment of the application, the LUT table corresponding to the plurality of color modes of the terminal device can be obtained in advance, the LUT table stores the corresponding relationship between the first RGB values and the second RGB values of the plurality of points, and the similarity between the color vision effect exhibited by the second RGB values in the second color gamut and the standard color vision effect exhibited by the first RGB values in the preset first color gamut satisfies the target condition. Thus, when a target object needs to be displayed, after an original RGB value is determined, a target color mode in which the current terminal device is located may be determined, and the original RGB value is mapped to the target RGB value by using a target LUT table corresponding to the target color mode and then displayed, so that a color vision effect exhibited by the target object in a second color gamut corresponding to the target color mode and a similarity between a standard color vision effect exhibited in the first color gamut satisfy the target condition. In this way, when the target object is displayed in the terminal device, even if the color gamut used in the terminal device is different from the color gamut on which the target object is based when color is mixed, a color sensation effect that meets the color mixing expectation can be obtained.
When the LUT table is generated, an LUT space may be pre-established, the first RGB values of each point in the LUT space are respectively sent to the test terminal device for display, and then color vision values are collected by the color analysis device, and the first RGB values show visual test values in the second color gamut. Additionally, a visual target value may be obtained for the first RGB values when displayed in the first color gamut. Then, with a point as a unit, according to the deviation amount between the test value and the target value, respectively starting multiple rounds of iterative adjustment on the RGB values, in each round of adjustment, estimating the color vision value presented by the adjusted RGB value when the second color gamut is displayed, and determining the deviation between the estimated value of the color vision value and the target value, until the RGB is adjusted to the second RGB value, and when the deviation amount between the estimated value of the color vision value and the target value is smaller than a target threshold value, the corresponding relationship between the first RGB and the second RGB can be stored in the LUT table. In this way, automatic generation of the LUT table can be achieved. In addition, the color vision numerical value presented when the adjusted RGB numerical value is displayed in the second color gamut can be determined in an estimation mode, so that the dependence on color analysis equipment can be reduced, and the efficiency is improved conveniently.
In addition, XYZ values can be used as color vision values, in each iteration process, XYZ components with the largest deviation amount can be determined according to the deviation condition between the XYZ values, then, one component of RGB is adjusted according to the difference of the influence degree of each XYZ component on each RGB component, and the other RGB components are not adjusted, so that the RGB is prevented from being adjusted to wrong values.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for the practice of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments 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 diagram of different color gamut comparisons;
FIG. 2 is a schematic diagram of a system architecture provided by an embodiment of the present application;
FIG. 3 is a flow chart of a first method provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of a LUT space provided by an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a reference point selection manner provided in an embodiment of the present application;
FIG. 6 is a flow chart of a second method provided by embodiments of the present application;
FIG. 7 is a schematic diagram of a first apparatus provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of a second apparatus provided by an embodiment of the present application;
fig. 9 is a schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived from the embodiments given herein by a person of ordinary skill in the art are intended to be within the scope of the present disclosure.
In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, some concepts are first described below.
1. RGB: is a color model (also called color coding method) that describes colors by a set of numbers. It is an additive color model, but does not represent the color gamut itself. The color of a pixel can only be determined by combining with the description of the standard color gamut. Through this process, the colors in the particular presentation object (image, document, etc.) can be determined. Thus, the visual effects (i.e., the effects actually observable by the human eye, including the colors actually rendered, etc.) exhibited by the display are different for the same RGB value when combined with descriptions of different color gamuts.
2. Color gamut: it is the area of the range of colors that a certain color standard can express, that is, the sum of the colors that a technical system can generate, and simply the area that can be covered in the color. The colors of the visible spectrum in nature constitute the largest color gamut that encompasses all colors visible to the human eye, which can be represented by the CIELAB color space. However, the gamut size for a particular device is dependent on the device, medium, and viewing conditions. The larger the gamut of the device, the more colors that can be reproduced. That is, the color gamut of a particular device is typically some subset of the CIELAB color space. In other words, the CIELAB color space is a space where the human eye can display all colors, but the display can display colors that are not so large, and the display can display a smaller color gamut than the human eye. For example, common color gamuts include rec.709, DCI-P3, adobe RGB (color gamut defined by Adobe corporation), NTSC (National Television Standards Committee, usa), and the like. In the field of film and television, rec.709 and DCI-P3 are the most commonly used. Among them, rec.709 is also called sRGB, which is one of the earliest color standards and is also an international standard for high definition television; DCI-P3 is a wide color gamut standard introduced by the U.S. movie industry and is one of the color standards for current digital cinema playback devices, which exhibits a color gamut that is 25% greater than that exhibited by rec.709, primarily a wider range of green and red colors. For example, as shown in fig. 1 (a) and (B), the bell line 11 is defined by a CIELAB color space complete set, the triangular region 12 in fig. 1 (a) corresponds to the rec.709 color gamut, and the triangular region 13 in fig. 1 (B) corresponds to the DCI-P3 color gamut.
3. XYZ color system: in order to solve the problem of more accurately defining colors, X and Z in the three components of XYZ represent chroma, and Y can represent brightnessThe degree can also represent the chroma, and the units of the three components are cd/m 2 (alternatively called nit). As described above, since the RGB displayed by different devices are different, and different devices display the same RGB, which is seen by human eyes as being very different, the RGB cannot be used to accurately define the color. However, if the above XYZ color system is used, the color space of a device can be defined more accurately.
4. And (2) xyY: the three-dimensional XYZ color system is changed to an "xy chromaticity diagram" (xy color diagram) of a two-dimensional xy plane. This xy chromaticity diagram was defined by CIE (Commission International de l' Eclairage, french, international Commission on illumination) in 1931 and is also referred to as the CIE color system or CIE chromaticity diagram, i.e., the CIELAB color space shown in FIG. 1. In this xy chromaticity diagram, the ratio X to the 3 stimulus values X, Y, Z of the XYZ color system is used: y: z x in the same ratio: y: z (where x + y + z = 1), and a graph representing all colors with the x value thus converted as the horizontal axis and the y value as the vertical axis is an xy chromaticity diagram. For example, if a color is represented by XYZ: x =19cd/m2, Y =20cd/m2, Z =21cd/m2, the luminance of this color is 20cd/m2, and the chroma can be represented by X = X/(X + Y + Z) =19/60, Y = Y/(X + Y + Z) = 20/30.
It can be seen that the dimension of the "color map" is actually 2, and is a plane, and all colors (independent of irradiance) can be represented by two coordinates (x, y), which is the most common chromaticity diagram. The chromaticity coordinates may scale each human perceptible color, which is a two-dimensional "color map" of the XYZ color system, each value in the map being between (0, 1).
But by this step the colors are still only irradiance independent-they still appear to be different in brightness. As a simple but effective solution, color information can be combined with luminance information into a space called xyY. As long as a plane is taken in the xyz space perpendicular to the Y axis and a single-frequency light profile is drawn thereon, a "color map" which is independent of brightness can be obtained, and this is a true chromaticity diagram, that is, not only x and Y coordinates but also a condition is hidden: the Y values at all points are equal. The XYZ space is equivalent to the XYZ space due to the combination of two broad categories of information, color and intensity. Except for the origin in XYZ space, they are in a one-to-one mapping relationship.
In summary, both XYZ and xyY spaces can fully describe color perception, and xy chromaticity coordinates can describe luminance independent colors. Of course, although they are mapped one by one, they cannot be converted into each other by linear transformation, so the color mixing method is completely different. The color mixing method in the XYZ space facilitates quantitative calculation (vector operation), while the color mixing method in the xy chromaticity diagram facilitates qualitative analysis.
5. YUV: is a color coding method adopted by the european television system, Y represents luminance, and U and V represent color difference information (color difference information representing Blue and Red, respectively). YUV is commonly used in the color space of color image/video processing. It encodes color images/video while taking into account the properties of the human eye that allow the bandwidth of the chrominance components to be reduced without perceiving distortion. Also, the use of YUV color space facilitates image/video compression, which was originally used for analog television broadcasting. The color spaces YUV, YIQ, YCbCr and YPbPr all belong to the YUV family. Historically, YUV and Y' UV have been used to encode analog signals for television, while YcbCr (where Y is consistent with the meaning of Y in YUV, and Cb and Cr are color only but different in representation method) is used to describe digital video signals suitable for film and Picture compression and transmission, such as MPEG (Moving Picture Experts Group, an organization that sets international standards specifically for motion Picture and voice compression), JPEG (Joint Photographic Experts Group, a standard for continuous tone still image compression), and the like.
6. Relationship between RGB, color gamut, xyY, XYZ, YUV:
both XYZ and XYZ are used to describe the color vision (chromaticity and luminance), and they can be converted to each other.
Regarding the RGB values, in the case of a known color gamut, chromaticity xy values in a two-dimensional space can be obtained by conversion, but the values on the luminance Y component cannot be obtained directly by means of formula conversion. That is, the RGB values cannot be directly converted into XYZ values by formula conversion, and then the RGB values cannot be converted into XYZ values by formula conversion.
RGB values can be obtained through a formula conversion mode according to the YUV data. In the process of displaying images such as videos or pictures through related applications, because specific images are usually subjected to color coding through YUV, the YUV value of each pixel point can be restored from the code stream of the images, and after the YUV value of each pixel point is correctly restored, the RGB value of each pixel point can be extracted through a conversion formula of YUV and RGB.
However, after the RGB values of the specific pixels are obtained, the specific pixels need to be displayed in combination with the color gamut supported by the specific terminal device in the current color mode, and a color vision effect finally seen on the display screen of the terminal device through human eyes is also presented.
When images such as videos or pictures are produced or post-processed, in order to make a specific image have a better display effect, a color gamut is usually selected as a standard color gamut (for example, it is known that most terminal devices use the rec.709 color gamut, the color gamut can be used as the standard color gamut), and then, a colorist can perform a fine color mixing process on RGB values of specific pixels based on the standard color gamut until a desired effect is achieved. For example, for a certain pixel point of the human face region in a certain frame of image, in the rec.709 color gamut format, when a specific RGB is a certain numerical value, a desired color vision effect can be exhibited, and therefore, the pixel point can be set to the RGB numerical value. When the image is subsequently displayed on a specific terminal device, if the color mode in the terminal device also corresponds to the rec.709 color gamut, the displayed color vision (i.e., the visual effect of human eyes) can be expected when the image is displayed in the rec.709 color gamut directly according to the specific RGB value. In this case, the image subjected to the color matching processing based on a certain standard color gamut may be referred to as an image in the standard color gamut format. However, if the color mode in the terminal device corresponds to other color gamuts such as P3, the color vision actually presented will deviate from the expected color vision effect because the same RGB values will change when being displayed based on the other color gamuts, for example, the face area may be reddish.
7. A color analyzer: is an industrial machine that can measure the brightness and chromaticity of liquid crystals or various other display devices quickly (e.g., up to 20 times/second). That is, assuming that a single-color picture is displayed on a certain display device, the color analyzer collects and analyzes the screen of the display device, so as to determine the brightness and the chromaticity actually displayed by the display device, that is, the aforesaid xyz values.
8. LUT: the abbreviation of Lookup Table (color Lookup Table) can output one set of RGB values as another set of RGB values through LUT, thereby changing the color vision effect such as exposure and color of the picture. The LUT may be viewed as a function, and the RGB values for each pixel may be repositioned by the LUT to obtain a new set of RGB values. In the prior art, LUT tables are usually used for color calibration of display devices, or conversion of image color space, or design and simulation of special color effects, or adjustment of film color style, i.e. toning as described above, and so on.
In the embodiment of the application, in order to reduce the influence of color mode adjustment in the terminal device on image display in specific applications, a corresponding solution is provided. In this embodiment, the LUT may be stored to store the corresponding relationship between the first RGB values and the second RGB values of the plurality of dots, where the first RGB values and the second RGB values have the following characteristics: the similarity between the color vision effect of the second RGB value in the second color gamut and the standard color vision effect of the first RGB value in the preset first color gamut meets the target condition. That is to say, if a certain pixel is displayed in the first color gamut according to the first RGB value, an expected color vision effect can be obtained, but if the terminal device actually uses the second color gamut, the color vision effect displayed by the specific pixel will deviate from the expected color vision effect when the terminal device directly uses the first RGB value in the second color gamut. In this case, the LUT table may be used to convert the first RGB value into the second RGB value, and then the second RGB value is actually used to display the corresponding pixel in the second color gamut, so that the color vision effect actually exhibited will be more expected.
In addition, the embodiment of the application also provides an implementation method for generating the LUT table, and in the method, a test environment can be set up. For example, in a specific implementation manner, as shown in fig. 2, at a hardware level, the test environment may include a PC end device, a test terminal device such as a mobile phone for testing, and a color analysis device. At the software level, an application for generating a specific LUT table may be provided, which may be divided into a first side running in the PC side device and a second side running in the test terminal device. In addition, it is also possible to design a LUT space, which may be a three-dimensional space, with three dimensions corresponding to R, G, B, respectively. The LUT space may include N × N dots, wherein, since the values of the three RGB components range from 0 to 255, N may be arbitrarily set between 2 and 255, and each dot may have a set of RGB values. The LUT space may be designed according to a standard color gamut, that is, the RGB values corresponding to the plurality of points in the LUT space are the first RGB values in the standard color gamut.
Specifically, when the LUT table is established, a communication connection may be established between a first end of an application program in the PC device and a second end of the application program in the test terminal device, and then the first end may sequentially provide RGB values corresponding to each point in the LUT space to the second end. And the second end can generate a corresponding pure-color image in the test terminal equipment every time the second end receives a group of RGB numerical values, and the pure-color image is displayed on a display screen of the test terminal equipment based on the second color gamut of the equipment. At this time, the color analysis device may collect color vision values, for example, specifically including a chromaticity value and a brightness value, on the display screen of the test terminal device. That is, when the RGB value of one point in the LUT space is displayed in the second color gamut in the test terminal device, the color analysis device may obtain a numerical expression result of the color vision effect.
After acquiring the color vision numerical values when the color vision numerical values are displayed in the second color gamut of the test terminal device for each point in the LUT space, the method is equivalent to acquiring the color vision effect tested when the first RGB numerical values of each point are displayed in the second color gamut, and the color vision effect is deviated from the standard color vision effect presented by the first RGB numerical values in the standard color gamut. Therefore, the color vision numerical value expressing the standard color vision effect can be determined and used as the target value of the color vision numerical value, and then, the first RGB numerical value can be adjusted in multiple rounds by using an algorithm such as a gradient descent method according to the deviation value between the test value and the target value of the color vision numerical value until the color vision numerical value of a certain modified group of second RGB numerical values in the second color gamut is sufficiently close to the target value of the color vision numerical value of the first RGB numerical value in the standard color gamut, and the iteration can be ended, and the corresponding relationship between the first RGB numerical value and the second RGB numerical value can be established and added to the LUT table corresponding to the second color gamut.
Other points can also be processed similarly, and the obtained corresponding relationship between other first RGB values and the second RGB values is stored in the LUT table. This LUT table can be used as information on the mapping relationship between RGB when the image in the standard color gamut format is displayed in the second color gamut. Therefore, when a specific terminal device displays an image, after the original RGB values of all the pixel points in the image are determined, if the terminal device corresponds to the second color gamut, the original RGB values of the specific pixel points can be converted into target RGB values by using the LUT, and then the target RGB values are displayed. Therefore, when the specific pixel points are displayed based on the target RGB values in the second color gamut, the same or very close color vision effect can be obtained when the specific pixel points are displayed through the original RGB values in the standard color gamut.
In the process of implementing the above scheme, the following problems to be solved or optimized are also involved:
the first problem is that: how to determine the color sensation value of the first RGB value under the standard color gamut. As described above, although the chromaticity xy value in the two-dimensional space can be obtained by converting the RGB values under the condition of the known color gamut, the values on the Y component cannot be obtained directly by formula conversion, that is, the complete color vision values corresponding to the RGB values cannot be calculated by formula conversion.
For this problem, considering the color vision difference exhibited by the same set of RGB values when displayed in different color gamuts, the influence of the value on the luminance, i.e., the Y component, on the color vision difference is usually small, so in order to obtain a complete standard color vision value, the luminance Y value collected by the color analyzer may be used as the Y component value of the RGB in the standard color gamut after the set of RGB values is displayed in the test terminal device. In this way, in combination with the xy value of the RGB value in the standard color gamut, the complete color vision value corresponding to RGB in the standard color gamut can be obtained, for example, the XYZ value can be determined first, and can be converted to obtain the XYZ value, which can be used as the target value of the color vision value, and so on.
The second problem is that: in each iteration process, after the RGB values are adjusted, how to obtain the color vision values of the adjusted RGB values in the second color gamut.
In order to solve the problem, one way is to notify the second end of the application program in the test terminal device to display again according to the adjusted RGB values after the RGB values are adjusted each time, and collect corresponding color vision values through the color analysis device. However, this process is cumbersome and highly dependent on the color analysis equipment.
Therefore, in the embodiment of the present application, an implementation manner of performing estimation by an algorithm is adopted. Specifically, the inventor of the present application found in the process of implementing the present application that if the color vision values of a plurality of points around a certain point in a certain color gamut are known, the color vision values of the point in the color gamut can be estimated by using the color vision values of the reference points in the color gamut with the points around as reference points. In the embodiment of the present application, color vision values, such as XYZ values, of a plurality of RGB values when the RGB values are respectively displayed in the second color gamut can be collected by the color analysis device, so that in the process of performing iteration for a specific target point, after a certain RGB value is adjusted, a plurality of reference points around the adjusted RGB value can be determined from a plurality of points included in the LUT space, then color vision values obtained when the adjusted RGB value is displayed in the second color gamut can be estimated according to color vision values corresponding to the reference points, then the estimated value of the color vision value can be compared with the target value, and RGB value adjustment in the next iteration is continued according to a deviation between the estimated value and the target value, and so on.
The third problem is that: in each iteration process, the RGB values are specifically adjusted. One way to address this problem is to adjust the values on all three RGB components in each iteration. However, in this way, when the color difference is large, the color may be adjusted to the wrong RGB. For example, RGB (2, 3, 5) and RGB (4, 6, 10), since the mixing ratio of the three components of RGB is the same, the values of x and y are consistent on the color analyzer. For this reason, in a preferred embodiment, in the case of color vision quantization expression in XYZ values, since the degrees of influence of the respective three XYZ components on the three RGB components may be different, for example, the X component may mainly influence the R component, the Y component mainly influences the G component, and the Z component mainly influences the B component. Therefore, when specifically performing the adjustment, the deviation amount of each of the XYZ values between the components may be determined first, and the component with the largest deviation amount among the XYZ values may be determined, and the corresponding component of the RGB values may be adjusted according to the component. For example, in a certain iteration, the maximum deviation on the X component between XYZ values is found, and in this iteration, the R component of RGB values can be adjusted, and the value of GB component remains unchanged. After estimating the XYZ values in the second color gamut from the adjusted RGB values, the XYZ values are re-compared to the target values for the XYZ values and the next iteration is performed. In the next iteration, if the deviation between the estimated XYZ values and the target value is the largest, still on the X component, the R values may continue to be adjusted, if the deviation on the Y component is the largest, the G values may be adjusted, and so on.
In short, in the above manner, the corresponding relationship between the first RGB and the second RGB can be established for a plurality of points in the LUT space, respectively, and the LUT table established for the current color gamut in the current test terminal device can be saved. And then, switching the current test terminal device to other color modes, and re-executing the above process, thereby respectively establishing LUT tables for the color gamuts corresponding to the other color modes. In addition, because the definition modes of the color modes may be different in different models, and even if the same color mode is used, and even the same color gamut is declared, the specific performance may also be different in different models, so that, in order to obtain a better correction effect, terminal devices of other models may also be selected, various color modes are tested separately, and LUT tables are generated separately. That is, a plurality of LUT tables may be generated for various color modes of various different models, and then, for a terminal device of a specific model, LUTs corresponding to the plurality of color modes in the same model may be issued to the terminal device, so that during a process of performing specific video playing and the like, the terminal device may select to use the corresponding LUT table according to the color mode of the specific terminal device, correct the color of an image such as a video, and then display the corrected color.
Of course, in the above schemes, it is assumed that the image to be specifically displayed is an image generated by performing color matching based on a certain specific color gamut, for example, since most terminal devices use the 709 color gamut, a specific video may be subjected to color matching and other processing based on the 709 color gamut, and accordingly, the video is in the 709 color gamut format. However, in practical applications, specifically, the image displayed in the terminal device may be subjected to color matching based on other color gamuts, correspond to videos in other color gamut formats, and the like. Therefore, in a specific implementation, the LUT generation process may be performed for each image in each of the different gamut formats. That is, more LUTs may be generated finally, for example, the correspondence between a specific LUT table and the gamut format of an image and the gamut of a terminal device may be as shown in table 1:
TABLE 1
Figure BDA0003721799800000101
Figure BDA0003721799800000111
The server side of the specific application can provide the related LUT table to the terminal device according to the model, and when the specific terminal device displays the image, the server side can first determine the color gamut format corresponding to the specific image, the current color mode or the corresponding color gamut of the terminal device, and then selectively use the specific LUT table to perform color correction.
The following describes in detail specific implementations provided in embodiments of the present application.
Example one
First, the embodiment provides a method for generating a color lookup table from the perspective of the first end of the test application for a scheme for specifically generating a LUT table, and referring to fig. 3, the method may specifically include:
s301: first RGB values respectively corresponding to a plurality of points in the space of the target color lookup table LUT are obtained.
As mentioned above, in order to establish the correspondence between the first RGB values and the second RGB values in the final LUT table, a LUT table space may be first created. The LUT space may be a three-dimensional space, with three dimensions corresponding to R, G, B, respectively. The LUT space may include N × N dots, wherein N may be arbitrarily set between 2 and 255 since the values of the three RGB components range from 0 to 255. For example, N may be equal to 6, in which case there are a total of 6 × 6=216 points in the LUT space, each point may carry a value on three components, R, G, B. R, G and B are sequentially increased in equal ratio along 3 components, and the increment is 255/(N-1) each time. For example, when N =6, the incremental component of R, G, and B is 51, and the range of values is 0, 51, 102, 153, 204, and 255 (renormalization at the time of rendering); when the first RGB value in the LUT table is generated, the subscript starts from 0, as shown in FIG. 4, R is 255, G is 0, B is 102 for LUT [5] [0] [2] in the example; in the example, LUT [1] [1] [4] corresponds to R of 51, G of 51, B of 204, and so on. In specific implementation, N may also be other values, and the larger N is, the higher the precision is, and of course, the more the required memory space is, and the test time is correspondingly increased, which may be specifically determined according to actual requirements.
That is, N × N points are determined in the LUT space in advance, and each point corresponds to a respective first RGB value, so that the finally generated LUT standard has a corresponding relationship between N × N first RGB values and second RGB values.
S302: and respectively providing the first RGB values to test terminal equipment by taking points as units so as to display an image corresponding to the first RGB values in the test terminal equipment based on a second color gamut, and collecting color vision values displayed by the test terminal equipment through color analysis equipment so as to determine visual test values of the first RGB values in the second color gamut.
After determining the RGB values of a plurality of points in the LUT space, the first RGB value of each point may be sent to the test terminal device, and the second end of the test terminal device, in which the test application is pre-installed, may perform image display according to the first RGB value after receiving the first RGB value. For example, a full-screen monochrome image may be presented, and so on. After the image is displayed on the second end, the first end can be informed, and the first end can drive the color analysis device to acquire the color vision numerical value of the image displayed on the display screen of the test terminal device. The collected color vision numerical values may be provided to the first terminal. The first peer may then send the first RGB values for the next point to the second peer and repeat the above process until a specific color vision value is collected for each point in the LUT space.
Before specific testing, the testing terminal equipment can be set to be in a certain color mode, and after the second end is started, the identification information of the color mode can be read from the testing terminal equipment by using an interface function and the like provided by the system and is provided to the first end, so that the first end can know the current color mode in the specific testing terminal equipment. After the LUT table is subsequently generated, the correspondence between the color mode and the LUT table may be recorded, and when the color mode is subsequently used in a specific terminal device, color correction may be performed using the LUT table. In addition, the test terminal device can be switched to other color modes, and then the test process is executed again to generate LUT tables of other color modes. And testing terminal equipment of other models can be selected to respectively test in various different color modes to obtain more LUT tables.
The color vision value specifically collected by the color analysis device may be an xyz value in general. That is, chromaticity information represented by coordinates xy in the chromaticity diagram, and luminance information represented by Y. In a preferred embodiment, in order to facilitate subsequent adjustment of RGB values based on color vision values, after the XYZ values of the respective first RGB values displayed in the second color gamut of the test terminal device are collected by the color analysis setup, the XYZ values may be converted to XYZ values in the XYZ color system. These XYZ values can be used as test values for the color impression respectively presented by each point in the LUT space at the second color gamut of the test terminal device.
S303: and determining the color vision value presented by the first RGB value in the first color gamut, and determining the target value according to the color vision value.
In addition to determining the test value of the color vision respectively exhibited by each point in the LUT space in the second color gamut of the test terminal device, the color vision value of the point in the first color gamut can be determined as the target value. That is, in the process of iteratively adjusting the RGB values, the color vision values in the first color gamut are subsequently adjusted as the target.
As described above, in the case of the known color gamut, xy values can be converted from RGB values, but Y component values cannot be directly converted. Therefore, in specific implementation, the embodiment of the present application may use the luminance value acquired by the color analysis device as the Y component value. Specifically, after the first RGB value of a specific point is sent to the test terminal device and displayed, the color analysis device may acquire an xyz value of the color vision of the first RGB value in the second color gamut, and at this time, the acquired value of the Y component may be used as the Y component value of the xyz value of the first RGB value of the point in the first color gamut.
That is, in the embodiment of the present application, the first gamut is known (for example, by default, most videos are subjected to color matching based on the rec.709 color gamut, the rec.709 color gamut may be used as the first gamut), and for the first RGB values of each point in the LUT space, the values on the xy component in the standard color space may be determined based on the first gamut. Then, the brightness value acquired by each point in the process of displaying on the test terminal device is used as a Y component value, and the xyz value of the first RGB value in the first color gamut can be obtained. In a preferred embodiment, the XYZ values are converted to XYZ values, and the XYZ values are used as target values for color vision.
To this end, for each point in the LUT space, a target value for color vision and a test value for color vision present during the presentation in the second color gamut can be obtained separately.
S304: and respectively starting multiple rounds of iterative adjustment of the RGB values according to the deviation between the test value and the target value by taking the point as a unit, wherein after the RGB values are adjusted in each round of iteration, the color vision values displayed by the adjusted RGB values in the second color gamut display are estimated, the deviation condition between the estimated value of the color vision values and the target value is determined, and the corresponding relation between the first RGB and the second RGB is stored in the LUT table until the deviation between the estimated value of the color vision values and the target value obtained after the RGB values are adjusted to the second RGB values is smaller than a target threshold value.
After the test values and the target values of the color vision values corresponding to the plurality of points are obtained, the RGB values can be adjusted for each target point through a plurality of iterations until the color vision values of the adjusted RGB values in the second color gamut are sufficiently close to the target values. In each iteration process, the RGB values may be adjusted first, then the color vision values of the adjusted RGB values in the second color gamut are determined, and after comparing with the target values, the next iteration is performed.
The color vision value of the adjusted RGB value in the second color gamut cannot be directly calculated by formula conversion, so the embodiment of the present application further provides a scheme for estimating the color vision value. Specifically, since the present embodiment can acquire the test values of the color vision values of the plurality of points in the LUT space in the second color gamut, a plurality of reference points around the adjusted RGB values may be determined from the plurality of points in the LUT space. Then, the color vision numerical values presented when the adjusted RGB numerical values are displayed in the second color gamut may be estimated according to the color vision numerical values presented when the color vision analysis device is displayed in the second color gamut, which are respectively collected by the color vision analysis device with respect to the plurality of reference points. That is, although XYZ values in the second color gamut cannot be directly converted from an RGB value, since XYZ values of other RGB values around the RGB value in the second color gamut are known, XYZ values of the RGB values in the second color gamut can be estimated using the known XYZ values as a reference.
For example, assuming that the adjusted RGB values correspond to the point C in fig. 5 in a certain iteration process, eight points C around the point C can be found in the LUT space established in advance 000 、C 001 、C 010 、C 011 、C 100 、C 101 、C 110 、C 111 As a reference point for this point C. Since the XYZ values of the RGB values of the eight reference points when displayed in the second color space of the test terminal device have been obtained, the XYZ values of the point C when displayed in the second color space can be estimated based on the XYZ values of the reference points when displayed in the second color space. In the specific estimation, algorithms such as trilinear interpolation and the like can be adopted for estimation. Wherein trilinear interpolation is mainly used for passing through a given vertex in a 3D cubeThe linear interpolation method for calculating the values of other points in the cube will not be described in detail with respect to the specific formula.
When the RGB values are adjusted in each iteration, as described above, in a preferred embodiment, the XYZ component with the largest deviation amount is determined according to the deviation between the XYZ values estimated after the previous round of RGB adjustment and the XYZ values corresponding to the target value, and then the RGB component corresponding to the XYZ component with the largest deviation amount is determined according to the influence of each XYZ component on each RGB component, and the RGB component is adjusted, while the other RGB components remain unchanged. That is, in each iteration, only one of the RGB components may be adjusted, and the other values are not changed, specifically, which RGB component is adjusted, may be determined according to the maximum deviation component between the estimated XYZ value and the target value in the previous iteration. For example, in one iteration, the maximum deviation in the X component between the estimated XYZ values and the target values is found, then in this iteration, the R component of the RGB values may be adjusted, and the values of the GB components may remain unchanged. After re-estimating the XYZ values in the second gamut from the adjusted RGB values, re-comparing to the target values and performing the next iteration. In the next iteration, if the deviation between the estimated XYZ values and the target value is the largest, still on the X component, the R values may continue to be adjusted, if the deviation on the Y component is the largest, the G values may be adjusted, and so on.
In this way, for each point in the LUT space, the corresponding relationship between the first RGB value and the second RGB value can be obtained, and the LUT table for the current second color gamut can be generated by saving the corresponding relationship. And then, the model information, the color mode information and the LUT table of the current test terminal equipment can be submitted to a server side for storage through the first end of the test application program. And then, the current test terminal device can be switched to other color modes, and the process is repeated to generate LUT tables for other color gamuts. In addition, it is also possible to perform a test for each of a plurality of color modes included in other test terminal devices, generate an LUT table, and the like. The LUT tables can be uploaded to a server and provide information such as terminal equipment model and color mode identification corresponding to each LUT table. Then, the server may issue the LUT table to a terminal device client of a corresponding model (here, the server and the client may be specifically an application server and a client provided by a certain video platform, and the like). Therefore, when a client specifically needs to display a certain target image, the current color mode of the terminal equipment where the client is located, and information such as the color gamut corresponding to the color mode can be determined. And after the original RGB numerical values on specific pixel points in the target object are determined, mapping the original RGB numerical values of the target object into target RGB numerical values according to the LUT table, and then displaying, so that the similarity between the color vision effect of the target object under the second color gamut corresponding to the target color mode and the standard color vision effect under the first color gamut meets the target condition.
In summary, in the embodiment of the present application, an LUT space is created, first RGB values of each point in the LUT space are respectively sent to a test terminal device for displaying, and then color vision values are collected by a color analysis device, where the first RGB values represent visual test values when displayed in a second color gamut. Additionally, a visual target value may be obtained for the first RGB values when displayed in the first color gamut. Then, with a point as a unit, according to the deviation amount between the test value and the target value, respectively starting multiple rounds of iterative adjustment on the RGB values, in each round of adjustment, estimating the color vision value presented by the adjusted RGB value when the second color gamut is displayed, and determining the deviation between the estimated value of the color vision value and the target value, until the RGB is adjusted to the second RGB value, and when the deviation amount between the estimated value of the color vision value and the target value is smaller than a target threshold value, the corresponding relationship between the first RGB and the second RGB can be stored in the LUT table. In this way, automatic generation of the LUT table can be achieved. In addition, the color vision numerical value presented when the adjusted RGB numerical value is displayed in the second color gamut can be determined in an estimation mode, so that the dependence on color analysis equipment can be reduced, and the efficiency is improved conveniently.
In addition, XYZ values can be used as color vision values, in each iteration process, XYZ components with the largest deviation amount can be determined according to the deviation condition between the XYZ values, then, one component of RGB is adjusted according to the difference of the influence degree of each XYZ component on each RGB component, and the other RGB components are not adjusted, so that the RGB is prevented from being adjusted to wrong values.
Example two
The second embodiment provides an object display method from the perspective of a specific application presentation client for an application process after the LUT table is established, and referring to fig. 6, the method may specifically include:
s601: the method comprises the steps of obtaining a configuration file associated with the current terminal device, wherein the configuration file is in multiple copies and corresponds to multiple color modes supported in the terminal device respectively, the configuration file comprises a color lookup table (LUT), the LUT is used for storing the corresponding relation between a first RGB value and a second RGB value of multiple points, the color vision effect of the second RGB value in a second color gamut and the similarity between the standard color vision effect of the first RGB value in a preset first color gamut meet target conditions.
The service end can issue each LUT associated with the model to the client in the form of a configuration file according to the model information of the specific terminal device. Since the LUT table may be used with high frequency, the client may store the configuration file locally in the terminal device, so that when a specific display object needs to be displayed, the specific LUT table may be used for color correction.
S602: when a target object needs to be displayed, determining an original RGB value corresponding to the target object.
The target object may specifically be a video, a picture, a photograph, etc. to be played. In a specific implementation, as described above, since a specific video file and the like may be encoded in a YUV manner, a YUV value corresponding to each pixel point may be analyzed from a code stream of the same frame of image, and then, an RGB value corresponding to each pixel point may be calculated according to a conversion formula between YUV and RGB. The RGB values belong to the original RGB values parsed from the target object. If presented directly in terms of the RGB values, the visual effect presented may deviate from what is intended.
S603: and determining a target color mode of the current terminal equipment, mapping the original RGB numerical values into target RGB numerical values by using a target LUT (look up table) corresponding to the target color mode, and displaying the target RGB numerical values so that the similarity between the color vision effect of the target object in a second color gamut corresponding to the target color mode and the standard color vision effect in the first color gamut meets the target condition.
In this embodiment, after obtaining an original RGB value of a specific pixel, a client may determine a target color mode in which the current terminal device is located, and map the original RGB value into a target RGB value by using a target LUT corresponding to the target color mode, and then display the target RGB value, so that a similarity between a color vision effect exhibited by the target object in a second color gamut corresponding to the target color mode and a standard color vision effect exhibited in the first color gamut satisfies the target condition.
Here, since each point in the LUT is set at a certain step (for example, N =6 in the above example), all RGB (256 × 256) values may not be found directly in the LUT. However, in this case, the client may map any RGB value to the new RGB value according to a certain algorithm by using each point in the LUT table, so that the color vision effect of the new RGB value in the second color gamut is sufficiently similar to the standard color vision effect of the RGB value before mapping in the first color gamut.
With the second embodiment, since the LUT table corresponding to the plurality of color modes of the terminal device can be obtained in advance, the LUT table stores the corresponding relationship between the first RGB values and the second RGB values of the plurality of points, and the similarity between the color vision effect exhibited by the second RGB values in the second color gamut and the standard color vision effect exhibited by the first RGB values in the preset first color gamut satisfies the target condition. Thus, when a target object needs to be displayed, after an original RGB value is determined, a target color mode in which the current terminal device is located may be determined, and the original RGB value is mapped to the target RGB value by using a target LUT table corresponding to the target color mode and then displayed, so that a color vision effect exhibited by the target object in a second color gamut corresponding to the target color mode and a similarity between a standard color vision effect exhibited in the first color gamut satisfy the target condition. In this way, when the target object is displayed in the terminal device, even if the color gamut used in the terminal device is different from the color gamut on which the target object is based when color is mixed, a color sensation effect that meets the color mixing expectation can be obtained.
For the parts of the second embodiment that are not described in detail, reference may be made to the descriptions of the first embodiment and other parts of the present specification, which are not described herein again.
It should be noted that, in the embodiments of the present application, the user data may be used, and in practical applications, the user-specific personal data may be used in the scheme described herein within the scope permitted by the applicable law, under the condition of meeting the requirements of the applicable law and regulations in the country (for example, the user explicitly agrees, the user is informed, etc.).
Corresponding to the first embodiment, an apparatus for generating a color lookup table is further provided in the embodiments of the present application, and referring to fig. 7, the apparatus may include:
a first RGB value determining unit 701, configured to obtain first RGB values of a plurality of points in the target color lookup table LUT space in a preset first color gamut;
a test value determining unit 702, configured to respectively provide the first RGB values to a test terminal device by taking a point as a unit, so as to display an image corresponding to the first RGB values in the test terminal device based on a second color gamut, and collect color vision values presented by the test terminal device through a color analysis device, so as to determine a visual test value presented by the first RGB values in the second color gamut;
a target value determining unit 703, configured to determine a color vision numerical value presented by the first RGB numerical value in the first color gamut, and determine a target value according to the color vision numerical value;
an iteration adjusting unit 704, configured to respectively start multiple rounds of iterative adjustment on RGB values according to the deviation amount between the test value and the target value, where after the RGB values are adjusted in each round of iteration, color vision values presented when the adjusted RGB values are displayed in the second color gamut are estimated, and a deviation condition between the estimated value of the color vision value and the target value is determined, until after the RGB values are adjusted to be the second RGB values, when the deviation amount between the estimated value of the color vision value and the target value is smaller than a target threshold value, a corresponding relationship between the first RGB and the second RGB is stored in the LUT table.
Specifically, the target value determining unit may be specifically configured to:
determining the color vision numerical value of the first RGB numerical value in the first color gamut according to the chromatic value of the first RGB numerical value in the first color gamut and the brightness value collected from the test terminal equipment in the process of displaying the first RGB numerical value by the test terminal equipment according to the first RGB numerical value, and determining the target value of the color vision numerical value according to the color vision numerical value.
The color vision numerical values collected by the color analysis equipment comprise xyz numerical values, wherein an xy component represents chroma, and a Y component represents brightness;
at this time, the test value determining unit may be specifically configured to:
converting the collected XYZ numerical value into an XYZ color system to obtain an XYZ numerical value, and determining the XYZ numerical value as a test value of the color vision numerical value; wherein, the X and Z components represent chroma, and the Y component represents brightness and chroma;
the target value determination unit may specifically be configured to:
and obtaining a color vision xyY numerical value of the target point in the first color gamut according to the xy chromatic value of the first RGB numerical value in the first color gamut and the brightness information collected by the color analysis device from the display screen of the test terminal device, converting the xyY numerical value into an XYZ color system to obtain an XYZ numerical value, and determining the XYZ numerical value as the target value of the color vision numerical value.
When the iteration adjusting unit adjusts the RGB values, the iteration adjusting unit may be specifically configured to:
when the RGB values are adjusted in each iteration, the XYZ component with the maximum deviation amount is determined according to the deviation condition between the estimated XYZ values after the previous round of RGB adjustment and the XYZ values corresponding to the target values;
and according to the influence of each XYZ component on each RGB component, determining the RGB component corresponding to the XYZ component with the maximum deviation amount, adjusting the RGB component, and keeping other RGB components unchanged.
In addition, when specifically performing color vision numerical estimation, the iterative adjustment unit may specifically be configured to:
determining, from a plurality of points in the LUT space, a plurality of reference points located around the adjusted RGB values;
and estimating the color vision numerical values presented by the adjusted RGB numerical values when the second color gamut is displayed according to the color vision numerical values presented by the color vision analyzing device when the second color gamut is displayed, which are respectively collected by the color vision analyzing device with respect to the plurality of reference points.
In addition, the apparatus may further include:
and the uploading unit is used for submitting the model information, the color mode information and the LUT table of the test terminal equipment to a server for storage so as to issue the LUT table to a terminal equipment client of a corresponding model, so that when the client displays a target object in the color mode, the client maps an original RGB numerical value of the target object into a target RGB numerical value according to the LUT table and then displays the target object, so that the similarity between the color vision effect of the target object in a second color gamut corresponding to the target color mode and the standard color vision effect displayed in the first color gamut meets the target condition.
Corresponding to the second embodiment, the embodiment of the present application further provides an object displaying apparatus, and referring to fig. 8, the apparatus may include:
a configuration file obtaining unit 801, configured to obtain a configuration file associated with a current terminal device, where the configuration file is multiple copies and corresponds to multiple color modes supported in the terminal device, where the configuration file includes a color lookup table LUT, and the LUT is configured to store a corresponding relationship between a first RGB value and a second RGB value of multiple points, where a color vision effect exhibited by the second RGB value in a second color gamut and a similarity between a standard color vision effect exhibited by the first RGB value in a preset first color gamut satisfy a target condition;
an original RGB value determining unit 802, configured to determine an original RGB value corresponding to a target object when the target object needs to be displayed;
a target RGB value mapping unit 803, configured to determine a target color mode in which the current terminal device is located, and map the original RGB values into target RGB values by using a target LUT table corresponding to the target color mode, and then display the target RGB values, so that a similarity between a color vision effect exhibited by the target object in a second color gamut corresponding to the target color mode and a standard color vision effect exhibited in the first color gamut satisfies the target condition.
In addition, the present application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method described in any of the preceding method embodiments.
And an electronic device comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform the steps of the method of any of the preceding method embodiments.
Fig. 9 illustrates an architecture of one of the electronic devices, for example, device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, an aircraft, etc.
Referring to fig. 9, device 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods provided by the disclosed solution. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia components 908 include a screen that provides an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when device 900 is in an operational mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 further includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the device 900. For example, the sensor component 914 may detect an open/closed state of the device 900, the relative positioning of components, such as a display and keypad of the device 900, the sensor component 914 may also detect a change in the position of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, orientation or acceleration/deceleration of the device 900, and a change in the temperature of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the device 900 and other devices in a wired or wireless manner. The device 900 may access a wireless network based on a communication standard, such as WiFi, or a mobile communication network such as 2G, 3G, 4G/LTE, 5G, etc. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as memory 904 comprising instructions, executable by processor 920 of device 900 to perform the methods provided by the present disclosure is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, the system or system embodiments, which are substantially similar to the method embodiments, are described in a relatively simple manner, and reference may be made to some descriptions of the method embodiments for relevant points. The above-described system and system embodiments are merely illustrative, and 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement without inventive effort.
The method and the device for displaying and generating the color lookup table for the object provided by the present application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific embodiments and the application range may be changed. In view of the above, the description should not be taken as limiting the application.

Claims (11)

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

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=83820080

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN115294945A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117612470A (en) * 2023-10-27 2024-02-27 神力视界(深圳)文化科技有限公司 Color lookup table generating method and color correcting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117612470A (en) * 2023-10-27 2024-02-27 神力视界(深圳)文化科技有限公司 Color lookup table generating method and color correcting method

Similar Documents

Publication Publication Date Title
US10460699B2 (en) Transitioning between video priority and graphics priority
KR100834638B1 (en) Method and apparatus for adjusting mage color for beam projector
US10390027B2 (en) Method and apparatus of encoding and decoding a color picture
CN107203974A (en) The methods, devices and systems of HDR HDR to the HDR tones mapping of extension
CN109274985B (en) Video transcoding method and device, computer equipment and storage medium
CN107409210B (en) Method and apparatus for matching colors between color pictures of different dynamic ranges
EP3430807B1 (en) A method and a device for encoding a high dynamic range picture, corresponding decoding method and decoding device
CN108352076B (en) Encoding and decoding method and corresponding devices
KR101303874B1 (en) Apparatus and method for gamut mapping
CN108141576B (en) Display device and control method thereof
CN112215760A (en) Image processing method and device
JP2016505884A (en) Method for generating color image and imaging apparatus using the method
US8139079B2 (en) Color gamut component analysis apparatus, method of analyzing color gamut component, and color gamut component analysis program
CN115294945A (en) Object display method and device, and color lookup table generation method and device
KR20170124554A (en) Adaptive color grade interpolation method and device
CN107564073B (en) Skin color identification method and device and storage medium
KR100621853B1 (en) Mobile terminal with improved color image displaying apparatus and method
EP4042405A1 (en) Perceptually improved color display in image sequences on physical displays
WO2019164980A1 (en) Cubiform method
Wen Color management for future video Systems
CN116017171B (en) Image processing method and device, electronic equipment, chip and storage medium
CN110648373B (en) Image processing method and device
JP2006309227A (en) Device realizing translucent display on screen, its system, and method
CN118197196A (en) Screen correction method and device, electronic equipment, chip and medium
Zamir et al. Automatic, fast and perceptually accurate gamut mapping based on vision science models

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