CN117912425A - Color reproduction method and device, electronic equipment and storage medium - Google Patents

Color reproduction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117912425A
CN117912425A CN202410140990.2A CN202410140990A CN117912425A CN 117912425 A CN117912425 A CN 117912425A CN 202410140990 A CN202410140990 A CN 202410140990A CN 117912425 A CN117912425 A CN 117912425A
Authority
CN
China
Prior art keywords
color
primary
brightness
target
primary colors
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
CN202410140990.2A
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.)
Hefei Full Color Light Display Technology Co ltd
Original Assignee
Hefei Full Color Light Display Technology Co ltd
Filing date
Publication date
Application filed by Hefei Full Color Light Display Technology Co ltd filed Critical Hefei Full Color Light Display Technology Co ltd
Publication of CN117912425A publication Critical patent/CN117912425A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a color reproduction method, a device, an electronic device and a storage medium, wherein the method and the device are applied to the electronic device, and particularly are used for acquiring the number of primary colors of a plurality of primary colors of a display device, and target color coordinates and target brightness of target colors to be reproduced, wherein the plurality of primary colors comprise 3 first primary colors and at least 1 second primary color; calculating the color coordinates of each primary color in the 3 first primary colors based on the target color coordinates and the target brightness to obtain a first constraint condition of the color coordinates of each first primary color mixed into the target color; calculating each second primary color based on the first constraint condition to obtain at least one second constraint condition; constructing a solution space corresponding to the target color based on the first constraint condition and the second constraint condition; and solving the solution space to obtain a plurality of primary color brightness combination schemes corresponding to the target color, wherein the primary color brightness combination scheme comprises the brightness value of each primary color. Thus, after the brightness combination schemes of different primary colors corresponding to specific colors in the multi-primary color display scheme are found, different display effects can be realized.

Description

