CN114550673B - Color gamut adjusting method and device, electronic equipment and storage medium - Google Patents

Color gamut adjusting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114550673B
CN114550673B CN202011337554.2A CN202011337554A CN114550673B CN 114550673 B CN114550673 B CN 114550673B CN 202011337554 A CN202011337554 A CN 202011337554A CN 114550673 B CN114550673 B CN 114550673B
Authority
CN
China
Prior art keywords
color gamut
coordinate system
color
gamut range
system corresponding
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.)
Active
Application number
CN202011337554.2A
Other languages
Chinese (zh)
Other versions
CN114550673A (en
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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202011337554.2A priority Critical patent/CN114550673B/en
Publication of CN114550673A publication Critical patent/CN114550673A/en
Application granted granted Critical
Publication of CN114550673B publication Critical patent/CN114550673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature

Landscapes

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

Abstract

One or more embodiments of the present disclosure provide a color gamut adjustment method, apparatus, electronic device, and storage medium. The color gamut adjustment method includes: acquiring an actual measurement color gamut range of a display device to be adjusted when displaying a test image; determining a color gamut area coverage based on the measured color gamut range and a standard color gamut range; and adjusting a color gamut adjustment matrix according to a comparison result of the color gamut area coverage rate and a preset threshold value until the actual measurement color gamut range of the display device to be adjusted after adjustment meets the preset threshold value. The color gamut adjustment method, the device, the electronic equipment and the storage medium can realize automatic color gamut test and adjustment.

Description

Color gamut adjusting method and device, electronic equipment and storage medium
Technical Field
One or more embodiments of the present disclosure relate to the field of display technologies, and in particular, to a color gamut adjustment method, device, electronic apparatus, and storage medium.
Background
The color gamut refers to a range area constituted by the number of colors that can be expressed by the display device. The colors of the visible spectrum in nature constitute the largest color gamut space that contains all the colors that can be seen by the human eye. The display technology is a medium for displaying information, and the maximum display of the original color of the object is a continuously pursuing goal of high-quality display equipment, so that the color gamut of the display product is required to be further improved.
At present, when the display screen provided by the related technology is debugged in the field, whether the display parameters such as the color gamut, the color temperature and the like meet the requirements of the test standard or not needs to be tested, and if the display parameters do not meet the requirements of the test standard, the display parameters need to be manually and repeatedly modified for debugging until the display parameters meet the requirements of the test standard, and the process is very complicated.
Disclosure of Invention
In view of this, one or more embodiments of the present disclosure are directed to a color gamut adjusting method, device, electronic apparatus, and storage medium, so as to solve the color gamut adjusting problem.
In view of the above object, one or more embodiments of the present specification provide a color gamut adjustment method including:
acquiring an actual measurement color gamut range of a display device to be adjusted when displaying a test image;
determining a color gamut area coverage based on the measured color gamut range and a standard color gamut range;
and adjusting a color gamut adjustment matrix according to a comparison result of the color gamut area coverage rate and a preset threshold value until the actual measurement color gamut range of the display device to be adjusted after adjustment meets the preset threshold value.
Optionally, the determining the coverage of the color gamut area based on the measured color gamut range and the standard color gamut range includes:
Determining first coordinates of all vertexes of the overlapped polygon in a color gamut coordinate system according to the actually measured color gamut range and the standard color gamut range;
calculating the area of the overlapped polygon based on the first coordinates;
and calculating the color gamut area coverage rate according to the area of the overlapped polygon and the area of the standard color gamut range.
Optionally, the determining, according to the measured color gamut range and the standard color gamut range, a first coordinate of all vertices of the overlapped polygon in a color gamut coordinate system includes:
acquiring actual measurement RGB vertex coordinates in a color coordinate system corresponding to the actual measurement color gamut range, and determining an actual measurement triangle based on the actual measurement RGB vertex coordinates;
obtaining standard RGB vertex coordinates in a color coordinate system corresponding to the standard color gamut range, and determining a standard triangle according to the standard RGB vertex coordinates;
determining an intersection of the measured triangle and a side length of a standard triangle, a first vertex of the standard triangle located inside or on the side of the measured triangle, and a second vertex of the measured triangle located inside or on the side of the standard triangle;
and determining the first coordinates of all vertexes of the overlapped polygon according to the intersection point, the first vertexes and the second vertexes.
Optionally, the calculating the area of the overlapping polygon based on the first coordinate includes:
determining a clockwise or counterclockwise order of all vertices relative to an origin of a color coordinate system based on the first coordinates of all vertices of the overlapping polygons;
the area of the overlapping polygons is calculated based on the clockwise or counterclockwise order of all vertices relative to the origin of the color coordinate system.
Optionally, the determining, based on the first coordinates of all vertices of the overlapping polygon, a clockwise or counterclockwise order of all vertices with respect to an origin of a color coordinate system includes:
acquiring first vertexes and second vertexes in all vertexes of the overlapped polygon, calculating vector cross products of vectors of the first vertexes and the second vertexes relative to an origin, and determining a clockwise or anticlockwise sequence of the first vertexes and the second vertexes relative to the origin of a color coordinate system based on the vector cross products;
and/or the number of the groups of groups,
and taking any vertex in all vertexes of the overlapped polygon as a reference origin, and determining the clockwise or anticlockwise sequence of the two vertexes relative to the reference origin of a color coordinate system according to the vector cross product of vectors of any two vertexes except the reference origin relative to the reference origin.
Optionally, the color gamut adjusting matrix isThe adjusting the color gamut adjusting matrix according to the comparison result of the color gamut area coverage rate and a preset threshold value comprises the following steps:
when the coverage rate of the color gamut area is smaller than the preset threshold value, at least one value of Para4 and Para7 is adjusted based on the first adjustment amplitude to adjust the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range, at least one value of Para2 and Para8 is adjusted based on the first adjustment amplitude to adjust the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range, and at least one value of Para3 and Para6 is adjusted based on the first adjustment amplitude to adjust the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range.
Optionally, when the R-vertex coordinate of the color coordinate system corresponding to the measured color gamut range is at the lower left of the R-vertex coordinate of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para7 based on the first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para4 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para4 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper right side of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para7 based on a first adjustment amplitude;
When the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para8 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para2 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para2 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper right part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para8 based on a first adjustment amplitude;
when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the values of Para3 and Para6 based on a first adjustment amplitude; when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para3 or decreasing the value of Para6 based on the first adjustment amplitude; when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para6 or reducing the value of Para3 based on the first adjustment amplitude; and when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right upper part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the values of Para3 and Para6 based on the first adjustment amplitude.
Optionally, when any parameter in the color gamut adjustment matrix is adjusted, the following is satisfied:
Para1+Para2+Para3=Para4+Para5+Para6=Para7+Para8+Para9=1。
one or more embodiments of the present specification provide a color gamut adjusting device including:
the acquisition module is used for acquiring the actual measurement color gamut range of the display device to be adjusted when the test image is displayed;
the determining module is used for determining the coverage rate of the color gamut area based on the actual measurement color gamut range and the standard color gamut range;
and the adjusting module is used for adjusting the color gamut adjusting matrix according to the comparison result of the color gamut area coverage rate and a preset threshold value until the actual measurement color gamut range of the adjusted display device to be measured meets the preset threshold value.
One or more embodiments of the present specification provide an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the gamut adjustment method as set forth in any one of the preceding claims when the program is executed by the processor.
One or more embodiments of the present specification provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the gamut adjustment method as set forth in any of the preceding claims.
As can be seen from the foregoing, in the color gamut adjustment method, apparatus, electronic device and storage medium provided in one or more embodiments of the present disclosure, the calculated color gamut area coverage is compared with a preset threshold value, if the requirement of the preset threshold value is not met, the color gamut of the display device to be adjusted is adjusted based on the color gamut adjustment matrix, the color gamut area coverage is recalculated and compared with the preset threshold value after the adjustment, the color gamut area coverage is repeatedly calculated, and the color gamut adjustment is performed based on the color gamut adjustment matrix until the calculated color gamut area coverage meets the preset threshold value. According to the color gamut adjusting method, the color gamut area coverage is calculated according to the measured color gamut range obtained through measurement, the calculated color gamut area coverage is compared with the preset threshold value, the color gamut adjusting matrix is adjusted according to the comparison result until the adjusted color gamut area coverage meets the requirement of the preset threshold value, the color gamut of the display device to be adjusted is automatically adjusted, the color gamut coverage is improved, and the color gamut calibration work of the display device is assisted.
Drawings
For a clearer description of one or more embodiments of the present description or of the solutions of the prior art, the drawings that are necessary for the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are only one or more embodiments of the present description, from which other drawings can be obtained, without inventive effort, for a person skilled in the art.
FIG. 1 is a flow diagram of a color gamut adjustment method according to one or more embodiments of the present disclosure;
FIG. 2 is a schematic diagram of color gamut coverage in accordance with one or more embodiments of the present disclosure;
FIG. 3a is a schematic diagram of an overlapping portion of a measured gamut range and a standard gamut range in accordance with one or more embodiments of the present disclosure;
FIG. 3b is another schematic diagram of an overlapping portion of a measured gamut range and a standard gamut range in accordance with one or more embodiments of the present disclosure;
FIG. 3c is a further schematic diagram of an overlapping portion of a measured gamut range and a standard gamut range in accordance with one or more embodiments of the present disclosure;
FIG. 3d is a schematic diagram of an overlapping portion of a measured gamut range and a standard gamut range according to one or more embodiments of the present disclosure;
FIG. 3e is a final schematic diagram of an overlapping portion of a measured gamut range and a standard gamut range in accordance with one or more embodiments of the present disclosure;
FIG. 4 is a schematic diagram of a color gamut adjusting device according to one or more embodiments of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to one or more embodiments of the present disclosure.
Detailed Description
For the purposes of promoting an understanding of the principles and advantages of the disclosure, reference will now be made to the embodiments illustrated in the drawings and specific language will be used to describe the same.
It is noted that unless otherwise defined, technical or scientific terms used in one or more embodiments of the present disclosure should be taken in a general sense as understood by one of ordinary skill in the art to which the present disclosure pertains. The use of the terms "first," "second," and the like in one or more embodiments of the present description does not denote any order, quantity, or importance, but rather the terms "first," "second," and the like are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
The color gamut generally refers to the range covered by the maximum red, green, and blue color coordinates xy of the monitor, and is displayed as a triangle on the color coordinate system, with vertices corresponding to red R, green G, and blue B, respectively. Professional displays have many standard color gamut requirements, such as bt.709, bt.2020, sRGB, etc., and different monitor manufacturers perform color gamut adjustment according to the different standard color gamut requirements, so that different color gamut modes of the monitor can reach industry-accepted standards.
To achieve adjustment of a color gamut of a display device, one or more embodiments of the present specification provide a color gamut adjustment method. As shown in fig. 1, the color gamut adjustment method includes:
step S101, obtaining an actual measurement color gamut range of a display device to be adjusted when displaying a test image.
Optionally, the test image includes at least three R/G/B groups, wherein the R group includes a red frame with a full 255 gray levels, the G group includes a green frame with a full 255 gray levels, and the B group includes a blue frame with a full 255 gray levels.
Optionally, the test image includes at least three R/G/B groups, where the R group includes a plurality of red frames with preset gray-scale values, the G group includes a plurality of green frames with preset gray-scale values, the B group includes a plurality of blue frames with preset gray-scale values, and the preset gray-scale values include all 255 gray-scales and one or more values between 0 and 254.
It should be noted that, by performing chromaticity measurement according to the full 255 gray scale, three vertices of the triangle of the color gamut map can be obtained by the R/G/B groups; by measuring the chromaticity of the test images with other gray scales, the obtained color gamut image can be more accurate, specifically, the preset gray scale values of the test images of each group can be respectively from the initial gray scale value, and the preset gray scale values are gradually increased by a fixed value, for example: the preset gray scale values of the test images of each group can be 0,5, 10, 15, 20 and … … respectively. In this embodiment, the PC software may control the colorimeter to measure the actual measurement color gamut range of the display device to be adjusted. During measurement, the measured value obtained by the display device to be adjusted is sent to PC software through the USB interface, color information of a monitor screen of the display device to be adjusted is obtained, vertex color coordinates of the actual measurement color gamut range, namely actual measurement RGB vertex coordinates, can be obtained, and the actual measurement color gamut range can be confirmed based on the actual measurement RGB vertex coordinates.
Meanwhile, the PC software and the FPGA handshake feedback enable the FPGA control equipment to switch different pattern picture display signals: pure red, pure green, pure blue, pure white. And obtaining the actual measurement color gamut range corresponding to different pictures.
Step S102, determining the coverage rate of the color gamut area based on the actual measurement color gamut range and the standard color gamut range.
As shown in fig. 2, the gamut coverage in CIE 1931XYZ color space 1 is schematic. Wherein the standard color gamut range 2 is sRGB, and the measured color gamut range 3 and the standard color gamut range 2 have overlapping portions.
The coverage of the color gamut area isThe important index of the display device standard is measured, and the difference between the actual measurement color gamut range and the standard color gamut range can be measured. The color gamut area coverage rate represents the proportion of the overlapped part of the actual measurement color gamut range and the standard color gamut range to the standard color gamut range, and the calculation formula is as follows: s is S 1 ∩S 2 /S 1 . Wherein S is 1 Represents the area of the standard color gamut, S 2 Represents the area of the actual measurement color gamut range S 1 ∩S 2 Representing the area of the overlapping portion of the standard color gamut range and the measured color gamut range.
Step S103, adjusting a color gamut adjustment matrix according to a comparison result of the color gamut area coverage and a preset threshold value until the actual measurement color gamut range of the adjusted display device to be adjusted meets the preset threshold value.
Optionally, in this embodiment, the preset threshold is a preset value, and the requirements of different display devices on the coverage rate of the color gamut area are different, so that when the color gamut of different display devices is adjusted, the preset threshold needs to be adjusted according to parameters such as the type of the display device.
Optionally, the adjusted color gamut adjusting matrix is transmitted into a Linux system of the SoC through the LAN interface, and the group of parameters are loaded into the Linux system of the SoC through the SoC updating FPGA to realize the adjustment of the color gamut. And after the adjustment is finished, recalculating the coverage rate of the color gamut area and comparing the coverage rate with a preset threshold value until the coverage rate of the color gamut area obtained by calculation meets the preset threshold value.
In this embodiment, the calculated coverage of the color gamut area is compared with a preset threshold value, if the requirement of the preset threshold value is not met, the color gamut of the display device to be adjusted is adjusted based on the color gamut adjustment matrix, the coverage of the color gamut area is recalculated after adjustment and compared with the preset threshold value, the coverage of the color gamut area is calculated repeatedly, and the color gamut adjustment is performed based on the color gamut adjustment matrix until the coverage of the color gamut area obtained by calculation meets the preset threshold value. According to the color gamut adjusting method, the color gamut area coverage is calculated according to the measured color gamut range obtained through measurement, the calculated color gamut area coverage is compared with the preset threshold value, the color gamut adjusting matrix is adjusted according to the comparison result until the adjusted color gamut area coverage meets the requirement of the preset threshold value, the color gamut of the display device to be adjusted is automatically adjusted, the color gamut coverage is improved, and the color gamut calibration work of the display device is assisted.
In some embodiments of the present specification, determining the gamut area coverage based on the measured gamut range and the standard gamut range as described in step S102 includes:
step S201, determining a first coordinate of all vertices of the overlapped polygon in a color gamut coordinate system according to the actually measured color gamut range and the standard color gamut range.
As shown in fig. 3a-3e, the overlapping portion of the measured gamut range 3 and the standard gamut range 2 is a convex polygon, which may be generally triangular, quadrangular, pentagonal or hexagonal.
The vertex color coordinates of the actual measurement color gamut range can be obtained when the colorimeter is used for measuring the actual measurement color gamut range 3, and meanwhile, the vertex color coordinates of the standard color gamut range are also known, so that the first coordinates of all vertexes of the overlapped polygon in the color gamut coordinate system can be obtained, then the area of the overlapped polygon can be calculated according to the coordinates of all vertexes of the overlapped polygon, and finally the coverage rate of the color gamut area is determined.
Step S202, calculating the area of the overlapping polygon based on the first coordinates.
Step S203, calculating the coverage rate of the color gamut area according to the area of the overlapped polygon and the area of the standard color gamut range.
As one or more embodiments of the present specification, determining, in step S201, first coordinates of all vertices of the overlapping polygon in a color gamut coordinate system according to the measured color gamut range and the standard color gamut range includes:
Step S301, obtaining the actual measurement RGB vertex coordinates in the color coordinate system corresponding to the actual measurement color gamut range, and determining an actual measurement triangle based on the actual measurement RGB vertex coordinates.
Optionally, because the actual measurement RGB vertex coordinates in the color coordinate system corresponding to the actual measurement color gamut range are obtained during measurement by adopting the colorimeter, the actual measurement R vertex coordinates, the actual measurement G vertex coordinates and the actual measurement B vertex coordinates in the actual measurement RGB vertex coordinates are connected in pairs, so that the actual measurement triangle corresponding to the actual measurement color gamut range can be obtained.
Step S302, standard RGB vertex coordinates in a color coordinate system corresponding to the standard color gamut range are obtained, and standard triangles are determined according to the standard RGB vertex coordinates.
Optionally, since standard RGB vertex coordinates in a color coordinate system corresponding to the standard color gamut range are known, standard R vertex coordinates, standard G vertex coordinates, and standard B vertex coordinates in the standard RGB vertex coordinates are connected in pairs, so that a standard triangle corresponding to the standard color gamut range can be obtained.
Step S303, determining an intersection point of the side lengths of the measured triangle and the standard triangle, a first vertex of the standard triangle located inside or on the side of the measured triangle, and a second vertex of the measured triangle located inside or on the side of the standard triangle.
In this embodiment, since the measured RGB vertex coordinates of the measured triangle and the standard RGB vertex coordinates of the standard triangle are known, step S303 may specifically include:
step S401, judging whether the side length of the actually measured triangle and the side length of the standard triangle have an intersection point, if so, calculating the coordinates of the intersection point; if not, not recording.
Step S402, judging whether the vertex of the standard triangle is positioned in the measured triangle or on the line segment side, if so, marking the vertex as a first vertex; otherwise, not marked.
Step S403, judging whether the vertex of the actual measurement triangle is positioned in the standard triangle or on the line segment side, if so, marking the vertex as a second vertex; otherwise, not marked.
The order of steps S401 to S403 is not limited to the above-mentioned order of steps, and the order of calculation of the intersection point, the first vertex and the second vertex may be adjusted as required.
Optionally, to facilitate data processing, step S303 may further specifically include:
step S501, the intersection relationship between the three side lengths of the actual measurement triangle and the three side lengths of the standard triangle is sequentially judged. If the side length of the actually measured triangle and the side length of the standard triangle have effective intersection points, the xy color coordinates of the intersection points are calculated and stored in an array; wherein the coordinates of the intersection point are positive values. If the side length of the actually measured triangle does not have a valid intersection point with the side length of the standard triangle, the xy color sitting at the intersection point is marked as-1. As shown in FIG. 3e, if the side length of the measured triangle and the side length of the standard triangle have overlapping parts, namely, there are countless intersection points, the intersection points are regarded as invalid intersection points at the moment, and the xy coordinates are marked as-2. Since the vertices of the corresponding overlapping polygons are vertices of a standard triangle or an actual triangle when they overlap, this is calculated in step S502. In this step, the coordinates of 9 points are obtained in total.
Step S502, judging whether the vertex of the standard triangle is positioned in the measured triangle or on the line segment side in sequence, if so, marking the vertex as a first vertex and storing the xy color coordinates of the first vertex into an array. Otherwise, the xy color coordinates are recorded as-1. The coordinates of 3 points are obtained in total in this step.
Step S503, judging whether the vertex of the actual measurement triangle is positioned in the standard triangle or on the line segment side, if so, marking the vertex as a second vertex and storing the xy coordinates of the second vertex into the array. Otherwise, the xy color coordinates are recorded as-1. The coordinates of 3 points are obtained in total in this step.
The order of steps S501 to S503 is not limited to the above-mentioned order of steps, and the order of calculation of the intersection point, the first vertex and the second vertex may be adjusted as required.
15 coordinates can be obtained through steps S501 to S503. However, the effective coordinate points can only be 0-6, that is, the vertices of the overlapped polygon can only be 0-6, so that the points need to be screened and then ordered clockwise or anticlockwise.
According to the concept of a vector cross product, for vertex A, vertex B and origin of coordinates O, the cross product of vector OA and vector OB is calculated, if the cross product >0, point A is marked 1 in the clockwise direction of point B, otherwise marked 0, thus distinguishing the "size" of the two points. Wherein, A (x 1, y 1), B (x 2, y 2), O (x 0, y 0), the cross product of A and B is: a×b=x1×y2—x2×y1.
Therefore, the order of any two points with respect to the origin O can be determined by calculating the vector cross product thereof with respect to the origin O of coordinates based on the coordinates of any two points among the 15 points. Thereafter, the method further comprises:
step S504, coarse bubbling ordering from small to large is carried out on the 15 point coordinates according to the order of any two points relative to the original point O. Thus, invalid points are arranged in front, valid points are arranged in back, the points are traversed, the first xy coordinate point with positive value is found, and the valid points are all valid points, namely the vertexes of the overlapped polygons, from the point.
Step S304, determining the first coordinates of all vertices of the overlapping polygon according to the intersection point, the first vertex, and the second vertex.
As one or more embodiments of the present specification, calculating the area of the overlapping polygon based on the first coordinate in step S202 includes:
step S601, determining a clockwise or counterclockwise order of all vertices relative to an origin of a color coordinate system based on the first coordinates of all vertices of the overlapping polygon.
Step S602, based on the clockwise or anticlockwise order of all vertices relative to the origin of the color coordinate system, the vertices of the ordered overlapping polygons are { P 1 (x 1 ,y 1 ),P 2 (x 2 ,y 2 ),…P i (x i ,y i )…P n (x n ,y n ) }. And calculating the area of the overlapped polygon. Wherein, the formula of the area S of the overlapped polygon is:
wherein i is more than or equal to 1 and less than or equal to n, and i is an integer. Since the overlapping polygon is a closed figure, the last point is e.g. P n To calculate sum P 1 I.e. when i=n, another i+1=1。
Optionally, determining the clockwise or counterclockwise order of all vertices relative to the origin of the color coordinate system based on the first coordinates of all vertices of the overlapped polygon in step S601 includes:
and acquiring first vertexes and second vertexes in all vertexes of the overlapped polygon, calculating vector cross products of vectors of the first vertexes and the second vertexes relative to an origin, and determining a clockwise or anticlockwise sequence of the first vertexes and the second vertexes relative to the origin of a color coordinate system based on the vector cross products. The first vertex is any one of all vertexes of the overlapped polygon, and the second vertex is any one vertex different from the first vertex in all vertexes of the overlapped polygon. The order of any two points can be obtained through the vector cross product of any two points, and then the bubbling ordering is carried out, so that the clockwise or anticlockwise order of all the points relative to the origin of the color coordinate system can be obtained.
Alternatively, in the above-described ordering, there may be a case where two vertices of the overlapped polygon are collinear with the origin of the color coordinate system, where the cross product thereof with respect to the origin is the same, and thus the clockwise or counterclockwise order of several vertices of the overlapped polygon cannot be properly discharged. It is therefore necessary to further order the vertices of the overlapping polygon. The sequencing method comprises the following steps:
and taking any vertex of all vertexes of the overlapped polygon as a reference origin, determining a clockwise or anticlockwise sequence of the two vertexes relative to the reference origin of the color coordinate system according to a vector cross product of vectors of any two vertexes except the reference origin, and performing bubbling sequencing to obtain the clockwise or anticlockwise sequence of all vertexes relative to the reference origin of the color coordinate system. Since the overlapping polygon is a convex polygon, starting with one of the vertices, the three points are no longer collinear. Alternatively, in this step, the xy coordinate point whose first positive value in step S504 is selected as the selected reference origin.
Optionally, after the first coordinates of all vertices of the overlapped polygon are determined in step S304, any vertex of all vertices of the overlapped polygon may be directly used as a reference origin to perform ranking, so as to avoid a situation that two vertices of the overlapped polygon are co-linear with the origin of the color coordinate system, where the ranking occurs with the origin of the color coordinate system as a reference.
In one or more embodiments of the present specification, the conversion formula M of XYZ and RGB is obtained from the measured color coordinates xy of four colors of pure red, pure green, pure blue, and pure white; the conversion formula N of XYZ and RGB is obtained from the measured color coordinates xy of four colors of pure white, pure red, pure green and pure blue, wherein:
through conversion, can obtainColor gamut adjustment matrix is M -1 N。
Rewriting the above to obtain
That is, the color gamut adjustment matrixWherein, para1-Para9 are all numbers of more than or equal to 0 and less than or equal to 1.
This can be achieved by:
R’=Para1*R+Para2*G+Para3*B;
G’=Para4*R+Para5*G+Para6*B;
B’=Para7*R+Para8*G+Para9*B。
as can be seen from the above formula, when the three primary colors of red, green and blue are precisely calibrated, when red is calibrated, r=1, g=b=0, and the effective parameters only have P1, P4 and P7 influence the output result of R, G, B respectively; when the calibration is green, g=1, r=b=0, and the effective parameters only have P2, P5 and P8 influence the output result of R, G, B respectively; when the blue color is calibrated, b=1, r=g=0, and the effective parameters only P3, P6, and P9 affect the output result of R, G, B, respectively. When the pixel value of a certain channel is increased, the color coordinates will move from the center direction to the top angle direction thereof, and when the pixel value of a certain channel is decreased, the color coordinates will move from the top angle direction to the center direction thereof. The original conversion matrix before the color gamut adjustment is an identity matrix, R ' =r, G ' =g, B ' =b. Taking red calibration as an example, at this time:
R’=Para1*R;
G’=Para4*G;
B’=Para7*B。
Therefore, the adjusting the color gamut adjustment matrix according to the comparison result of the color gamut area coverage and the preset threshold in step S103 includes:
when the coverage rate of the color gamut area is smaller than the preset threshold value, at least one value of Para4 and Para7 is adjusted based on the first adjustment amplitude to adjust the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range, at least one value of Para2 and Para8 is adjusted based on the first adjustment amplitude to adjust the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range, and at least one value of Para3 and Para6 is adjusted based on the first adjustment amplitude to adjust the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range.
Optionally, when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, the value of Para7 is reduced based on the first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para4 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para4 based on a first adjustment amplitude; and when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right upper part of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para7 based on the first adjustment amplitude.
Optionally, when the G-vertex coordinate of the color coordinate system corresponding to the measured color gamut range is at the lower left of the G-vertex coordinate of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para8 based on the first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para2 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para2 based on a first adjustment amplitude; and when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper right part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para8 based on the first adjustment amplitude.
Optionally, when the B-vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left of the B-vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the values of Para3 and Para6 based on the first adjustment amplitude; when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para3 or decreasing the value of Para6 based on the first adjustment amplitude; when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para6 or reducing the value of Para3 based on the first adjustment amplitude; and when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right upper part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the values of Para3 and Para6 based on the first adjustment amplitude.
Optionally, when any parameter in the color gamut adjustment matrix is adjusted, after the corresponding parameter is adjusted, several other parameters are modified to satisfy:
Para1+Para2+Para3=Para4+Para5+Para6=Para7+Para8+Para9=1。
for example, if para4=0, para5=1, para6=0 before adjustment; adjustment is performed with pari4=0.1, and in order to avoid overflow, pari5 is adjusted to pari5=0.9.
It should be noted that the methods of one or more embodiments of the present description may be performed by a single device, such as a computer or server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the methods of one or more embodiments of the present description, the devices interacting with each other to accomplish the methods.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, one or more embodiments of the present disclosure also provide a color gamut adjusting device corresponding to the method of any of the embodiments described above. As shown in fig. 4, the apparatus includes:
the obtaining module 11 is configured to obtain an actual measurement color gamut range of the display device to be adjusted when displaying the test image.
A determining module 12 is configured to determine a gamut area coverage based on the measured gamut range and the standard gamut range.
And the adjusting module 13 is configured to adjust a color gamut adjusting matrix according to a comparison result of the color gamut area coverage rate and a preset threshold value, until the actual measurement color gamut range of the adjusted display device to be measured meets the preset threshold value.
Optionally, the determining module 12 is further configured to implement:
determining first coordinates of all vertexes of the overlapped polygon in a color gamut coordinate system according to the actually measured color gamut range and the standard color gamut range;
calculating the area of the overlapped polygon based on the first coordinates;
and calculating the color gamut area coverage rate according to the area of the overlapped polygon and the area of the standard color gamut range.
Optionally, the determining, according to the measured color gamut range and the standard color gamut range, a first coordinate of all vertices of the overlapped polygon in a color gamut coordinate system includes:
Acquiring actual measurement RGB vertex coordinates in a color coordinate system corresponding to the actual measurement color gamut range, and determining an actual measurement triangle based on the actual measurement RGB vertex coordinates;
obtaining standard RGB vertex coordinates in a color coordinate system corresponding to the standard color gamut range, and determining a standard triangle according to the standard RGB vertex coordinates;
determining an intersection of the measured triangle and a side length of a standard triangle, a first vertex of the standard triangle located inside or on the side of the measured triangle, and a second vertex of the measured triangle located inside or on the side of the standard triangle;
and determining the first coordinates of all vertexes of the overlapped polygon according to the intersection point, the first vertexes and the second vertexes.
Optionally, the calculating the area of the overlapping polygon based on the first coordinate includes:
determining a clockwise or counterclockwise order of all vertices relative to an origin of a color coordinate system based on the first coordinates of all vertices of the overlapping polygons;
the area of the overlapping polygons is calculated based on the clockwise or counterclockwise order of all vertices relative to the origin of the color coordinate system.
Optionally, the determining, based on the first coordinates of all vertices of the overlapping polygon, a clockwise or counterclockwise order of all vertices with respect to an origin of a color coordinate system includes:
Acquiring first vertexes and second vertexes in all vertexes of the overlapped polygon, calculating vector cross products of vectors of the first vertexes and the second vertexes relative to an origin, and determining a clockwise or anticlockwise sequence of the first vertexes and the second vertexes relative to the origin of a color coordinate system based on the vector cross products;
and/or the number of the groups of groups,
and taking any vertex in all vertexes of the overlapped polygon as a reference origin, and determining the clockwise or anticlockwise sequence of the two vertexes relative to the reference origin of a color coordinate system according to the vector cross product of vectors of any two vertexes except the reference origin relative to the reference origin.
Optionally, the color gamut adjusting matrix isThe adjustment module 13 is further configured to implement:
when the coverage rate of the color gamut area is smaller than the preset threshold value, at least one value of Para4 and Para7 is adjusted based on the first adjustment amplitude to adjust the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range, at least one value of Para2 and Para8 is adjusted based on the first adjustment amplitude to adjust the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range, and at least one value of Para3 and Para6 is adjusted based on the first adjustment amplitude to adjust the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range.
Optionally, the adjusting module 13 is further configured to implement:
when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left part of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para7 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para4 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para4 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper right side of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para7 based on a first adjustment amplitude;
when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para8 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para2 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para2 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper right part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para8 based on a first adjustment amplitude;
When the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the values of Para3 and Para6 based on a first adjustment amplitude; when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para3 or decreasing the value of Para6 based on the first adjustment amplitude; when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para6 or reducing the value of Para3 based on the first adjustment amplitude; and when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right upper part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the values of Para3 and Para6 based on the first adjustment amplitude.
Optionally, when any parameter in the color gamut adjustment matrix is adjusted, the following is satisfied:
Para1+Para2+Para3=Para4+Para5+Para6=Para7+Para8+Para9=1。
for convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in one or more pieces of software and/or hardware when implementing one or more embodiments of the present description.
The device of the foregoing embodiment is configured to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, one or more embodiments of the present disclosure further provide an electronic device, corresponding to the method of any of the embodiments, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method of color gamut adjustment according to any of the embodiments.
Fig. 5 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured to implement the corresponding color gamut adjustment method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, one or more embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the color gamut adjustment method according to any of the embodiments described above, corresponding to any of the embodiments described above.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the disclosure, including the claims, is limited to these examples; combinations of features of the above embodiments or in different embodiments are also possible within the spirit of the present disclosure, steps may be implemented in any order, and there are many other variations of the different aspects of one or more embodiments described above which are not provided in detail for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure one or more embodiments of the present description. Furthermore, the apparatus may be shown in block diagram form in order to avoid obscuring the one or more embodiments of the present description, and also in view of the fact that specifics with respect to implementation of such block diagram apparatus are highly dependent upon the platform within which the one or more embodiments of the present description are to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that one or more embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present disclosure is intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Any omissions, modifications, equivalents, improvements, and the like, which are within the spirit and principles of the one or more embodiments of the disclosure, are therefore intended to be included within the scope of the disclosure.

Claims (10)

1. A color gamut adjustment method, comprising:
acquiring an actual measurement color gamut range of a display device to be adjusted when displaying a test image;
determining a color gamut area coverage based on the measured color gamut range and a standard color gamut range;
adjusting a color gamut adjustment matrix according to a comparison result of the color gamut area coverage rate and a preset threshold value until the actual measurement color gamut range of the display device to be adjusted after adjustment meets the preset threshold value;
wherein the color gamut adjustment matrix is
When any parameter in the color gamut adjustment matrix is adjusted, the following is satisfied:
Para1+Para2+Para3=Para4+Para5+Para6=Para7+Para8+Para9=1。
2. the method of claim 1, wherein the determining the gamut area coverage based on the measured gamut range and the standard gamut range comprises:
determining first coordinates of all vertexes of the overlapped polygon in a color gamut coordinate system according to the actually measured color gamut range and the standard color gamut range;
Calculating the area of the overlapped polygon based on the first coordinates;
and calculating the color gamut area coverage rate according to the area of the overlapped polygon and the area of the standard color gamut range.
3. The method of claim 2, wherein determining the first coordinates of all vertices of the overlapping polygons in the gamut coordinate system based on the measured gamut range and the standard gamut range comprises:
acquiring actual measurement RGB vertex coordinates in a color coordinate system corresponding to the actual measurement color gamut range, and determining an actual measurement triangle based on the actual measurement RGB vertex coordinates;
obtaining standard RGB vertex coordinates in a color coordinate system corresponding to the standard color gamut range, and determining a standard triangle according to the standard RGB vertex coordinates;
determining an intersection of the measured triangle and a side length of a standard triangle, a first vertex of the standard triangle located inside or on the side of the measured triangle, and a second vertex of the measured triangle located inside or on the side of the standard triangle;
and determining the first coordinates of all vertexes of the overlapped polygon according to the intersection point, the first vertexes and the second vertexes.
4. A method according to claim 3, wherein said calculating the area of the overlapping polygons based on the first coordinates comprises:
determining a clockwise or counterclockwise order of all vertices relative to an origin of a color coordinate system based on the first coordinates of all vertices of the overlapping polygons;
the area of the overlapping polygons is calculated based on the clockwise or clockwise order of all vertices relative to the origin of the color coordinate system.
5. The method of claim 4, wherein the determining a clockwise or counterclockwise order of all vertices relative to an origin of a color coordinate system based on the first coordinates of all vertices of the overlapping polygon comprises:
acquiring first vertexes and second vertexes in all vertexes of the overlapped polygon, calculating vector cross products of vectors of the first vertexes and the second vertexes relative to an origin, and determining a clockwise or anticlockwise sequence of the first vertexes and the second vertexes relative to the origin of a color coordinate system based on the vector cross products;
and/or the number of the groups of groups,
and taking any vertex in all vertexes of the overlapped polygon as a reference origin, and determining the clockwise or anticlockwise sequence of the two vertexes relative to the reference origin of a color coordinate system according to the vector cross product of vectors of any two vertexes except the reference origin relative to the reference origin.
6. The method of claim 3, wherein said adjusting the gamut adjustment matrix based on the comparison of the gamut area coverage to a preset threshold comprises:
when the coverage rate of the color gamut area is smaller than the preset threshold value, at least one value of Para4 and Para7 is adjusted based on the first adjustment amplitude to adjust the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range, at least one value of Para2 and Para8 is adjusted based on the first adjustment amplitude to adjust the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range, and at least one value of Para3 and Para6 is adjusted based on the first adjustment amplitude to adjust the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range.
7. The method of claim 6, wherein the step of providing the first layer comprises,
when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left part of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para7 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para4 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para4 based on a first adjustment amplitude; when the R vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper right side of the R vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para7 based on a first adjustment amplitude;
When the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para8 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para2 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para2 based on a first adjustment amplitude; when the G vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper right part of the G vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para8 based on a first adjustment amplitude;
when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the lower left part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the values of Para3 and Para6 based on a first adjustment amplitude; when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are at the upper left part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, increasing the value of Para3 or decreasing the value of Para6 based on the first adjustment amplitude; when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right lower than the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the value of Para6 or reducing the value of Para3 based on the first adjustment amplitude; and when the B vertex coordinates of the color coordinate system corresponding to the actual measurement color gamut range are right upper part of the B vertex coordinates of the color coordinate system corresponding to the standard color gamut range, reducing the values of Para3 and Para6 based on the first adjustment amplitude.
8. A color gamut adjusting device, comprising:
the acquisition module is used for acquiring the actual measurement color gamut range of the display device to be adjusted when the test image is displayed;
the determining module is used for determining the coverage rate of the color gamut area based on the actual measurement color gamut range and the standard color gamut range;
the adjusting module is used for adjusting a color gamut adjusting matrix according to a comparison result of the color gamut area coverage rate and a preset threshold value until the actual measurement color gamut range of the adjusted display device to be adjusted meets the preset threshold value;
wherein the color gamut adjustment matrix is
When any parameter in the color gamut adjustment matrix is adjusted, the following is satisfied:
Para1+Para2+Para3=Para4+Para5+Para6=Para7+Para8+Para9=1。
9. an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the gamut adjustment method of any of claims 1 to 7 when the program is executed by the processor.
10. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the gamut adjustment method of any of claims 1 to 7.
CN202011337554.2A 2020-11-25 2020-11-25 Color gamut adjusting method and device, electronic equipment and storage medium Active CN114550673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011337554.2A CN114550673B (en) 2020-11-25 2020-11-25 Color gamut adjusting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011337554.2A CN114550673B (en) 2020-11-25 2020-11-25 Color gamut adjusting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114550673A CN114550673A (en) 2022-05-27
CN114550673B true CN114550673B (en) 2024-01-23

Family

ID=81660079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011337554.2A Active CN114550673B (en) 2020-11-25 2020-11-25 Color gamut adjusting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114550673B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357521B (en) * 2015-11-04 2017-07-18 广东威创视讯科技股份有限公司 A kind of method and relevant device for measuring color domain coverage ratio
CN106531060B (en) * 2016-11-16 2019-02-26 西安诺瓦电子科技有限公司 The bearing calibration of LED display bright chroma and device
CN110662022B (en) * 2019-09-29 2021-08-20 京东方科技集团股份有限公司 Color gamut adjusting system and color gamut adjusting method
CN111312141B (en) * 2020-02-18 2024-04-26 京东方科技集团股份有限公司 Color gamut adjusting method and device

Also Published As

Publication number Publication date
CN114550673A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US7742057B2 (en) Method and device of obtaining a color temperature point
US10620693B2 (en) Apparatus and method for displaying image in virtual space
JP5672848B2 (en) How to adjust the displayed image
KR20180050054A (en) Electronic apparatus, display apparatus and control method thereof
JP2007163979A (en) Profile preparation apparatus, profile preparation program and image output apparatus
KR102233316B1 (en) Display apparatus, display correction appratus, display correction system and display correction method
CN104316192A (en) Image display quality testing method, testing platform and system
CN114550673B (en) Color gamut adjusting method and device, electronic equipment and storage medium
JP6156361B2 (en) Color reproduction method, color reproduction system, color reproduction program, and color reproduction apparatus
JP2015173891A (en) Measuring apparatus, image display apparatus, and control method therefor
CN104427322A (en) Information processing device, imaging device, information processing method, and program
WO2017084424A1 (en) Chroma adjustment method and device for liquid crystal display screen
US9293113B2 (en) Image processing apparatus and control method thereof
JP5058532B2 (en) Image display system and image display method
EP3985650A1 (en) Display device and control method for same
KR20210101053A (en) Electronic device including display
JP6833304B2 (en) Measurement method, measurement system, display device, computer program
CN108682407B (en) Automatic color temperature adjusting method
JP5376077B1 (en) Measuring position determining device, measuring position determining method, image display system, program
TWI603316B (en) Method and display device for simulating display characteristics of display
JP5712052B2 (en) Colorimetric position determination method and display device
US20240119574A1 (en) Method of adjusting displayed image and display system
CN113990230B (en) Gamma curve vertex acquisition method, device, equipment and readable storage medium
TWI817601B (en) Color correction method and color correction device
WO2022199332A1 (en) Color correction method, correctable display method, electronic device, and chip

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
GR01 Patent grant
GR01 Patent grant