CN117912424A - Color gamut acquisition method and device - Google Patents

Color gamut acquisition method and device Download PDF

Info

Publication number
CN117912424A
CN117912424A CN202211269283.0A CN202211269283A CN117912424A CN 117912424 A CN117912424 A CN 117912424A CN 202211269283 A CN202211269283 A CN 202211269283A CN 117912424 A CN117912424 A CN 117912424A
Authority
CN
China
Prior art keywords
color
point
gamut
mapping
phase range
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
CN202211269283.0A
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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211269283.0A priority Critical patent/CN117912424A/en
Publication of CN117912424A publication Critical patent/CN117912424A/en
Pending legal-status Critical Current

Links

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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/2003Display of colours
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0686Adjustment of display parameters with two or more screen areas displaying information with different brightness or colours

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 disclosure relates to a method and a device for acquiring a color gamut, and relates to the technical field of display, wherein the first color gamut is a color gamut adopted by terminal equipment by acquiring a first color point in a set first color phase range in a first color gamut; mapping the first color point to a second color gamut to obtain a first target color point under the second color gamut; obtaining a second color point which is not in the first color phase range in the first color field; a target color gamut required by the terminal device is generated from the first target color point and the second color point. The color display method and the terminal device combine different color gamuts corresponding to different colors preferred by users, so that the colors of the different color gamuts can be displayed on the same terminal device, the requirements of different users are met, and the color display of the terminal device is more suitable for the users.

Description

Color gamut acquisition method and device
Technical Field
The disclosure relates to the technical field of display, and in particular relates to a method and a device for acquiring a color gamut.
Background
Currently, the display color gamut of the terminal device is standardized, and the color gamut of most terminal devices is a single color gamut, for example, most terminal devices are displayed as a single P3 color gamut or as a single standard red, green and Blue (STANDARD RED GREEN Blue, sRGB) color gamut, and in some cases, the current single color gamut display cannot meet the requirement of users on the display color of the terminal device.
Disclosure of Invention
The disclosure provides a method for acquiring a color gamut, which at least solves the problem that the current single color gamut display cannot meet the requirement of a user on display colors of terminal equipment. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a method for acquiring a color gamut, including: acquiring a first color point in a set first color phase range in a first color gamut, wherein the first color gamut is a color gamut adopted by terminal equipment; mapping the first color point to a second color gamut to obtain a first target color point under the second color gamut; obtaining a second color point which is not in the first color phase range in the first color field; a target color gamut required by the terminal device is generated from the first target color point and the second color point.
The color display method and the terminal device combine different color gamuts corresponding to different colors preferred by users, so that the colors of the different color gamuts can be displayed on the same terminal device, the requirements of different users are met, and the color display of the terminal device is more suitable for the users.
In some embodiments, generating a target color gamut required by the terminal device from the first target color point and the second color point comprises: performing color gamut mapping on the second color point to obtain a mapped second target color point; and generating a target color gamut required by the terminal equipment according to the first target color point and the second target color point.
In some embodiments, gamut mapping the second color point to obtain a mapped second target color point comprises: selecting a second color point in a second hue range from the second color points as a candidate second color point, and determining the original second color point in the first color gamut as a second target color point corresponding to the candidate second color point; and determining a third color gamut corresponding to the remaining second color points in the second color points, and mapping the second color points to the third color gamut to obtain a second target color point under the third color gamut.
In some embodiments, there are multiple sets of first color points, each set of first color points having a different first color phase range and each two sets of first color points having a discontinuous hue range, wherein mapping the first color points to the second color gamut results in a first target color point in the second color gamut, comprising: mapping each group of first color points to a second color gamut corresponding to each group to obtain a first target color point under the second color gamut corresponding to each group of first color points; performing color gamut mapping on the second color point to obtain a mapped second target color point, including: and mapping the second color points to the respective corresponding fourth color gamut to obtain second target color points under the fourth color gamut.
In some embodiments, the process of mapping the first color point to the first target color point comprises: determining a first mapping matrix corresponding to a first color phase range under a second color gamut; and mapping the first color point according to the first mapping matrix to obtain a first target color point.
In some embodiments, the process of mapping the second color point to the second target color point comprises: determining a third color phase range to which the second color point belongs based on the hue value of the second color point; determining a reference mapping matrix for a third phase range; determining a second mapping matrix of the third phase range according to the reference mapping matrix; and mapping the second color points in the third color phase range according to the second mapping matrix to obtain second target color points.
In some embodiments, determining the reference mapping matrix for the third color phase range includes: in the case where the third hue range is a partial hue range among hue ranges other than the first hue range and the second hue range, the first mapping matrix of the first hue range and the standard mapping matrix of the second hue range are determined as the reference mapping matrix of the third hue range.
In some embodiments, determining the reference mapping matrix for the third color phase range includes: in the case where the third color phase range is a partial color phase range in a color phase range other than the two first color phase ranges between the adjacent two first color phase ranges, the first mapping matrix of the adjacent first color phase ranges is determined to be a reference mapping matrix of the third color phase range.
In some embodiments, determining a second mapping matrix for a third range of colors from the reference mapping matrix comprises: acquiring a first reference value of a third color phase range; acquiring a second reference value of the hue range corresponding to the reference mapping matrix; acquiring the offset of the first reference value relative to the second reference value; determining the weight of the reference mapping matrix according to the offset; and processing the reference mapping matrix according to the weight to obtain a second mapping matrix of the third color phase range.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for acquiring a color gamut, including: the first acquisition module is used for acquiring a first color point in a set first color phase range in a first color gamut, wherein the first color gamut is a color gamut adopted by the terminal equipment; the mapping module is used for mapping the first color point to the second color gamut to obtain a first target color point under the second color gamut; a second acquisition module for acquiring a second color point which is not in the first color phase range in the first color gamut; and the generating module is used for generating a target color gamut required by the terminal equipment according to the first target color point and the second color point.
In some embodiments, the generating module is further configured to: performing color gamut mapping on the second color point to obtain a mapped second target color point; and generating a target color gamut required by the terminal equipment according to the first target color point and the second target color point.
In some embodiments, the generating module is further configured to: selecting a second color point in a second hue range from the second color points as a candidate second color point, and determining the original second color point in the first color gamut as a second target color point corresponding to the candidate second color point; and determining a third color gamut corresponding to the remaining second color points in the second color points, and mapping the second color points to the third color gamut to obtain a second target color point under the third color gamut.
In some embodiments, the mapping module is further to: mapping each group of first color points to a second color gamut corresponding to each group to obtain a first target color point under the second color gamut corresponding to each group of first color points; the generating module is further used for: and mapping the second color points to the respective corresponding fourth color gamut to obtain second target color points under the fourth color gamut.
In some embodiments, the mapping module is further to: determining a first mapping matrix corresponding to a first color phase range under a second color gamut; and mapping the first color point according to the first mapping matrix to obtain a first target color point.
In some embodiments, the generating module is further configured to: determining a third color phase range to which the second color point belongs based on the hue value of the second color point; determining a reference mapping matrix for a third phase range; determining a second mapping matrix of the third phase range according to the reference mapping matrix; and mapping the second color points in the third color phase range according to the second mapping matrix to obtain second target color points.
In some embodiments, the generating module is further configured to: in the case where the third hue range is a partial hue range in hue ranges other than the first hue range and the second hue range, the standard mapping matrices of the first and second hue ranges are determined to be reference mapping matrices of the third hue range.
In some embodiments, the generating module is further configured to: in the case where the third color phase range is a partial color phase range in a color phase range other than the two first color phase ranges between the adjacent two first color phase ranges, the first mapping matrix of the adjacent first color phase ranges is determined to be a reference mapping matrix of the third color phase range.
In some embodiments, the generating module is further configured to: acquiring a first reference value of a third color phase range; acquiring a second reference value of the hue range corresponding to the reference mapping matrix; acquiring the offset of the first reference value relative to the second reference value; determining the weight of the reference mapping matrix according to the offset; and processing the reference mapping matrix according to the weight to obtain a second mapping matrix of the third color phase range.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to implement the method for acquiring color gamut according to the embodiment of the first aspect of the present application.
According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer readable storage medium storing computer instructions for implementing a method for acquiring a color gamut according to an embodiment of the first aspect of the present disclosure is provided.
According to a fifth aspect of embodiments of the present disclosure, a computer program product is presented, comprising a computer program which, when executed by a processor, implements a method of acquiring a color gamut according to an embodiment of the first aspect of the present application.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
The color display method and the terminal device combine different color gamuts corresponding to different colors preferred by users, so that the colors of the different color gamuts can be displayed on the same terminal device, the requirements of different users are met, and the color display of the terminal device is more suitable for the users.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is an exemplary implementation of a method of acquiring a color gamut, shown according to an exemplary embodiment.
Fig. 2 is a schematic diagram showing a hue diagram when a first hue range is continuous according to an exemplary embodiment.
Fig. 3 is a schematic diagram of a color phase diagram when a first color phase range is discontinuous, according to an example embodiment.
Fig. 4 is an exemplary implementation of a method of acquiring a color gamut according to an exemplary embodiment.
Fig. 5 is a schematic diagram of a hue diagram for color point mapping when a first range of hues is continuous, according to an exemplary embodiment.
Fig. 6 is an exemplary implementation of a method of acquiring a color gamut, shown according to an exemplary embodiment.
Fig. 7 is a schematic diagram of a hue diagram for color point mapping when a first range of hues is discontinuous, according to an exemplary embodiment.
Fig. 8 is a schematic diagram of a color gamut acquisition device according to an exemplary embodiment.
Fig. 9 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is an exemplary embodiment of a method for acquiring a color gamut, shown in fig. 1, including the steps of:
S101, acquiring a first color point in a first color field within a set first color phase range, wherein the first color field is a color field adopted by terminal equipment.
The color gamut currently adopted by the terminal device is taken as the first color gamut, wherein the color gamut is a method for encoding one color, and also refers to the sum of colors which can be generated by one technical system, and in the computer graphics processing, the color gamut is a certain complete subset of the colors. The color gamut is now commonly used in terminal devices, such as cell phone screens, computer displays, televisions, and the wider the color gamut, the more colors the display can display, and the closer the display is to reality. Common color gamut standards are: sRGB, adobe RGB, NTSC, DCI-P3, etc.
And reading a color lookup table (3D LUT) of the terminal equipment, and traversing each color point in the color lookup table, wherein each color point has a corresponding RGB value and a hue value. Where the color point refers to the color of the pixel, it can be specifically described by RGB values, for example, RGB values (255, 0) represent positive red, and RGB values (0, 0) represent black.
In the current first color gamut scene, if a certain color which is preferred by the user to other color gamuts exists, acquiring a hue range of the color which is preferred by the user to other color gamuts as a first hue range, and acquiring all color points which are in the set first hue range in the first color gamuts as first color points.
As an achievable way, on the basis of the current first color gamut, if the user prefers the a color of the other color gamuts, the hue range of the a color is taken as the first color phase range, and all color points in the first color gamut within the set first color phase range are acquired as the first color points. For example, if the user prefers the green color of the sRGB color gamut but prefers the red color of the P3 color gamut, if the current first color gamut of the terminal device is the sRGB color gamut, that is, the current first color gamut green does not need to be transformed, and the current first color gamut red needs to be mapped to the P3 color gamut, the hue range of the red is taken as the first hue range. Fig. 2 is a schematic diagram of a hue diagram when the first color phase range is continuous, as shown in fig. 2, according to the hue value of the color point, the color point can be divided into 12 color areas of red, orange, yellow-green, spring-green, cyan, blue, indigo, violet and rose, if the current red of the first color gamut needs to be mapped to the P3 color gamut, the hue range of the red is regarded as the first color phase range, as shown in the figure, the first color phase range is 345 ° to 360 ° and 0 ° to 15 ° (the red hue range area where the five-pointed star is located in fig. 2), wherein the color phase diagram is a circle, and 360 ° coincides with 0 °. All color points in the first color phase range are taken as first color points.
As another implementation manner, on the basis of the current first color gamut, the user prefers an a color of a certain color gamut and prefers a B color of another color gamut, and takes the hue range of the a color and the B color as a first hue range, and obtains all color points in the first color gamut within the set first hue range as first color points. For example, if the user prefers the green color of the sRGB gamut but prefers the red color of the P3 gamut, if the current first gamut of the end device is Adobe RGB gamut, the green of the current first gamut needs to be mapped to sRGB gamut, and the red of the current first gamut needs to be mapped to P3 gamut, and the hue ranges of the red and green are taken as the first hue range. Fig. 3 is a schematic diagram of a color phase diagram when the first color phase range is discontinuous, as shown in fig. 3, according to the hue value of the color point, the color point can be divided into 12 color areas of red, orange, yellow-green, spring green, cyan, blue, indigo, violet and rose, when the current first color gamut green needs to be mapped to the sRGB color gamut and the current first color gamut red needs to be mapped to the P3 color gamut, the hue ranges of red and green are regarded as the first color phase range, as shown in the figure, the first color phase range is 345 ° -360 ° corresponding to red and 0 ° -15 ° (the red hue range area where the five-pointed star is located in fig. 3) and 105 ° -135 ° (the green hue range area where the five-pointed star is located in fig. 3), and all the color points in the first color phase range are regarded as the first color points.
The first color phase range may also be selected directly by the user, and the division of the color areas in fig. 2 and 3 should not be taken as a limitation of the present application.
S102, mapping the first color point to the second color gamut to obtain a first target color point under the second color gamut.
After the first color point is determined, the color gamut to be mapped to corresponding to the first color point is determined as a second color gamut, the first color point is mapped to the corresponding second color gamut, and the color point under the second color gamut obtained after mapping is taken as a first target color point.
As an implementation manner, as shown in fig. 2, if the user prefers the green color of the sRGB color gamut and prefers the red color of the P3 color gamut, if the current first color gamut of the terminal device is the sRGB color gamut, that is, the current first color gamut needs not to be transformed, but the current first color gamut needs to be mapped to the P3 color gamut, the P3 color gamut is the second color gamut corresponding to the first color point, a mapping matrix for mapping the sRGB color gamut to the P3 color gamut is obtained, and according to the mapping matrix, all the first color points in the first color phase range of 345 ° to 360 ° and 0 ° to 15 ° (the red color phase range region where the five-pointed star is located in fig. 2) are mapped to the P3 color gamut, and the color point under the P3 color gamut obtained after the mapping is used as the first target color point.
As another implementation manner, as shown in fig. 3, if the user prefers the green color of the sRGB color gamut and prefers the red color of the P3 color gamut, if the current first color gamut of the terminal device is the Adobe RGB color gamut, the current green color of the first color gamut needs to be mapped to the sRGB color gamut, and the current red color of the first color gamut needs to be mapped to the P3 color gamut, the sRGB color gamut corresponding to the green color gamut and the P3 color gamut corresponding to the red color are used as the second color gamut, the mapping matrix of the Adobe RGB color gamut to the sRGB color gamut and the mapping matrix of the Adobe RGB color gamut to the P3 color gamut are obtained, all the first color points in the range of 105 ° -135 ° (the green color hue range region where the five-pointed star is located in fig. 3) are mapped to the sRGB color gamut according to the mapping matrix of the Adobe RGB color gamut to the P3 color gamut, and all the first color points in the range of 345 ° -360 ° -15 ° (the red hue range region where the five-pointed star is located in fig. 3) are mapped to the sRGB color gamut, and the color gamut is mapped to the first color gamut as the color gamut.
S103, obtaining a second color point which is not in the first color phase range in the first color gamut.
And mapping the first color point to the second color gamut, and obtaining the color point which is not in the first color phase range in the first color gamut as the second color point after obtaining the first target color point in the second color gamut.
As one possible way, as shown in fig. 2, the first color phase ranges from 345 ° to 360 ° and from 0 ° to 15 ° (the red color phase range region where the five-pointed star is located in fig. 2), and the color points in the first color phase range from 15 ° to 345 ° are taken as the second color points, and it is also possible to understand that color points in 11 color regions of orange, yellow-green, spring-green, cyan, blue, indigo, violet, and rose are taken as the second color points.
As another possible way, as shown in fig. 3, the first color phase ranges of 345 ° to 360 ° and 0 ° to 15 ° (red color phase range region where the five-pointed star is located in fig. 3) and 105 ° to 135 ° (green color phase range region where the five-pointed star is located in fig. 3) corresponding to green are set, and color points in the first color phase ranges of 15 ° to 105 ° and 135 ° to 345 ° are set as the second color point, and color points in 10 color regions of orange, yellow-green, spring-green, cyan, blue, indigo, violet, and rose are set as the second color point.
S104, generating a target color gamut required by the terminal device according to the first target color point and the second color point.
And generating a target color gamut required by the terminal equipment according to the obtained first target color point and second color point.
As an implementation manner, as shown in fig. 2, if the user prefers the green color of the sRGB color gamut and prefers the red color of the P3 color gamut, if the current first color gamut of the terminal device is the sRGB color gamut, that is, the current first color gamut needs not to be transformed, but the current first color gamut needs to be mapped to the P3 color gamut, and all the first color points in the first color gamut of 345 ° to 360 ° and 0 ° to 15 ° (the red color hue range region where the five-pointed star is located in fig. 2) are mapped to the P3 color gamut, the first target color point obtained after mapping and the second color point located in the 5 ° to 345 ° color hue range under the current first color gamut together generate the target color gamut required by the terminal device, so as to realize that the user can obtain the red color of the P3 color gamut under the current sRGB color gamut.
As another implementation manner, as shown in fig. 3, if the user prefers the green color of the sRGB color gamut but prefers the red color of the P3 color gamut, if the current first color gamut of the terminal device is Adobe RGB color gamut, and it is necessary to map the green color of the current first color gamut to the sRGB color gamut, and also to map the red color of the current first color gamut to the P3 color gamut, then all the first color points in the first color ranges of 345 ° to 360 ° and 0 ° to 15 ° (the red color range region where the five-pointed star is located in fig. 3) are mapped to the first target color point obtained after the P3 color gamut, and all the first color points in the green color ranges of 105 ° to 135 ° (the green color range region where the five-pointed star is located in fig. 3) are mapped to the sRGB color gamut, and the second color points in the 15 ° to 105 ° and 135 ° to 345 ° color ranges are together generated to achieve the target color gamut required by the terminal device, so that the user can obtain the red color of the sRGB color gamut and the green color gamut in the case of Adobe the color gamut.
According to the color gamut acquisition method, the first color point in the first color gamut is acquired, wherein the first color point is in the set first color phase range, and the first color gamut is the color gamut adopted by the terminal equipment; mapping the first color point to a second color gamut to obtain a first target color point under the second color gamut; obtaining a second color point which is not in the first color phase range in the first color field; a target color gamut required by the terminal device is generated from the first target color point and the second color point. The color display method and the terminal device combine different color gamuts corresponding to different colors preferred by users, so that the colors of the different color gamuts can be displayed on the same terminal device, the requirements of different users are met, and the color display of the terminal device is more suitable for the users.
Fig. 4 is an exemplary embodiment of a method for obtaining a color gamut shown in the present disclosure, as shown in fig. 4, in the presence of a set of first color points, comprising the steps of:
s401, acquiring a first color point in a first color field within a set first color phase range, wherein the first color field is a color field adopted by terminal equipment.
For the specific implementation of step S401, reference may be made to the description of the relevant parts in the above embodiments, and the detailed description is omitted here.
S402, mapping the first color point to the second color gamut to obtain a first target color point under the second color gamut.
Fig. 5 is a schematic diagram of a color point map when the first color phase range is continuous, as shown in fig. 5, if the user prefers the green color of the sRGB color gamut but prefers the red color of the P3 color gamut, if the current first color gamut of the terminal device is the sRGB color gamut, that is, the current first color gamut needs not to be transformed, but the current first color gamut needs to be mapped to the P3 color gamut, the P3 color gamut is the second color gamut corresponding to the first color point, a mapping matrix for mapping the sRGB color gamut to the P3 color gamut is obtained as the first mapping matrix, and all the first color points in the first color phase range of 345 ° to 360 ° and 0 ° to 15 ° (the red color phase range region where the five-pointed star is located in fig. 5) are mapped to the P3 color gamut according to the first mapping matrix, and the color point under the P3 color gamut obtained after mapping is the first target color point.
Illustratively, the following is a process of sRGB gamut to P3 gamut mapping:
As above, the first mapping matrix corresponding to the mapping of the sRGB color gamut to the P3 color gamut is
Wherein, the first mapping matrix corresponding to the mapping of the sRGB color gamut to the P3 color gamut is obtained by multiplying the conversion matrix from the sRGB color gamut to the XYZ and the conversion matrix from the XYZ to the P3 color gamut. The method comprises the following steps of:
conversion matrix of sRGB gamut to XYZ
Conversion matrix of XYZ to P3 gamut
The first mapping matrix corresponding to the sRGB gamut to P3 gamut mapping is:
Here, the acquisition of the first mapping matrix corresponding to the sRGB gamut mapping to the P3 gamut is taken as an example, and in the following description, the first mapping matrix corresponding to the sRGB gamut mapping to the P3 gamut is used for convenience of description And (5) expressing.
S403, a second color point which is not in the first color phase range in the first color gamut is acquired.
As shown in fig. 5, the first color phase ranges from 345 ° to 360 ° and from 0 ° to 15 ° (red color phase range region where the five-pointed star is located in fig. 5), and color points in the first color phase range from 15 ° to 345 ° are taken as second color points, and color points in 11 color regions of orange, yellow-green, spring-green, cyan, blue, indigo, violet, and rose are taken as second color points.
S404, performing color gamut mapping on the second color point to obtain a mapped second target color point.
In order to maintain the smoothness and continuity of the color display of the terminal device, so that the color display of the terminal device is more suitable for users, mapping transition needs to be performed on the second color points which are not in the first color phase range in the original first color field, namely, a second mapping matrix corresponding to each second color point needs to be acquired to perform color gamut mapping on the second color points, and a mapped second target color point is obtained.
The process of obtaining the second mapping matrix corresponding to each second color point is as follows:
Setting a hue range which is discontinuous with the first hue range as a second hue range, selecting a second color point which is in the second hue range from the second color points as a candidate second color point, and determining the original second color point in the first color range as a second target color point corresponding to the candidate second color point. As shown in fig. 5, the second hue range is set to 165 ° to 195 ° (the cyan hue range region where the solid ellipse is located in fig. 5), the color points within 165 ° to 195 ° (the cyan hue range region where the solid ellipse is located in fig. 5) are taken as candidate second color points, the candidate second color points are directly taken as second target color points without transformation, and the conversion matrix corresponding to the second hue range is set as a standard matrix, that is, the standard matrix corresponding to the second hue range is:
After determining the candidate second color points, mapping the remaining second color points in the second color points, taking the color gamut corresponding to the remaining second color points in the second color points as a third color gamut, and mapping the second color points to the third color gamut to obtain a second target color point under the third color gamut, wherein the third color gamut is not the existing standard color gamut, and after obtaining the second mapping matrix, the color gamut where the obtained second target color point is located after mapping the second color points according to the second mapping matrix is called the third color gamut.
As shown in fig. 5, the color points in the range of 345 ° to 360 ° and 0 ° to 15 ° (the red hue range region where the five-pointed star is located in fig. 5) are the first color points, and the color points in the range of 65 ° to 195 ° (the cyan hue range region where the solid ellipse is located in fig. 5) are candidate second color points, and the hue ranges of the remaining second color points in the second color points are 15 ° to 165 ° and 195 ° to 345 ° (the hue range region where the triangle is located in fig. 5). In order to maintain the smoothness and continuity of the color display of the terminal device, the whole color after the mapping of the second color point is more natural, the hue range of the remaining second color points in the second color point is 15-165 degrees and 195-345 degrees (the hue range region where the triangle in fig. 5 is located) is divided into a plurality of hue ranges as third hue ranges, namely, the third hue ranges are partial hue ranges in the hue ranges except the first hue range and the second hue range, each third hue range corresponds to a group of second color points, and after the hue value of the remaining second color points in the second color point is obtained, the third hue range to which the second color point belongs can be determined according to the hue value of the second color point. For example, as shown in fig. 5, the hue ranges of the remaining second color points in the second color point are 15 ° to 165 ° and 195 ° to 345 ° are divided into 10 third color phase ranges, and the total angle of each third color phase range is 30 °, corresponding to the hue ranges of the total 10 color areas of 15 ° to 45 °, 45 ° to 75 °,75 ° to 105 °, 105 ° to 135 °, 135 ° to 165 °, 195 ° to 225 °, 225 ° to 255 °, 255 ° to 285 ° to 315 °, 315 ° to 345 ° corresponding to each triangle in fig. 5.
When the second mapping matrix corresponding to each third color phase range is obtained, the first mapping matrix corresponding to the first color phase range is obtainedAnd a second hue range of the standard mapping matrix/>As a reference mapping matrix for the third color phase range.
And acquiring a certain hue value of a certain third hue range as a first reference value, acquiring a certain hue value of the hue range corresponding to the two reference mapping matrixes as a second reference value, acquiring the offset of the first reference value relative to the two second reference values, determining the weight corresponding to the two reference mapping matrixes according to the offset, and processing the reference mapping matrixes according to the weight to acquire a second mapping matrix of the third hue range. For example, as shown in fig. 5, if the third color phase range is 45 ° to 75 °,60 ° may be selected from 45 ° to 75 ° as the first reference value, 15 ° may be selected from the first color phase range 345 ° to 360 ° and 0 ° to 15 ° (red color phase range region where the five-pointed star is located in fig. 5) as one second reference value, and 165 ° may be selected from the second color phase range 165 ° to 195 ° (cyan color phase range region where the solid ellipse is located in fig. 5) as another second reference value. When the offset of the first reference value relative to the two second reference values is acquired, the offset of 60 degrees relative to 15 degrees is acquired, the offset of 60 degrees relative to 165 degrees is 105 degrees, and because 15 degrees and 165 degrees differ by 150 degrees, the weight value of the first mapping matrix corresponding to the first hue range is determined to be 45 degrees/150 degrees=0.3, and the weight value of the standard mapping matrix of the second hue range is determined to be 105 degrees/150 degrees=0.7, namely the second mapping matrix of the third hue range is 45 degrees to 75 degrees
The method of obtaining the second mapping matrix corresponding to the other third phase ranges is similar to the above-mentioned method, and will not be described herein again, it should be noted that the division of the third phase ranges is only illustrative, and the present application is not limited thereto, and in fact, the total angle of each third phase range may be 15 °,10 ° or the like.
After determining a second mapping matrix corresponding to a certain third color phase range, mapping the second color points in the third color phase range according to the second mapping matrix to obtain mapped second target color points corresponding to the third color phase range, and after mapping all the second color points in the third color phase range according to the respective corresponding second mapping matrix, obtaining mapped second target color points corresponding to all the third color phase range.
S405, generating a target color gamut required by the terminal device according to the first target color point and the second target color point.
And generating a target color gamut required by the terminal equipment according to the obtained first target color point and the second target color point. As shown in fig. 5, all the first color points in the first color phase range of 345 ° to 360 ° and 0 ° to 15 ° (the red color phase range region where the five-pointed star is located in fig. 5) are mapped to the P3 color gamut to obtain a first target color point; the second color point in the second hue range 165-195 ° (the cyan hue range region where the solid ellipse is located in fig. 5) is directly used as the second target color point without transformation; and the second color points in the plurality of third color point ranges (a plurality of hue range regions where triangles are located in fig. 5) are mapped according to the second corresponding mapping matrixes to obtain second target color points, and the target color gamut required by the terminal equipment is generated according to the obtained first target color points and the second target color points.
The method and the device combine different color gamuts corresponding to different colors preferred by the user, so that the colors of the different color gamuts can be displayed on the same terminal device, the requirements of different users are met, and meanwhile, mapping transition is carried out on the second color point which is not in the first color phase range in the original first color gamut, so that the smoothness and the continuity of the color display of the terminal device are maintained, and the color display of the terminal device is more suitable for the user.
Fig. 6 is an exemplary embodiment of a method for obtaining a color gamut shown in the present disclosure, where there are multiple groups of first color points, and where there are discontinuous intervals of ranges and first color phase ranges between each group of first color points, as shown in fig. 6, the method for obtaining a color gamut includes the following steps:
S601, acquiring a first color point in a first color field within a set first color phase range, wherein the first color field is a color field adopted by terminal equipment.
For the specific implementation of step S601, reference may be made to the description of the relevant parts in the above embodiments, and the details are not repeated here.
S602, mapping each group of first color points to the corresponding second color gamut of each group to obtain a first target color point under the corresponding second color gamut of each group of first color points.
Under the conditions that a plurality of groups of first color points exist, the first color phase ranges among the groups of first color points are different, and the hue ranges of every two groups of first color points are discontinuous, mapping each group of first color points to the corresponding second color gamut of each group, and obtaining a first target color point under the corresponding second color gamut of each group of first color points.
Fig. 7 is a schematic diagram of a hue diagram of performing color point mapping when the first color range is discontinuous, as shown in fig. 7, if the user prefers the green color of the sRGB color gamut but prefers the red color of the P3 color gamut, if the current first color gamut of the terminal device is Adobe RGB color gamut, the green color of the current first color gamut needs to be mapped to the sRGB color gamut, and the red color of the current first color gamut needs to be mapped to the P3 color gamut, the sRGB color gamut and the P3 color gamut are respectively the second color gamut corresponding to each group of the first color points, a first mapping matrix a corresponding to the mapping of Adobe RGB color gamut to the sRGB color gamut and a first mapping matrix B corresponding to the mapping of Adobe RGB color gamut to the P3 color gamut are obtained, and mapping all first color points in a red color phase range of 345-360 degrees and 0-15 degrees (a red color phase range region where the five-pointed star is positioned in fig. 7) to a P3 color gamut according to a first mapping matrix B corresponding to the mapping of the Adobe RGB color gamut to the P3 color gamut to obtain a first target color point, and mapping all first color points in a green color phase range of 105-135 degrees (a green color phase range region where the five-pointed star is positioned in fig. 7) to a sRGB color gamut according to a first mapping matrix A corresponding to the mapping of the Adobe RGB color gamut to the sRGB color gamut to obtain a first target color point.
Wherein:
The first mapping matrix B corresponding to the mapping of the Adobe RGB gamut to the P3 gamut can be written as
The first mapping matrix B corresponding to the mapping from the Adobe RGB color gamut to the P3 color gamut is obtained by multiplying the conversion matrix from the Adobe RGB color gamut to the XYZ and the conversion matrix from the XYZ to the P3 color gamut. The conversion matrix from Adobe RGB color gamut to XYZ and the conversion matrix from XYZ to P3 color gamut can be obtained according to the related knowledge query, and will not be described here.
The first mapping matrix a corresponding to the mapping of Adobe RGB color gamut to sRGB color gamut can be written as
The first mapping matrix A corresponding to the mapping from the Adobe RGB color gamut to the sRGB color gamut is obtained by multiplying a conversion matrix from the Adobe RGB color gamut to the XYZ color gamut by a conversion matrix from the XYZ color gamut to the sRGB color gamut. The conversion matrix from Adobe RGB color gamut to XYZ and the conversion matrix from XYZ to sRGB color gamut can be obtained according to the related knowledge query, and will not be described here.
S603, a second color point which is not in the first color phase range in the first color gamut is acquired.
As shown in fig. 7, the first color phase ranges from 345 ° to 360 ° and 0 ° to 15 ° (red color phase range region where the five-pointed star is located in fig. 7) and from 105 ° to 135 ° (green color phase range region where the five-pointed star is located in fig. 7) corresponding to green, and color points in the first color phase ranges from 15 ° to 105 ° and 135 ° to 345 ° are taken as the second color points, and color points in the first color phase ranges from orange, yellow-green, spring-green, cyan, blue, indigo, violet and rose are taken as the second color points.
And S604, mapping the second color points to the corresponding fourth color gamuts to obtain second target color points under the fourth color gamuts.
In order to maintain the smoothness and continuity of the color display of the terminal device, so that the color display of the terminal device is more suitable for users, mapping transition needs to be performed on the second color points which are not in the first color phase range in the original first color field, namely, a second mapping matrix corresponding to each second color point needs to be acquired to perform color gamut mapping on the second color points, and a mapped second target color point is obtained.
The process of obtaining the second mapping matrix corresponding to each second color point is as follows:
Taking the color gamut corresponding to the second color point as a fourth color gamut, and mapping the second color point to the fourth color gamut to obtain a second target color point under the fourth color gamut, wherein the fourth color gamut is not the existing standard color gamut, and after the second mapping matrix is obtained, the color gamut where the obtained second target color point is located after the second color point is mapped according to the second mapping matrix is called the fourth color gamut. In order to maintain the smoothness and continuity of the color display of the terminal device, the whole color after the second color point is mapped is more natural, the hue range of the second color point is 15-105 degrees and 135-345 degrees (the hue range region where the triangle in fig. 7 is located) is divided into a plurality of hue ranges as third hue ranges, namely, the third hue ranges are partial hue ranges in the two first hue ranges, each third hue range corresponds to a group of second color points, and after the hue value of the second color point is obtained, the third hue range to which the second color point belongs can be determined according to the hue value of the second color point. For example, as shown in fig. 7, the hue range of 15 ° to 105 ° and 135 ° to 345 ° may be divided into 10 third color phase ranges, and the total angle of each third color phase range is 30 °, corresponding to 15 ° to 45 °, 45 ° to 75 °, 75 ° to 105 °, 135 ° to 165 °,165 ° to 195 ° to 225 °, 225 ° to 255 °, 255 ° to 285 °, 285 ° to 315 °, 315 ° to 345 °, respectively, corresponding to the hue ranges of orange, yellow green, spring green, cyan, blue, indigo, violet, and rose total 10 color regions corresponding to each triangle in fig. 7.
When a second mapping matrix corresponding to each third color phase range is obtained, mapping Adobe RGB color gamuts corresponding to two adjacent first color phase ranges to a first mapping matrix B corresponding to a P3 color gamuts: a first mapping matrix A corresponding to the mapping of the Adobe RGB gamut to the sRGB gamut: /(I) As a reference mapping matrix for the third color phase range.
And acquiring a certain hue value of a certain third hue range as a first reference value, acquiring a certain hue value of the hue range corresponding to the two reference mapping matrixes as a second reference value, acquiring the offset of the first reference value relative to the two second reference values, determining the weight corresponding to the two reference mapping matrixes according to the offset, and processing the reference mapping matrixes according to the weight to acquire a second mapping matrix of the third hue range. For example, as shown in fig. 7, if the third color phase range is 45 ° to 75 °,60 ° may be selected from 45 ° to 75 ° as the first reference value, since the first color phase range is discontinuous, 15 ° may be selected from the first color phase range of 345 ° to 360 ° and 0 ° to 15 ° (red color phase range region where the five-pointed star is located in fig. 7) as one second reference value, and 105 ° may be selected from the first color phase range of 105 ° to 135 ° (green color phase range region where the five-pointed star is located in fig. 7) as another second reference value. When the offset of the first reference value relative to the two second reference values is obtained, the offset of 60 degrees relative to 15 degrees is obtained, the offset of 60 degrees relative to 105 degrees is 45 degrees, and because the offset of 15 degrees and 105 degrees is different by 90 degrees, the weight value of a first mapping matrix B corresponding to the mapping of the Adobe RGB color gamut to the P3 color gamut is determined to be 45 degrees/90 degrees=0.5, and the weight value of a first mapping matrix A corresponding to the mapping of the Adobe RGB color gamut to the sRGB color gamut is determined to be 45 degrees/90 degrees=0.5, namely, a second mapping matrix of the third color phase range of 45 degrees to 75 degrees is determined
The method of obtaining the second mapping matrix corresponding to the other third phase ranges is similar to the above-mentioned method, and will not be described herein again, it should be noted that the division of the third phase ranges is only illustrative, and the present application is not limited thereto, and in fact, the total angle of each third phase range may be 15 °,10 ° or the like.
After determining a second mapping matrix corresponding to a certain third color phase range, mapping the second color points in the third color phase range according to the second mapping matrix to obtain mapped second target color points corresponding to the third color phase range, and after mapping all the second color points in the third color phase range according to the respective corresponding second mapping matrix, obtaining mapped second target color points corresponding to all the third color phase range.
S605 generates a target color gamut required by the terminal device from the first target color point and the second target color point.
And generating a target color gamut required by the terminal equipment according to the obtained first target color point and the second target color point. As shown in fig. 7, the first color phase ranges of 345 ° to 360 ° and 0 ° to 15 ° (the red color phase range region where the five-pointed star is located in fig. 7) are mapped to the P3 color gamut according to the first mapping matrix corresponding to the mapping of the Adobe RGB color gamut to the P3 color gamut to obtain the first target color point, and all the first color points in the 105 ° to 135 ° (the green color phase range region where the five-pointed star is located in fig. 7) corresponding to the green color are mapped to the sRGB color gamut according to the first mapping matrix corresponding to the Adobe RGB color gamut to obtain the first target color point, and the second color points in the multiple third color phase ranges (the multiple color phase range regions where the triangle is located in fig. 7) are mapped according to the second target color point obtained after the mapping of the respective corresponding second mapping matrix, so as to generate the target color gamut required by the terminal device according to the obtained first target color point and the second target color point.
The method combines different color gamuts corresponding to different colors preferred by users, so that the colors of the different color gamuts can be displayed on the same terminal equipment, the requirements of different users are met, after each group of first nodes are mapped, mapping transition is carried out on the second color points which are not in the first color phase range in the original first color gamut, the smoothness and continuity of the color display of the terminal equipment are maintained, and the color display of the terminal equipment is more suitable for users.
Fig. 8 is a schematic diagram of a color gamut acquisition device according to the present disclosure, as shown in fig. 8, the color gamut acquisition device 800 includes a first acquisition module 801, a mapping module 802, a second acquisition module 803, and a generation module 804, where:
A first obtaining module 801, configured to obtain a first color point in a first color phase range, where the first color point is in a set first color phase range, and the first color gamut is a color gamut adopted by a terminal device;
A mapping module 802, configured to map the first color point to the second color gamut to obtain a first target color point in the second color gamut;
a second obtaining module 803 for obtaining a second color point in the first color gamut which is not in the first color phase range;
A generating module 804 is configured to generate a target color gamut required by the terminal device according to the first target color point and the second color point.
The color gamut acquisition device acquires a first color point in a first color gamut which is in a set first color phase range, wherein the first color gamut is a color gamut adopted by terminal equipment; mapping the first color point to a second color gamut to obtain a first target color point under the second color gamut; obtaining a second color point which is not in the first color phase range in the first color field; a target color gamut required by the terminal device is generated from the first target color point and the second color point. The color display method and the terminal device combine different color gamuts corresponding to different colors preferred by users, so that the colors of the different color gamuts can be displayed on the same terminal device, the requirements of different users are met, and the color display of the terminal device is more suitable for the users.
Further, the generating module 804 is further configured to: performing color gamut mapping on the second color point to obtain a mapped second target color point; and generating a target color gamut required by the terminal equipment according to the first target color point and the second target color point.
Further, the generating module 804 is further configured to: selecting a second color point in a second hue range from the second color points as a candidate second color point, and determining the original second color point in the first color gamut as a second target color point corresponding to the candidate second color point; and determining a third color gamut corresponding to the remaining second color points in the second color points, and mapping the second color points to the third color gamut to obtain a second target color point under the third color gamut.
Further, the mapping module 802 is further configured to: mapping each group of first color points to a second color gamut corresponding to each group to obtain a first target color point under the second color gamut corresponding to each group of first color points; the generating module is further used for: and mapping the second color points to the respective corresponding fourth color gamut to obtain second target color points under the fourth color gamut.
Further, the mapping module 802 is further configured to: determining a first mapping matrix corresponding to a first color phase range under a second color gamut; and mapping the first color point according to the first mapping matrix to obtain a first target color point.
Further, the generating module 804 is further configured to: determining a third color phase range to which the second color point belongs based on the hue value of the second color point; determining a reference mapping matrix for a third phase range; determining a second mapping matrix of the third phase range according to the reference mapping matrix; and mapping the second color points in the third color phase range according to the second mapping matrix to obtain second target color points.
Further, the generating module 804 is further configured to: in the case where the third hue range is a partial hue range in hue ranges other than the first hue range and the second hue range, the standard mapping matrices of the first and second hue ranges are determined to be reference mapping matrices of the third hue range.
Further, the generating module 804 is further configured to: in the case where the third color phase range is a partial color phase range in a color phase range other than the two first color phase ranges between the adjacent two first color phase ranges, the first mapping matrix of the adjacent first color phase ranges is determined to be a reference mapping matrix of the third color phase range.
Further, the generating module 804 is further configured to: acquiring a first reference value of a third color phase range; acquiring a second reference value of the hue range corresponding to the reference mapping matrix; acquiring the offset of the first reference value relative to the second reference value; determining the weight of the reference mapping matrix according to the offset; and processing the reference mapping matrix according to the weight to obtain a second mapping matrix of the third color phase range.
Fig. 9 is a block diagram of an electronic device 900, according to an example embodiment.
As shown in fig. 9, the electronic device 900 includes:
A memory 901 and a processor 902, a bus 903 connecting different components (including the memory 901 and the processor 902), the memory 901 storing a computer program, and the processor 902 implementing the method of acquiring a color gamut of the embodiments of the present disclosure when executing the program.
Bus 903 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 900 typically includes a variety of electronic device readable media. Such media can be any available media that is accessible by electronic device 900 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 901 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 904 and/or cache memory 905. The electronic device 900 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 906 may be used to read from or write to a non-removable, non-volatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard disk drive"). Although not shown in fig. 9, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 603 through one or more data medium interfaces. Memory 901 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the disclosure.
A program/utility 908 having a set (at least one) of program modules 907 may be stored in, for example, memory 901, such program modules 907 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 907 generally perform the functions and/or methods in the embodiments described in this disclosure.
The electronic device 900 may also communicate with one or more external devices 909 (e.g., keyboard, pointing device, display 910, etc.), one or more devices that enable a user to interact with the electronic device 900, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 900 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 911. Also, electronic device 900 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 912. As shown in fig. 9, the network adapter 912 communicates with other modules of the electronic device 900 over the bus 903. It should be appreciated that although not shown in fig. 9, other hardware and/or software modules may be used in connection with electronic device 900, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 902 executes programs stored in the memory 901, thereby executing various functional applications and data processing.
It should be noted that, the implementation process and the technical principle of the electronic device in this embodiment refer to the foregoing explanation of the method for obtaining the color gamut in the embodiment of the disclosure, and are not repeated herein.
In order to achieve the above-described embodiments, the embodiments of the present application also propose a non-transitory computer readable storage medium storing computer instructions for causing a computer to implement the method of acquiring a color gamut as shown in the above-described embodiments. Alternatively, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In order to implement the above embodiments, the embodiments of the present application also provide a computer program product, including a computer program, which when executed by a processor implements the method for acquiring a color gamut as shown in the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (21)

1. The method for acquiring the color gamut is characterized by comprising the following steps:
Acquiring a first color point in a first color phase range, wherein the first color point is in the set first color phase range, and the first color gamut is the color gamut adopted by terminal equipment;
mapping the first color point to a second color gamut to obtain a first target color point under the second color gamut;
obtaining a second color point in the first color gamut which is not in the first color phase range;
and generating a target color gamut required by the terminal equipment according to the first target color point and the second color point.
2. The method according to claim 1, wherein said generating a target color gamut required by the terminal device from the first target color point and the second color point comprises:
Performing color gamut mapping on the second color point to obtain a mapped second target color point;
and generating a target color gamut required by the terminal equipment according to the first target color point and the second target color point.
3. The method of claim 2, wherein said gamut mapping said second color point to obtain a mapped second target color point comprises:
Selecting a second color point in a second hue range from the second color points as a candidate second color point, and determining an original second color point in the first color range as a second target color point corresponding to the candidate second color point;
and determining a third color gamut corresponding to the remaining second color points in the second color points, and mapping the second color points to the third color gamut to obtain a second target color point under the third color gamut.
4. The method of claim 2, wherein there are a plurality of sets of first color points, the first color phase ranges between each set of first color points being different and the hue ranges of each two sets of first color points being discontinuous, wherein said mapping the first color points to a second color gamut to obtain a first target color point in the second color gamut comprises:
mapping each group of first color points to a second color gamut corresponding to each group to obtain a first target color point under the second color gamut corresponding to each group of first color points;
The performing color gamut mapping on the second color point to obtain a mapped second target color point, including:
and mapping the second color point to a fourth color gamut corresponding to each second color point to obtain a second target color point under the fourth color gamut.
5. The method according to any of claims 1-4, characterized in that the process of mapping the first color point to the first target color point comprises:
Determining a first mapping matrix corresponding to the first color phase range under the second color gamut;
and mapping the first color point according to the first mapping matrix to obtain the first target color point.
6. The method of claim 5, wherein the process of mapping the second color point to the second target color point comprises:
determining a third color phase range to which the second color point belongs based on the hue value of the second color point;
determining a reference mapping matrix for the third phase range;
determining a second mapping matrix of the third phase range according to the reference mapping matrix;
and mapping a second color point in the third color phase range according to the second mapping matrix to obtain the second target color point.
7. The method of claim 6, wherein the determining the reference mapping matrix for the third color phase range comprises:
In the case where the third color phase range is a partial color phase range among color phase ranges other than the first color phase range and the second color phase range, determining a first mapping matrix of the first color phase range and a standard mapping matrix of the second color phase range as a reference mapping matrix of the third color phase range.
8. The method of claim 6, wherein the determining the reference mapping matrix for the third color phase range comprises:
in the case where the third color phase range is a partial color phase range in a color phase range other than the two first color phase ranges between the adjacent two first color phase ranges, the first mapping matrix of the adjacent first color phase ranges is determined to be a reference mapping matrix of the third color phase range.
9. The method of claim 6, wherein said determining a second mapping matrix for said third phase range from said reference mapping matrix comprises:
acquiring a first reference value of the third color phase range;
acquiring a second reference value of the hue range corresponding to the reference mapping matrix;
Acquiring the offset of the first reference value relative to the second reference value;
determining the weight of the reference mapping matrix according to the offset;
and processing the reference mapping matrix according to the weight to obtain a second mapping matrix of the third color phase range.
10. An apparatus for acquiring a color gamut, comprising:
the first acquisition module is used for acquiring a first color point in a first color phase range, wherein the first color point is in the set first color phase range, and the first color gamut is the color gamut adopted by the terminal equipment;
The mapping module is used for mapping the first color point to a second color gamut to obtain a first target color point under the second color gamut;
a second acquisition module for acquiring a second color point in the first color gamut which is not in the first color phase range;
And the generating module is used for generating a target color gamut required by the terminal equipment according to the first target color point and the second color point.
11. The apparatus of claim 10, wherein the generating module is further configured to:
Performing color gamut mapping on the second color point to obtain a mapped second target color point;
and generating a target color gamut required by the terminal equipment according to the first target color point and the second target color point.
12. The apparatus of claim 11, wherein the generating module is further configured to:
Selecting a second color point in a second hue range from the second color points as a candidate second color point, and determining an original second color point in the first color range as a second target color point corresponding to the candidate second color point;
and determining a third color gamut corresponding to the remaining second color points in the second color points, and mapping the second color points to the third color gamut to obtain a second target color point under the third color gamut.
13. The apparatus of claim 11, wherein the mapping module is further configured to:
mapping each group of first color points to a second color gamut corresponding to each group to obtain a first target color point under the second color gamut corresponding to each group of first color points;
The generating module is further configured to: and mapping the second color point to a fourth color gamut corresponding to each second color point to obtain a second target color point under the fourth color gamut.
14. The apparatus of any one of claims 10-13, wherein the mapping module is further configured to:
Determining a first mapping matrix corresponding to the first color phase range under the second color gamut;
and mapping the first color point according to the first mapping matrix to obtain the first target color point.
15. The apparatus of claim 14, wherein the generating module is further configured to:
determining a third color phase range to which the second color point belongs based on the hue value of the second color point;
determining a reference mapping matrix for the third phase range;
determining a second mapping matrix of the third phase range according to the reference mapping matrix;
and mapping a second color point in the third color phase range according to the second mapping matrix to obtain the second target color point.
16. The apparatus of claim 15, wherein the generating module is further configured to:
In the case where the third color phase range is a partial color phase range among color phase ranges other than the first color phase range and the second color phase range, determining a first mapping matrix of the first color phase range and a standard mapping matrix of the second color phase range as a reference mapping matrix of the third color phase range.
17. The apparatus of claim 15, wherein the generating module is further configured to:
in the case where the third color phase range is a partial color phase range in a color phase range other than the two first color phase ranges between the adjacent two first color phase ranges, the first mapping matrix of the adjacent first color phase ranges is determined to be a reference mapping matrix of the third color phase range.
18. The apparatus of claim 15, wherein the generating module is further configured to:
acquiring a first reference value of the third color phase range;
acquiring a second reference value of the hue range corresponding to the reference mapping matrix;
Acquiring the offset of the first reference value relative to the second reference value;
determining the weight of the reference mapping matrix according to the offset;
and processing the reference mapping matrix according to the weight to obtain a second mapping matrix of the third color phase range.
19. An electronic device, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
20. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-9.
21. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-9.
CN202211269283.0A 2022-10-17 2022-10-17 Color gamut acquisition method and device Pending CN117912424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211269283.0A CN117912424A (en) 2022-10-17 2022-10-17 Color gamut acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211269283.0A CN117912424A (en) 2022-10-17 2022-10-17 Color gamut acquisition method and device

Publications (1)

Publication Number Publication Date
CN117912424A true CN117912424A (en) 2024-04-19

Family

ID=90689684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211269283.0A Pending CN117912424A (en) 2022-10-17 2022-10-17 Color gamut acquisition method and device

Country Status (1)

Country Link
CN (1) CN117912424A (en)

Similar Documents

Publication Publication Date Title
KR102493933B1 (en) Video signal processing method and apparatus
CN111429827B (en) Display screen color calibration method and device, electronic equipment and readable storage medium
CN1081373C (en) Method and apparatus for creating and displslaying faithful color images on a computer display
RU2664334C1 (en) Cartridge for printing device with memory device containing compressed multidimensional color tables
US6326977B1 (en) Rendering of YCBCR images on an RGS display device
JP5043513B2 (en) Color processing apparatus and method
CN106816143B (en) Display panel gamut conversion method, device, system, display panel and display device
KR101431653B1 (en) Method of color mapping from non-convex source gamut into non-convex target gamut
CN101388950B (en) Content-adaptive contrast improving method and apparatus for digital image
CN101646010A (en) Information processing device, method and program
KR101204453B1 (en) Apparatus for gamut mapping and method for generating gamut boundary using the same
US9076369B2 (en) Image modulation apparatus, method, and program
US7236181B2 (en) Apparatus for color conversion and method thereof
US20120057785A1 (en) Method and system to modify a color lookup table
CN101742340A (en) Method and device for optimizing and editing image
US20210287348A1 (en) Color saturation adjustment in non-uniform color space
CN105227873A (en) A kind of method of testing of on-chip study data and device
CN109889898A (en) Video signal conversion equipment and method
CN107371005B (en) Scalable storage loss optimization system and method with respect to gamut mapping
CN102752622B (en) A kind of color space 3 D displaying method
CN117912424A (en) Color gamut acquisition method and device
US7023585B1 (en) Multi-dimensional edge interpolation
JP3708476B2 (en) Color gamut mapping system and method using composite color space
Choudhury et al. Combining quality metrics for improved hdr image quality assessment
EP1483897A1 (en) Choice of chromophores in two color imaging systems

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