Color reproduction method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of display technologies, and in particular, to a color reproduction method, apparatus, electronic device, and storage medium.
Background
With the development of display technology, a display can realize an increasingly larger color gamut. The current common standard for display gamut is sRGB, however this standard covers only a small part of the colors in the chromaticity diagram. The NTSC color gamut currently targeted for display color gamut evaluation can only cover less than half of the chromaticity diagram area. The current display standard with the largest color gamut area is the Rec.2020 standard, but can only cover 73.8% of the xy chromaticity diagram area. And most of the current displays do not reach rec 2020. The existing large-color-gamut display schemes mainly can be divided into two types, one type is that three primary colors are still used, and the area of a primary color triangle in a chromaticity diagram is expanded by improving the color purity of each primary color, so that the large color gamut is realized; the other type is to use more primary colors, namely a multi-primary display technology, so that the color gamut of the display is changed from triangle to polygon in a chromaticity diagram, thereby increasing the color gamut area and realizing large color gamut display.
For the three-primary color display scheme, the problem of metamerism does not exist when a certain color is displayed, but when the number of primary colors is larger than 3, because of the newly added additional primary colors, metamerism can occur on the basis of the three primary colors, namely, when the three primary colors are mixed into a specific color, the three primary colors can be generated by different primary color brightness combinations, but the effect of the different primary color brightness combinations is different, so that in order to realize different display effects, different primary color brightness combination schemes corresponding to the specific color in the multi-primary color display scheme need to be found.
Disclosure of Invention
In view of the above, the present application provides a color reproduction method, apparatus, electronic device, and storage medium for finding out different primary color luminance combination schemes corresponding to a specific color in a multi-primary color display scheme so that selection can be made according to the different primary color luminance combination schemes at the time of display to achieve a specific display effect
In order to achieve the above object, the following solutions have been proposed:
a color reproduction method applied to an electronic device, the color reproduction method comprising the steps of:
Acquiring the number of primary colors of a plurality of primary colors of the display device, and target color coordinates and target brightness of target colors to be reproduced, wherein the plurality of primary colors comprise 3 first primary colors and at least 1 second primary color;
calculating the color coordinates of each primary color in the 3 primary colors based on the target color coordinates and the target brightness to obtain a first constraint condition of the color coordinates of each primary color mixed into the target color;
Calculating each second primary color based on the first constraint condition to obtain at least one second constraint condition;
Constructing a solution space corresponding to the target color based on the first constraint condition and the second constraint condition;
and solving the solution space to obtain a plurality of primary color brightness combination schemes corresponding to the target color, wherein the primary color brightness combination schemes comprise brightness values of each first primary color and brightness values of each second primary color.
Optionally, the 3 first primary colors are any 3 primary colors in the plurality of primary colors, and the second primary colors are other primary colors except the first primary colors in the plurality of primary colors.
Optionally, the method further comprises the steps of:
And selecting an optimal primary color brightness combination scheme from the multiple primary color brightness combination schemes according to the display color gamut boundary reached by each primary color brightness combination scheme.
Optionally, the method further comprises the steps of:
and converting the brightness value of each primary color into a tone scale value by gamma correction.
A color reproduction apparatus applied to an electronic device, the color reproduction apparatus comprising:
A parameter acquisition module configured to acquire a primary color number of a plurality of primary colors of a display device, the plurality of primary colors including 3 first primary colors and at least 1 second primary color, and a target color coordinate and a target luminance of a target color to be reproduced;
The first calculating module is configured to calculate the color coordinates of each primary color in the 3 primary colors based on the target color coordinates and the target brightness, and obtain a first constraint condition of the color coordinates of each primary color mixed into the target color;
The second calculation module is configured to calculate each second primary color based on the first constraint condition to obtain at least one second constraint condition;
A solution space construction module configured to construct a solution space corresponding to the target color based on the first constraint condition and the second constraint condition;
And the solution space solving module is configured to perform solving processing on the solution space to obtain a multi-primary-color brightness combination scheme corresponding to the target color, wherein the primary-color brightness combination scheme comprises a brightness value of each first primary color and a brightness value of each second primary color.
Optionally, the 3 first primary colors are any 3 primary colors in the plurality of primary colors, and the second primary colors are other primary colors except the first primary colors in the plurality of primary colors.
Optionally, the method further comprises:
And a scheme preference module configured to select an optimal primary color luminance combination scheme from the plurality of primary color luminance combination schemes according to a display color gamut boundary achieved by each of the primary color luminance combination schemes.
Optionally, the method further comprises:
And the numerical conversion module is configured to convert the brightness value of each primary color into a tone scale value by gamma correction.
An electronic device comprising at least one processor and a memory coupled to the processor, wherein:
The memory is used for storing a computer program or instructions;
The processor is configured to execute the computer program or instructions to cause the electronic device to implement the color reproduction method as described above.
A storage medium for application to an electronic device, the storage medium carrying one or more computer programs executable by the electronic device to cause the electronic device to implement a color reproduction method as described above.
As can be seen from the above technical solution, the present application discloses a color reproduction method, apparatus, electronic device and storage medium, where the method and apparatus are applied to an electronic device, specifically, obtain the number of primary colors of a plurality of primary colors of a display device, and target color coordinates and target brightness of a target color to be reproduced, where the plurality of primary colors includes 3 first primary colors and at least 1 second primary color; calculating the color coordinates of each primary color in the 3 first primary colors based on the target color coordinates and the target brightness to obtain a first constraint condition of the color coordinates of each first primary color mixed into the target color; calculating each second primary color based on the first constraint condition to obtain at least one second constraint condition; constructing a solution space corresponding to the target color based on the first constraint condition and the second constraint condition; and solving the solution space to obtain a plurality of primary color brightness combination schemes corresponding to the target color, wherein the primary color brightness combination scheme comprises the brightness value of each primary color. Thus, after the brightness combination schemes of different primary colors corresponding to specific colors in the multi-primary color display scheme are found, different display effects can be realized.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a color reproduction method according to an embodiment of the present application;
FIG. 2 is a flow chart of another color reproduction method according to an embodiment of the present application;
FIG. 3 is a flow chart of a color reproduction method according to another embodiment of the present application;
FIG. 4 is a schematic diagram of a solution space according to an embodiment of the present application;
FIG. 5 is a block diagram of a color reproduction apparatus according to an embodiment of the present application;
FIG. 6 is a block diagram of another color reproduction apparatus according to an embodiment of the present application;
FIG. 7 is a block diagram of a color reproduction apparatus according to still another embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
According to the additive color mixing principle, the tristimulus values X, Y and Z of two colors are linearly added according to different weights, so that a new color can be obtained. Wherein the weights represent the brightness of each color separately. The color displayed by the N-primary color display is formed by mixing N primary colors by adjusting brightness.
For a light source with a wider spectrum, the normalized tristimulus value of the ith primary light source can be calculated by using the CIE standard observer curve and the normalized spectrum curve S (lambda) when the primary light source power is 1W:
For very narrow spectrum sources such as laser sources, the normalized tristimulus values for a primary light source having a wavelength of λ i can be calculated by the following equation:
Wherein X i,Yi,Zi is the CIE standard chromaticity observer tristimulus value curve.
For an N-primary display, the display gamut is represented in CIEXYZ space by a parallel polyhedron of tristimulus value vectors (X i,Yi,Zi) corresponding to the peak luminance of the N primary colors. The normalized luminance proportion α of each primary color can be varied between 0 and 1 upon reproduction of the color, thereby displaying different colors. A certain color is reproduced, i.e., the target luminance (X mix,Ymix,Zmix) of the tristimulus values corresponding to the reproduced color is summed with the vector of N primary colors. Based on the above specific ideas, the present application specifically provides the following examples.
Fig. 1 is a flowchart of a color reproduction method according to an embodiment of the present application.
As shown in fig. 1, the color reproduction method provided in the present embodiment is applied to an electronic device for providing a display device including a plurality of primary colors with a plurality of primary color luminance combination schemes, and the electronic device can be understood as a computer, a server, or an embedded device having data computing capability and information processing capability. The color reproduction method comprises the following steps:
S1, acquiring the number of primary colors of the display device, and target color coordinates and target brightness of target colors.
The number of the primary colors of the display device is greater than or equal to 4, wherein the number of the primary colors comprises 3 arbitrarily selected primary colors and other primary colors remained after the primary colors are selected, and the other primary colors remained after the primary colors are selected are expressed as second primary colors for the convenience of distinguishing.
The target luminance here means target luminance Y mix of a target color intended to be reproduced, and the color coordinate of the target color is (x mix,ymix).
The color coordinates (x i,yi) of each primary color in the present application may be known, and if not known, may be calculated from the spectra of the respective primary colors, thereby obtaining the color coordinates of the respective primary colors.
S2, calculating a first constraint condition based on the target color coordinates and the target brightness.
Specifically, the color coordinates of the 3 first primary colors are calculated based on the target color coordinates and the target brightness of the target color, so that a first constraint condition of the color coordinates of each first primary color mixed into the target color is obtained.
Specifically, in the CIEXYZ space, the mixing result of three arbitrarily selected primary colors is taken as the target color, so as to obtain the following first constraint condition:
And
Wherein,For the brightness of one stimulus value of one primary color,/>For the brightness of the same stimulus value of another primary color,/>Brightness of the same stimulus value for the third primary color; /(I)For the brightness of another stimulus value of one primary color,For the brightness of the same stimulus value of another primary color,/>Brightness of the same stimulus value for the third primary color; /(I)For the brightness of one stimulus value of a further primary color,/>For the brightness of the same stimulus value of another primary color,/>The brightness of the same stimulus value for the third primary color. Also, x 1 is the x value of the color coordinate of one primary color, x 2 is the x value of the color coordinate of another primary color, and x 3 is the x value of the color coordinate of the third primary color; y 1 is the y value of the color coordinate of one primary color, y 2 is the y value of the color coordinate of another primary color, and y 3 is the y value of the color coordinate of the third primary color; z 1 is the z-value of the color coordinate of one primary color, z 2 is the z-value of the color coordinate of another primary color, and z 3 is the z-value of the color coordinate of the third primary color.
Is calculated by the first limitation condition
S3, calculating the second primary color based on the first constraint condition to obtain a second constraint condition.
Let j be the sequence number of the second primary color, and the j-th second primary color is expressed by the first 3 first primary colors to obtain the following second constraint condition.
And
Wherein,For the brightness of one stimulus value of one primary color,/>For the brightness of the same stimulus value of another primary color,/>Brightness of the same stimulus value for the third primary color; /(I)For the brightness of another stimulus value of one primary color,For the brightness of the same stimulus value of another primary color,/>Brightness of the same stimulus value for the third primary color; /(I)For the brightness of one stimulus value of a further primary color,/>For the brightness of the same stimulus value of another primary color,/>The brightness of the same stimulus value for the third primary color.
S4, constructing a solution space of the target color based on the first constraint condition and the second constraint condition.
Assuming that the luminance ratio of the j+3th primary color is k jY′(j+3) and Y' (j+3) is treated as a constant, the multi-primary color system satisfies:
Y1 (0)+Y2 (0)+Y3 (0)+∑jkj[Y′(j+3)-(Y1 (j)+Y2 (j)+Y3 (j))]=Ymix
I.e.
(Y1 (0)-∑jkjY1 (j))+(Y2 (0)-∑jkjY2 (j))+(Y3 0-∑jkjY3 (j))+∑jkjY′(j+3)=Ymix
For a multi-primary display system, the luminance of each primary should be greater than 0, so there are:
The inequality group is the solution space corresponding to the reproduction target color, and the dimension is j.
S5, obtaining various brightness combination schemes by solving the solution space.
And solving a solution space to obtain a plurality of brightness combination schemes, wherein the primary color brightness combination scheme comprises the brightness value of each primary color.
The primary luminance solution of the multi-primary system corresponding to the point (k 1,k2,…,kj, …) in the solution space is:
the colors corresponding to the solutions are reproduction colors, and the solution space represents all possible situations of metamerism.
As can be seen from the above technical solution, the present embodiment provides a color reproduction method, which is applied to an electronic device, specifically, obtains the number of primary colors of a plurality of primary colors of the display device, and the target color coordinates and the target brightness of the target color to be reproduced, where the plurality of primary colors includes 3 first primary colors and at least 1 second primary color; calculating the color coordinates of each primary color in the 3 first primary colors based on the target color coordinates and the target brightness to obtain a first constraint condition of the color coordinates of each first primary color mixed into the target color; calculating each second primary color based on the first constraint condition to obtain at least one second constraint condition; constructing a solution space corresponding to the target color based on the first constraint condition and the second constraint condition; and solving the solution space to obtain a plurality of primary color brightness combination schemes corresponding to the target color, wherein the primary color brightness combination scheme comprises the brightness value of each primary color. Thus, after the brightness combination schemes of different primary colors corresponding to specific colors in the multi-primary color display scheme are found, different display effects can be realized.
In addition, in one embodiment of the present application, the following steps are further included, as shown in fig. 2.
S6, selecting an optimal scheme from a plurality of primary color brightness combination schemes.
After the solution space is obtained, the optimal brightness combination scheme of a certain group of primary colors can be obtained by comparing the display color gamut boundaries corresponding to different points in the space. Through the operation, the optimal scheme can be selected from the operation modes, so that the display effect of the display device is better.
Also, in another embodiment of the present application, the following steps are further included, as shown in fig. 3.
S7, converting the primary color brightness combination scheme into a tone scale value.
In the operation, gamma correction is utilized to convert the brightness value of each primary color in the scheme into a tone scale value, so that the device matching of a display system can be realized.
The following is a specific implementation example, which is specifically described below:
the example uses simulated four-primary and six-primary display systems to perform experiments, the mixed color is selected to be white, and any color can be replaced by the mixed color, and only the color coordinates are needed to be given.
The base color number is 4, the reproduced color is white, the target color coordinates are white (0.3127,0.3290), and the brightness is 100.
The color coordinates of the plurality of primary colors are R2 (0.708,0.292), G1 (0.17,0.797), G2 (0.0743,0.8336), B1 (0.141,0.046).
Mixing the three other primary colors R2, G1 and B1 according to the proportion to obtain white, assuming that the brightness of the white is 100, and according to the color coordinate relation of the color mixture:
Xmix=Xred+Xgreen+Xblue (1)
Ymix=Yred+Ygreen+Yblue (2)
Zmix=Zred+Zgreen+Zblue (3)
The method can obtain the following steps:
Assuming again that the fourth primary luminance Y G2 is 100, using the first three primary representations, there are:
YG2=Y′R2+Y′G1+Y′B1=100 (8)
combining the formulas to obtain the result:
using k 1 as a factor to adjust the ratio of the fourth primary colors, a four primary display system needs to satisfy the following conditions:
The physical meaning of the two above is that to increase the brightness of the fourth primary color, we need to scale down the brightness of the first three primary colors. To realize a four primary system, the brightness of the four primary colors needs to be greater than 0, with:
substituting the values to obtain a one-dimensional solution space:
0<k1<0.6415 (12)
The brightness of the four primary colors is:
As a result, any value of k 1 corresponds to a special solution for a set of reproduction colors.
For six primary colors, R1 and B2 are added, and the brightness Y R1 and Y B2 of the fifth and sixth primary colors are assumed to be 100, and the front three primary colors R2, G1 and B1 are used for mixing the two primary colors to obtain
For these two primary colors, two parameters k 2 and k 3 are added again, and the above procedure is referred to, including
Let each term on the left side of the equation be greater than 0, i.e. the luminance of each primary color of the six primary color system be greater than 0, to obtain a three-dimensional solution space:
The brightness of each primary color is:
The shape of the solution space is shown in fig. 4, and the value of any one (k 1,k2,k3) corresponds to a special solution for a set of reproduction colors. The color reproduction can then be achieved by selecting the appropriate special solution from the solution space according to the actual requirements (e.g. primary brightness limitation).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the C-language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the user computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer.
Fig. 5 is a block diagram of a color reproduction apparatus according to an embodiment of the present application.
As shown in fig. 5, the color reproduction apparatus provided in the present embodiment is applied to an electronic device for providing a display device including a plurality of primary colors with a plurality of primary color luminance combination schemes, and the electronic device can be understood as a computer, a server, or an embedded device having data computing capability and information processing capability. The color reproduction device comprises a parameter acquisition module 10, a first calculation module 20, a second calculation module 30, a solution space construction module 40 and a solution space solving module 50.
The parameter acquisition module is used for acquiring the number of primary colors of the display device, and target color coordinates and target brightness of target colors.
The number of the primary colors of the display device is greater than or equal to 4, wherein the number of the primary colors comprises 3 arbitrarily selected primary colors and other primary colors remained after the primary colors are selected, and the other primary colors remained after the primary colors are selected are expressed as second primary colors for the convenience of distinguishing.
The target luminance here means target luminance Y mix of a target color intended to be reproduced, and the color coordinate of the target color is (x mix,ymix).
The color coordinates (x i,yi) of each primary color in the present application may be known, and if not known, may be calculated from the spectra of the respective primary colors, thereby obtaining the color coordinates of the respective primary colors.
The first calculation module is used for calculating a first constraint condition based on the target color coordinates and the target brightness.
Specifically, the color coordinates of the 3 first primary colors are calculated based on the target color coordinates and the target brightness of the target color, so that a first constraint condition of the color coordinates of each first primary color mixed into the target color is obtained.
Specifically, in the CIEXYZ space, the mixing result of three arbitrarily selected primary colors is taken as the target color, so as to obtain the following first constraint condition:
And
Wherein,For the brightness of one stimulus value of one primary color,/>For the brightness of the same stimulus value of another primary color,/>Brightness of the same stimulus value for the third primary color; y 1 (0) is the luminance of another stimulus value of one primary color, Y 2 (0) is the luminance of the same stimulus value of another primary color, and Y 3 (0) is the luminance of the same stimulus value of a third primary color; /(I)For the brightness of one stimulus value of a further primary color,/>For the brightness of the same stimulus value of another primary color,/>The brightness of the same stimulus value for the third primary color. Also, x 1 is the x value of the color coordinate of one primary color, x 2 is the x value of the color coordinate of another primary color, and x 3 is the x value of the color coordinate of the third primary color; y 1 is the y value of the color coordinate of one primary color, y 2 is the y value of the color coordinate of another primary color, and y 3 is the y value of the color coordinate of the third primary color; z 1 is the z-value of the color coordinate of one primary color, z 2 is the z-value of the color coordinate of another primary color, and z 3 is the z-value of the color coordinate of the third primary color.
Is calculated by the first limitation condition
The second calculation module is used for calculating the second primary color based on the first constraint condition to obtain a second constraint condition.
Let j be the sequence number of the second primary color, and the j-th second primary color is expressed by the first 3 first primary colors to obtain the following second constraint condition.
/>
And
Wherein,For the brightness of one stimulus value of one primary color,/>For the brightness of the same stimulus value of another primary color,/>Brightness of the same stimulus value for the third primary color; y 1 (j) is the brightness of another stimulus value of one primary color,Y 3 (j) is the luminance of the same stimulus value of the third primary color; /(I)For the brightness of one stimulus value of a further primary color,/>For the brightness of the same stimulus value of another primary color,/>The brightness of the same stimulus value for the third primary color.
The solution space construction module is used for constructing a solution space of the target color based on the first constraint condition and the second constraint condition.
Assuming that the luminance ratio of the j+3th primary color is k jY′(j+3) and Y' (j+3) is treated as a constant, the multi-primary color system satisfies:
Y1 (0)+Y2 (0)+Y3 (0)+∑jkj[Y′(j+3)-(Y1 (j)+Y2 (j)+Y3 (j))]=Ymix
I.e.
(Y1 (0)-∑jkjY1 (j))+(Y2 (0)-∑jkjY2 (j))+(Y3 0-∑jkjY3 (j))+∑jkjY′(j+3)=Ymix
For a multi-primary display system, the luminance of each primary should be greater than 0, so there are:
The inequality group is the solution space corresponding to the reproduction target color, and the dimension is j.
The solution space solving module is used for obtaining various brightness combination schemes by solving the solution space.
And solving a solution space to obtain a plurality of brightness combination schemes, wherein the primary color brightness combination scheme comprises the brightness value of each primary color.
The primary luminance solution of the multi-primary system corresponding to the point (k 1,k2,…,kj, …) in the solution space is:
the colors corresponding to the solutions are reproduction colors, and the solution space represents all possible situations of metamerism.
As can be seen from the above technical solution, the present embodiment provides a color reproduction apparatus, which is applied to an electronic device, and specifically obtains the number of primary colors of a plurality of primary colors of the display device, and a target color coordinate and a target luminance of a target color to be reproduced, where the plurality of primary colors includes 3 first primary colors and at least 1 second primary color; calculating the color coordinates of each primary color in the 3 first primary colors based on the target color coordinates and the target brightness to obtain a first constraint condition of the color coordinates of each first primary color mixed into the target color; calculating each second primary color based on the first constraint condition to obtain at least one second constraint condition; constructing a solution space corresponding to the target color based on the first constraint condition and the second constraint condition; and solving the solution space to obtain a plurality of primary color brightness combination schemes corresponding to the target color, wherein the primary color brightness combination scheme comprises the brightness value of each primary color. Thus, after the brightness combination schemes of different primary colors corresponding to specific colors in the multi-primary color display scheme are found, different display effects can be realized.
In addition, in one embodiment of the present application, a scenario optimization module 60 is also included, as shown in fig. 6.
The scheme preference module is used for selecting the best scheme from a plurality of primary color brightness combination schemes.
After the solution space is obtained, the optimal brightness combination scheme of a certain group of primary colors can be obtained by comparing the display color gamut boundaries corresponding to different points in the space. Through the operation, the optimal scheme can be selected from the operation modes, so that the display effect of the display device is better.
Also, in another embodiment of the present application, a numerical conversion module 70 is further included, as shown in fig. 7.
The numerical conversion module is used for converting the primary color brightness combination scheme into a tone scale value.
In the operation, gamma correction is utilized to convert the brightness value of each primary color in the scheme into a tone scale value, so that the device matching of a display system can be realized.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Fig. 8 is a block diagram of an electronic device according to an embodiment of the present application.
Referring now to fig. 8, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
The electronic device may include a processing means (e.g., a central processor, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with programs stored in a read-only memory ROM802 or loaded from an input means 806 into a random access memory RAM 803. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other by bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
In general, the following devices may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; an output device 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, etc.; storage 808 including, for example, magnetic tape, hard disk, etc.; communication means 809. The communication means 809 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While an electronic device having various means is shown in the figures, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
The present embodiment also provides a computer-readable storage medium embodiment.
The above computer-readable storage medium is applied to an electronic device and carries one or more programs that, when executed by the electronic device, cause the electronic device to acquire a number of primary colors of a plurality of primary colors of a display device, including 3 first primary colors and at least 1 second primary color, and a target color coordinate and a target luminance of a target color to be reproduced; calculating the color coordinates of each primary color in the 3 first primary colors based on the target color coordinates and the target brightness to obtain a first constraint condition of the color coordinates of each first primary color mixed into the target color; calculating each second primary color based on the first constraint condition to obtain at least one second constraint condition; constructing a solution space corresponding to the target color based on the first constraint condition and the second constraint condition; and solving the solution space to obtain a plurality of primary color brightness combination schemes corresponding to the target color, wherein the primary color brightness combination scheme comprises the brightness value of each primary color. Thus, after the brightness combination schemes of different primary colors corresponding to specific colors in the multi-primary color display scheme are found, different display effects can be realized.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device that comprises the element.
The foregoing has outlined rather broadly the more detailed description of the invention in order that the detailed description of the invention that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A color reproduction method applied to an electronic device, the color reproduction method comprising the steps of:
Acquiring the number of primary colors of a plurality of primary colors of the display device, and target color coordinates and target brightness of target colors to be reproduced, wherein the plurality of primary colors comprise 3 first primary colors and at least 1 second primary color;
calculating the color coordinates of each primary color in the 3 primary colors based on the target color coordinates and the target brightness to obtain a first constraint condition of the color coordinates of each primary color mixed into the target color;
Calculating each second primary color based on the first constraint condition to obtain at least one second constraint condition;
Constructing a solution space corresponding to the target color based on the first constraint condition and the second constraint condition;
and solving the solution space to obtain a plurality of primary color brightness combination schemes corresponding to the target color, wherein the primary color brightness combination schemes comprise brightness values of each first primary color and brightness values of each second primary color.
2. The color reproduction method according to claim 1, wherein the 3 first primary colors are any 3 of the primary colors of the plurality of primary colors, and the second primary colors are the other primary colors of the plurality of primary colors than the first primary color.
3. The color reproduction method according to claim 1 or 2, characterized by further comprising the step of:
And selecting an optimal primary color brightness combination scheme from the multiple primary color brightness combination schemes according to the display color gamut boundary reached by each primary color brightness combination scheme.
4. A color reproduction method according to claim 3, further comprising the step of:
and converting the brightness value of each primary color into a tone scale value by gamma correction.
5. A color reproduction apparatus applied to an electronic device, the color reproduction apparatus comprising:
A parameter acquisition module configured to acquire a primary color number of a plurality of primary colors of a display device, the plurality of primary colors including 3 first primary colors and at least 1 second primary color, and a target color coordinate and a target luminance of a target color to be reproduced;
The first calculating module is configured to calculate the color coordinates of each primary color in the 3 primary colors based on the target color coordinates and the target brightness, and obtain a first constraint condition of the color coordinates of each primary color mixed into the target color;
The second calculation module is configured to calculate each second primary color based on the first constraint condition to obtain at least one second constraint condition;
A solution space construction module configured to construct a solution space corresponding to the target color based on the first constraint condition and the second constraint condition;
And the solution space solving module is configured to perform solving processing on the solution space to obtain a multi-primary-color brightness combination scheme corresponding to the target color, wherein the primary-color brightness combination scheme comprises a brightness value of each first primary color and a brightness value of each second primary color.
6. The color reproduction method according to claim 5, wherein the 3 first primary colors are any 3 of the primary colors of the plurality of primary colors, and the second primary colors are the other primary colors of the plurality of primary colors than the first primary color.
7. The color reproduction apparatus according to claim 5 or 6, further comprising:
And a scheme preference module configured to select an optimal primary color luminance combination scheme from the plurality of primary color luminance combination schemes according to a display color gamut boundary achieved by each of the primary color luminance combination schemes.
8. The color reproduction apparatus of claim 7, further comprising:
And the numerical conversion module is configured to convert the brightness value of each primary color into a tone scale value by gamma correction.
9. An electronic device comprising at least one processor and a memory coupled to the processor, wherein:
The memory is used for storing a computer program or instructions;
The processor is configured to execute the computer program or instructions to cause the electronic device to implement the color reproduction method according to any one of claims 1 to 4.
10. A storage medium for application to an electronic device, characterized in that the storage medium carries one or more computer programs executable by the electronic device to cause the electronic device to implement the color reproduction method according to any one of claims 1-4.
CN202410140990.2A 2024-01-31 Color reproduction method and device, electronic equipment and storage medium Pending CN117912425A (en)

Publications (1)

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

Family

ID=

Similar Documents

Publication Publication Date Title
KR101549326B1 (en) Color conversion device, display device, electronic apparatus and method for color conversion
US11328645B2 (en) Display control method and device for N-primary-color display panel, and display device
CN109473059B (en) Display current determining method, display current compensating method, display current determining device, display current compensating device, display device, and storage medium
WO2019071776A1 (en) Display driving method, device and apparatus
Nezamabadi et al. Color signal encoding for high dynamic range and wide color gamut based on human perception
KR102360271B1 (en) Methods and devices for determining the color of a text
CN110675797A (en) Color gamut mapping method, color gamut mapping assembly, display device and storage medium
JP6015359B2 (en) Color video signal processing apparatus, processing method, and processing program
JP2010107784A (en) Electronic equipment
US20230360286A1 (en) Image processing method and apparatus, electronic device and storage medium
CN110599394A (en) Method and device for processing pictures in online presentation, storage medium and equipment
CN117912425A (en) Color reproduction method and device, electronic equipment and storage medium
CN104754313A (en) Image collecting method and electronic device
CN111415393B (en) Method and device for adjusting display of multimedia blackboard, medium and electronic equipment
CN114220377A (en) Gamma debugging method and device for display module and electronic equipment
US20070146268A1 (en) Method of realizing images in a portable display apparatus
CN113573445A (en) Method and device for determining lamp driving parameters and electronic equipment
CN115918066A (en) Display method and device and electronic equipment
WO2021031846A1 (en) Water ripple effect implementing method and apparatus, electronic device, and computer readable storage medium
US20240112378A1 (en) Method, apparatus, electronic device and medium for rendering
CN111798399B (en) Image processing method and device and electronic equipment
WO2023036111A1 (en) Video processing method and apparatus, device and medium
JP4708885B2 (en) Encoding device, portable terminal device, and pixel color information encoding method used therefor
US20220292733A1 (en) Method and apparatus for text effect processing
CN111527540B (en) Primary color conversion method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication