CN118135038A - Method and device for generating metamerism spectrum, electronic equipment and storage medium - Google Patents
Method and device for generating metamerism spectrum, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN118135038A CN118135038A CN202410237171.XA CN202410237171A CN118135038A CN 118135038 A CN118135038 A CN 118135038A CN 202410237171 A CN202410237171 A CN 202410237171A CN 118135038 A CN118135038 A CN 118135038A
- Authority
- CN
- China
- Prior art keywords
- primary color
- color
- combination
- 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
Links
- 238000001228 spectrum Methods 0.000 title claims abstract description 207
- 238000000034 method Methods 0.000 title claims abstract description 71
- 239000003086 colorant Substances 0.000 claims abstract description 301
- 238000010586 diagram Methods 0.000 claims abstract description 61
- 238000004590 computer program Methods 0.000 claims abstract description 25
- 238000000411 transmission spectrum Methods 0.000 claims description 29
- 238000012545 processing Methods 0.000 claims description 26
- 230000004927 fusion Effects 0.000 claims description 19
- 238000007499 fusion processing Methods 0.000 claims description 16
- 239000000203 mixture Substances 0.000 claims description 10
- 230000008569 process Effects 0.000 description 17
- 238000004364 calculation method Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005286 illumination Methods 0.000 description 3
- 230000003595 spectral effect Effects 0.000 description 3
- 235000008733 Citrus aurantifolia Nutrition 0.000 description 2
- 235000011941 Tilia x europaea Nutrition 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000004571 lime Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000001747 exhibiting effect Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000001795 light effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 210000001525 retina Anatomy 0.000 description 1
- 230000000638 stimulation Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000002834 transmittance Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J3/00—Spectrometry; Spectrophotometry; Monochromators; Measuring colours
- G01J3/12—Generating the spectrum; Monochromators
Landscapes
- Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The application relates to a method, a device, an electronic device, a storage medium and a computer program product for generating metameric spectrum. The method comprises the following steps: combining every three primary colors as one primary color to obtain a plurality of primary color combinations; determining a plurality of associated primary color combinations of the target color among the plurality of primary color combinations based on the chromaticity diagram; determining a first primary color mixing proportion corresponding to three primary colors in each associated primary color combination, and carrying out arbitrary combination on a plurality of associated primary color combinations to obtain at least one associated primary color combination set; and mixing the primary color combinations in each primary color combination set based on any combination mixing ratio among the primary color combinations in each primary color combination set and the first primary color mixing ratio corresponding to each primary color combination set, so as to obtain a metamerism spectrum corresponding to the target color. The method can improve the generation efficiency of the metamerism spectrum.
Description
Technical Field
The present application relates to the field of lighting technology, and in particular, to a method, an apparatus, an electronic device, a storage medium, and a computer program product for generating a metameric spectrum.
Background
Metamerism, simply the same color and different spectral composition. The reproduction of a color has a relationship with the light source characteristics of the observed color, with two objects exhibiting the same color under one light source but different colors under the other light source. The phenomenon in which two color stimuli having different spectral compositions are judged to be isochromatic under a certain condition is called metamerism, and is also called metamerism.
The metamerism phenomenon can be applied to the technical field of illumination to improve the illumination effect, but a method for fully calculating the metamerism is lacking at present, so that the generation efficiency of the metamerism spectrum is lower.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for generating a metameric spectrum, which can improve the efficiency of generating a metameric spectrum, in order to solve the above-described problem that the efficiency of generating a metameric spectrum is low.
In a first aspect, the present application provides a method for generating a metamerism spectrum, including:
Taking each three primary colors in a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations; the number of primary colors is greater than three;
determining a plurality of associated primary color combinations of the target color from the plurality of primary color combinations based on the chromaticity diagram;
Determining a first primary color mixing proportion of three primary colors in each associated primary color combination corresponding to the target color, and carrying out arbitrary combination on the plurality of associated primary color combinations to obtain at least one associated primary color combination set;
Based on a combination mixing proportion among various associated primary color combinations in each associated primary color combination set and a first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set, carrying out mixing treatment on the various associated primary color combinations in each associated primary color combination set to obtain a metameric spectrum of a plurality of primary colors in each associated primary color combination set corresponding to the target color under the combination mixing proportion; the combination mixing proportion is any proportion.
In an exemplary embodiment, after obtaining a metameric spectrum of a plurality of primary colors in each associated primary color combination set corresponding to the target color at the combined mixing ratio, the method further includes:
And optionally adjusting the combination mixing proportion corresponding to each associated primary color combination set to obtain a new combination mixing proportion corresponding to each associated primary color combination set, and returning to the step of mixing the associated primary color combinations in each associated primary color combination set to obtain a metameric spectrum corresponding to the target color under the combination mixing proportion until the number of obtained metameric spectrums reaches a preset number based on the combination mixing proportion between each associated primary color combination in each associated primary color combination set and the first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set.
In one embodiment, the mixing processing is performed on each primary color combination in each primary color combination set based on a combination mixing ratio between each primary color combination in each primary color combination set and a first primary color mixing ratio corresponding to each primary color combination in each primary color combination set, so as to obtain a metameric spectrum corresponding to the target color by using the multiple primary colors in each primary color combination set in the combination mixing ratio, where the method includes:
For each associated primary color combination set, according to a combination mixing proportion corresponding to the associated primary color combination set, carrying out fusion processing on a first primary color mixing proportion corresponding to each associated primary color combination in the associated primary color combination set so as to carry out mixing processing on each associated primary color combination in the associated primary color combination set, and obtaining a second primary color mixing proportion corresponding to the target color when a plurality of primary colors in the associated primary color combination set are in the combination mixing proportion;
And obtaining a metameric spectrum of the plurality of primary colors in the associated primary color combination set corresponding to the target color under the combined mixing proportion based on a second primary color mixing proportion of the plurality of primary colors in the associated primary color combination set under the combined mixing proportion.
In one embodiment, the obtaining, based on the second primary color mixing ratio of the plurality of primary colors in the associated primary color combination set in the combination mixing ratio, a metameric spectrum of the plurality of primary colors in the associated primary color combination set corresponding to the target color in the combination mixing ratio includes:
determining a fusion coefficient corresponding to each primary color in the associated primary color combination set according to a second primary color mixing proportion of a plurality of primary colors in the associated primary color combination set under the combination mixing proportion;
And based on the fusion coefficient corresponding to each primary color in the associated primary color combination set, carrying out fusion processing on primary color spectrums of the primary colors in the associated primary color combination set to obtain a metameric spectrum of a plurality of primary colors in the associated primary color combination set corresponding to the target color under the combination mixing proportion.
In one embodiment, the determining the first primary mixing ratio of the three primary colors in each associated primary color combination corresponding to the target color includes:
Determining, for each combination of associated primary colors, tristimulus values of the target color, and determining respective tristimulus values of three primary colors in the combination of associated primary colors;
Based on the tristimulus values of the target color and the tristimulus values of each of the three primary colors in the associated primary color combination, a first primary color mixing ratio of the three primary colors in the associated primary color combination corresponding to the target color is determined.
In one embodiment, the determining, based on the chromaticity diagram, a plurality of associated primary color combinations of the target color from the plurality of primary color combinations includes:
For each primary color combination, respectively determining a corresponding primary color coordinate point of each primary color in the primary color combination in a chromaticity diagram, determining a triangle area formed by the corresponding primary color coordinate points of each primary color in the primary color combination in the chromaticity diagram as a corresponding primary color triangle of the primary color combination in the chromaticity diagram, and determining a corresponding target color coordinate point of a target color in the chromaticity diagram;
For each primary triangle, determining the primary triangle as an associated triangle of the target color coordinate point if the target color coordinate point falls within an area surrounded by the primary triangle;
and determining the primary color combination corresponding to each associated triangle as an associated primary color combination of the target color.
In one embodiment, each preset primary color is a primary color of a lamp of the lamp to be tinted;
Before determining the plurality of combinations of associated primary colors of the target color, further comprising:
Obtaining a transmission spectrum of a preset light source corresponding to preset color paper based on a light source spectrum of the preset light source and the preset color paper; the transmission spectrum is a spectrum corresponding to a color obtained after the preset light source transmits through the preset color paper, and the color obtained by the preset light source transmitting through the preset color paper is the target color;
After obtaining a metameric spectrum corresponding to the target color for the plurality of primary colors in each associated primary color combination set at the combined mixing ratio, the method further comprises:
Determining the metamerism spectrum of the target color as the metamerism spectrum of the transmission spectrum;
Traversing each of a plurality of metamerism spectrums of a transmission spectrum, judging whether each metamerism spectrum is matched with the lamp, and determining a target color mixing ratio between primary colors of each lamp of the lamp based on the matched metamerism spectrum under the condition of traversing to the metamerism spectrum matched with the lamp;
And adjusting control signals of the lamps for controlling the lamp primary colors based on the target color mixing proportion among the lamp primary colors so as to enable the colors emitted by the lamps to be consistent with the target colors.
In a second aspect, the present application further provides a device for generating a metameric spectrum, including:
a first primary color combination determining module, configured to use each three primary colors of a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations; the number of primary colors is greater than three;
a second primary color combination determining module for determining a plurality of associated primary color combinations of the target color among the plurality of primary color combinations based on the chromaticity diagram;
a primary color mixing ratio determining module for determining a first primary color mixing ratio of three primary colors in each associated primary color combination corresponding to the target color;
the primary color combination set determining module is used for carrying out random combination on the plurality of associated primary color combinations to obtain at least one associated primary color combination set;
The metamerism spectrum generation module is used for carrying out mixing processing on each associated primary color combination in each associated primary color combination set based on a combination mixing proportion among the associated primary color combinations in each associated primary color combination set and a first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set to obtain a metamerism spectrum corresponding to the target color under the combination mixing proportion; the combination mixing proportion is any proportion.
In a third aspect, the present application also provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
Taking each three primary colors in a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations; the number of primary colors is greater than three;
determining a plurality of associated primary color combinations of the target color from the plurality of primary color combinations based on the chromaticity diagram;
Determining a first primary color mixing proportion of three primary colors in each associated primary color combination corresponding to the target color, and carrying out arbitrary combination on the plurality of associated primary color combinations to obtain at least one associated primary color combination set;
Based on a combination mixing proportion among various associated primary color combinations in each associated primary color combination set and a first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set, carrying out mixing treatment on the various associated primary color combinations in each associated primary color combination set to obtain a metameric spectrum of a plurality of primary colors in each associated primary color combination set corresponding to the target color under the combination mixing proportion; the combination mixing proportion is any proportion.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Taking each three primary colors in a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations; the number of primary colors is greater than three;
determining a plurality of associated primary color combinations of the target color from the plurality of primary color combinations based on the chromaticity diagram;
Determining a first primary color mixing proportion of three primary colors in each associated primary color combination corresponding to the target color, and carrying out arbitrary combination on the plurality of associated primary color combinations to obtain at least one associated primary color combination set;
Based on a combination mixing proportion among various associated primary color combinations in each associated primary color combination set and a first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set, carrying out mixing treatment on the various associated primary color combinations in each associated primary color combination set to obtain a metameric spectrum of a plurality of primary colors in each associated primary color combination set corresponding to the target color under the combination mixing proportion; the combination mixing proportion is any proportion.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
Taking each three primary colors in a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations; the number of primary colors is greater than three;
determining a plurality of associated primary color combinations of the target color from the plurality of primary color combinations based on the chromaticity diagram;
Determining a first primary color mixing proportion of three primary colors in each associated primary color combination corresponding to the target color, and carrying out arbitrary combination on the plurality of associated primary color combinations to obtain at least one associated primary color combination set;
Based on a combination mixing proportion among various associated primary color combinations in each associated primary color combination set and a first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set, carrying out mixing treatment on the various associated primary color combinations in each associated primary color combination set to obtain a metameric spectrum of a plurality of primary colors in each associated primary color combination set corresponding to the target color under the combination mixing proportion; the combination mixing proportion is any proportion.
The method, the device, the electronic equipment, the storage medium and the computer program product for generating the metameric spectrum comprise the steps of firstly combining every three primary colors of a preset plurality of primary colors as one primary color to obtain a plurality of primary color combinations; the number of primary colors is greater than three; then, based on the chromaticity diagram, determining a plurality of associated primary color combinations of the target color from the plurality of primary color combinations; then determining a first primary color mixing proportion of three primary colors in each associated primary color combination corresponding to a target color, and carrying out arbitrary combination on a plurality of associated primary color combinations to obtain at least one associated primary color combination set; finally, based on the combination mixing proportion among the various associated primary color combinations in each associated primary color combination set and the first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set, carrying out mixing treatment on the various associated primary color combinations in each associated primary color combination set to obtain a metameric spectrum corresponding to the target color under the combination mixing proportion of a plurality of primary colors in each associated primary color combination set; the combination mixing proportion is any proportion. In this way, based on the combination of the plurality of primary colors and any combination of the plurality of associated primary colors, at least one associated primary color combination set, that is, at least one combination manner of primary colors, can be obtained; based on the mixing processing of the combination of the associated primary colors in any combination mixing proportion, a metameric spectrum corresponding to a plurality of primary colors forming each associated primary color combination set, namely a metameric spectrum corresponding to each combination mode of the primary colors in any combination mixing proportion, can be determined. Based on the generation method of the metamerism spectrum in the process, aiming at the same associated primary color combination set, the associated primary color combinations included in the associated primary color combination set can be mixed by using different combination mixing ratios to obtain the metamerism spectrum of the associated primary color combination set corresponding to the target color under different combination mixing ratios; for different associated primary color combination sets, different or same combination mixing ratios can be used for respectively mixing associated primary color combinations included in each associated primary color combination set to obtain metameric spectrums of each associated primary color combination set corresponding to a target color under the corresponding combination mixing ratio; therefore, in the generation process of the primary metamerism spectrum, the metamerism spectrum can be continuously generated only by adjusting the combination mode of the primary colors, namely the combination of the combination set of the associated primary colors and the corresponding combination mixing proportion, so that the generation efficiency of the metamerism spectrum is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a method of generating metamerism spectra in one embodiment;
FIG. 2 is a schematic diagram of a chromaticity diagram in one embodiment;
FIG. 3 is a flow chart of a step of obtaining a metameric spectrum corresponding to a target color for a plurality of primary colors in each associated primary color combination set based on a corresponding combination mixing ratio and a first primary color mixing ratio in one embodiment;
FIG. 4 is a flowchart illustrating a step of obtaining a metameric spectrum corresponding to a target color for a plurality of primary colors in a set of associated primary color combinations based on a corresponding second primary color mixing ratio in one embodiment;
FIG. 5 is a flow chart illustrating the steps of determining a first primary mixing ratio for three primary colors in each associated primary color combination corresponding to a target color in one embodiment;
FIG. 6 is a flowchart illustrating steps for determining a plurality of associated primary combinations of a target color among a plurality of primary combinations based on a chromaticity diagram in one embodiment;
FIG. 7 is a schematic diagram of a step of performing fusion processing on spectra corresponding to an associated triangle RGB and an associated triangle RGC to obtain a metameric spectrum corresponding to a target color, according to one embodiment;
FIG. 8 is a block diagram of an apparatus for generating metamerism spectra in one embodiment;
Fig. 9 is an internal structural diagram of an electronic device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
In an exemplary embodiment, as shown in fig. 1, a method for generating a metameric spectrum is provided, where this embodiment is illustrated by applying the method to a server, it may be understood that the method may also be applied to a terminal, and may also be applied to a system including a server and a terminal, and implemented through interaction between the server and the terminal. The server can be implemented by an independent server or a server cluster formed by a plurality of servers, the terminal can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment, portable wearable equipment and furniture, the internet of things equipment can be smart speakers, smart televisions, smart air conditioners, smart vehicle-mounted equipment and the like, the portable wearable equipment can be smart watches, smart bracelets, head-mounted equipment and the like, the furniture can be various lamps, and the lamps comprise but not limited to stage lamps, lamps for the film industry, lamps for daily life and the like. In this embodiment, the method includes the steps of:
Step S102, taking every three primary colors in a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations.
It can be understood that when the number of primary colors is less than or equal to three, no metamerism exists, so that the number of preset primary colors is greater than three.
Under the condition that the generated metameric spectrum is applied to a lamp color mixing scene, each preset primary color is a lamp primary color of the lamp.
The server first acquires a preset plurality of primary colors for generating the metameric spectrum, and then combines the plurality of primary colors, specifically, the server combines every three primary colors of the plurality of primary colors as one primary color, thereby obtaining a plurality of primary color combinations. In some embodiments, all of the preset primary colors may be combined, or some of the preset primary colors may be combined.
For example, the server calculates the number of primary color combinations according to equation 1:
(equation 1)
Wherein,Representing the number of primary colors; let the preset primary colors be R (Red), G (Green ), B (Blue), C (Cyan ), then/>The number of calculated primary color combinations is 4, which are { RGB }, { RGC }, { RBC }, and { GBC }, respectively.
Step S104, based on the chromaticity diagram, a plurality of associated primary color combinations of the target color are determined in the plurality of primary color combinations.
Wherein the target color is the color of the metamerism spectrum to be generated, and it is easy to understand that the color represented by each metamerism spectrum of the target color is consistent with the target color in vision,
Wherein, the associated primary color combination refers to a primary color combination in which colors consistent with the target colors can be obtained by performing color mixing processing on respective primary colors in the primary color combination. Each of the associated primary combinations can obtain a color consistent with the target color by color mixing processing of the respective primary colors in the associated primary combination.
Specifically, the server firstly maps each primary color combination into a chromaticity diagram to obtain a plurality of primary color triangles in the chromaticity diagram, and determines a target color coordinate point corresponding to a target color in the chromaticity diagram; and then determining a plurality of associated triangles of the target color coordinate point from the primary triangles according to the position relation between the target color coordinate point and the primary triangles, and determining the primary color combination corresponding to each associated triangle as an associated primary color combination of the target color.
Further, the associated triangle of the target color coordinate point may be a triangle whose target color coordinate point falls into a triangular region thereof.
For example, a CIE (Commission Internationale de l' Eclairage, international Commission on illumination) chromaticity diagram is shown in FIG. 2. Referring to fig. 2, assuming that a point P is a target color coordinate point of a target color in a chromaticity diagram, a server first determines color coordinate points corresponding to R, G, B, C primary colors in the chromaticity diagram, and obtains a point R, a point G, a point B and a point C in fig. 2; then, the server connects the primary color coordinate points corresponding to each primary color in the primary color combination in pairs for each primary color combination, thereby obtaining a triangle area composed of the primary color coordinate points corresponding to three primary colors in the primary color combination, and takes the triangle area as a primary color triangle corresponding to the primary color combination, thereby obtaining a primary color triangle delta RGB corresponding to the primary color combination { RGB }, a primary color triangle delta RGC corresponding to the primary color combination { RGC }, a primary color triangle delta RBC corresponding to the primary color combination { RBC }, and a primary color triangle delta GBC corresponding to the primary color combination { GBC }.
Then, the server judges whether the point P falls into the corresponding triangle area according to the triangle delta RGB, delta RGC, delta RBC and delta GBC of the primary colors in sequence; as can be seen from fig. 2, the point P falls within Δrgb and Δrgc, and therefore the server determines the primary color combination { RGB } corresponding to the primary color triangle Δrgb and the primary color combination { RGC } corresponding to the primary color triangle Δrgc as the associated primary color combination corresponding to the target color.
Step S106, determining a first primary color mixing proportion of three primary colors in each associated primary color combination corresponding to the target color, and carrying out arbitrary combination on a plurality of associated primary color combinations to obtain at least one associated primary color combination set.
The color obtained by mixing the three primary colors in each associated primary color combination according to the corresponding first primary color mixing proportion is the target color.
Specifically, for each associated primary color combination, the server calculates primary color mixing ratios corresponding to the three primary colors in the associated primary color combination in the case of taking the target color as a color mixing target based on the tristimulus values of the target color and the tristimulus values of the three primary colors in the associated primary color combination, and takes the primary color mixing ratios as first primary color mixing ratios corresponding to the target color for the three primary colors in the associated primary color combination.
Wherein the tristimulus value is a representation of the amount of stimulation of three primary colors (red primary color, green primary color, blue primary color) causing the human retina to feel a certain color, and is generally usedIndicating the red primary color stimulus amount, use/>Representing the stimulus of the green primary colorIndicating the amount of blue primary stimulus. The tristimulus values of the colors can be obtained by inquiring a pre-constructed color tristimulus value table, and can also be obtained by calculating based on the coordinates of the colors in a chromaticity diagram.
Further, the server calculates, according to the glasman law, a first primary color mixing ratio of the three primary colors corresponding to the target color by using formula 2:
(equation 2)
Wherein,Tristimulus values respectively representing target colors,/>Tristimulus values of the first of the three primary colors, respectively,/>, respectivelyTristimulus values of a second one of the three primary colors respectively,Tristimulus values of a third one of the three primary colors, respectively.
Based on formula 2, the server can solve for the color mixing coefficients of the three primary colors corresponding to the target colorsThe color mixing coefficients of the three primary colors corresponding to the target color can form the first primary color mixing proportion of the three primary colors corresponding to the target color, namely the first primary color mixing proportion of the three primary colors corresponding to the target color is。
For example, referring to FIG. 2, the combination of associated primaries for the target color corresponding to point P is { RGB } and { RGC }; for the associated primary color combination { RGB }, the server substitutes tristimulus values of the target color, the R primary color, the G primary color and the B primary color into the formula 2 to obtain the associated primary color combination { RGB }, correspondingFor/>Therefore, the first primary mixing ratio of the three primary R, G, B in the associated primary combination { RGB } corresponding to the target color is。
Similarly, for the combination of primary colors { RGC }, the server determines that the first primary color mixing ratio of three primary colors R, G, C in the combination of primary colors { RGC } corresponding to the target color is。
The method comprises the steps that when a first primary color mixing proportion corresponding to each primary color combination is determined, a server also performs random combination on a plurality of primary color combinations to obtain at least one primary color combination set; for example, assuming that the preset plurality of primary colors is R, G, B, C, the resulting combination of associated primary colors is { RGB } and { RGC }, the server may combine { RGB } and { RGC } to obtain a combination set of associated primary colors { RGB, RGC }.
For another example, assuming that the preset plurality of primary colors are R, G, B, A (Amber ), C, L (Lime, yellow green), and the resulting combination of associated primary colors are { RGB }, { RGC }, { ABC } and { GBL }, the server may arbitrarily combine the combination of associated primary colors { RGB }, { RGC }, { ABC } and { GBL }, to obtain a combination set of associated primary colors { RGB, RGC }, { RGB, ABC }, { RGB, GBL }, { RGB, RGC, ABC }, { RGB, RGC, ABC, GBL }, { RGC, ABC }, { RGC, GBL }, { RGC, ABC GBL } and { ABC GBL }.
Step S108, based on the combination mixing proportion between the various associated primary color combinations in each associated primary color combination set and the first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set, mixing processing is carried out on the various associated primary color combinations in each associated primary color combination set, and a metamerism spectrum corresponding to the target color is obtained by the plurality of primary colors in each associated primary color combination set under the combination mixing proportion.
Wherein, the combination mixing proportion is any proportion.
It will be readily appreciated that the multiple variation of the primary mixing ratio does not affect the primary mixing result, i.e. the three primary colors making up the associated primary color combination are mixed in accordance with the first primary mixing ratioMixing the resulting color with the three primary colors according to the first primary color mixing ratio/>The colors obtained by mixing any multiple of (a) are the same and are all the target colors, and the following is proved:
The conversion relation between the color coordinates and tristimulus values of the colors in the chromaticity diagram is obtained, and the three primary colors are mixed according to the first primary color mixing proportion The color coordinates of the obtained colors in the chromaticity diagram are shown in formula 3:
(equation 3)
Wherein,The color coordinates of the mixed color in the chromaticity diagram are shown.
Similarly, the three primary colors are mixed according to the first primary color mixing ratioMultiple, i.e./>The color coordinates of the obtained colors in the chromaticity diagram are shown in formula 4:
(equation 4)
That is, the three primary colors are mixed in accordance with the first primary color mixing ratioMixing the color coordinates of the obtained color with the three primary colors according to the mixing proportion/>, of the first primary colorThe color coordinates of the colors obtained by mixing arbitrary multiples of the color are the same, and according to the conversion relation between the color coordinates of the colors in the chromaticity diagram and the tristimulus values,Represents the color coordinates of the target color in the chromaticity diagram, and therefore, the three primary colors are mixed according to the first primary color mixing ratio/>Mixing the color coordinates of the obtained color with the three primary colors according to the mixing proportion/>, of the first primary colorThe color coordinates of the colors obtained by mixing arbitrary multiples of (a) are not only the same, but also the same as the target color.
In summary, first, the colors obtained by three primary colors in each associated primary color combination according to the corresponding first primary color mixing proportion are all target colors; second, three primary colors in each associated primary color combination are mixed according to a first primary color mixing ratioMixing the resulting color with the three primary colors according to the first primary color mixing ratio/>The colors obtained by mixing any multiple of the above are the same, and are all the target colors.
Therefore, based on the glasman law, for each set of primary-color-related combinations, the primary-color-related combinations in the set of primary-color-related combinations are mixed according to the corresponding combination mixing ratio, and the obtained color is the same as the target color. Specifically, for each associated primary color combination set, the server performs mixing processing on each associated primary color combination in the associated primary color combination set based on a combination mixing proportion corresponding to the associated primary color combination set and a first primary color mixing proportion corresponding to each associated primary color combination in the associated primary color combination set, so as to obtain a metamerism spectrum of a plurality of primary colors in the associated primary color combination set corresponding to a target color under the combination mixing proportion.
For example, taking a preset number of primary colors as R, G, B, A, C, L, the set of associated primary color combinations includes { RGB, RGC }, { RGB, ABC }, { RGB, GBL }, { RGB, RGC, ABC }, { RGB, RGC, ABC, GBL }, { RGC, ABC }, { RGC, GBL }, { RGC, ABC, GBL } and { ABC, GBL }, as an example:
For the associated primary color combination set { RGB, RGC }, the server mixes the proportion according to the first primary color corresponding to the associated primary color combination { RGB } First primary color mixing ratio/>, corresponding to associated primary color combination { RGC }And 1: the combination mixing ratio of 3 performs mixing processing on the primary combination { RGB } and the primary combination { RGC } to obtain a primary combination set { RGB, RGC } in the combination mixing ratio of 1:3 a metameric spectrum corresponding to the target color; similarly, for the associated primary color combination set { RGB, ABC }, the server performs the mixing ratio/>, according to the first primary color corresponding to the associated primary color combination { RGB }First primary color mixing proportion/>, corresponding to associated primary color combination { ABC }And a combined mixing ratio of 1:3, the combination mixing ratio of the combination set { RGB, ABC } of the associated primary colors in combination is 1:3, and the metamerism spectrum and the associated primary color combination set { RGB, RGC } are mixed in a combination ratio of 1:3 is different from the metamerism spectrum of 3.
For the associated primary color combination set { RGB, RGC, ABC }, the server uses the first primary color mixing proportion corresponding to the associated primary color combination { RGB }First primary color mixing ratio/>, corresponding to associated primary color combination { RGC }First primary color mixing ratio corresponding to associated primary color combination { ABC }And 2:4: the combination mixing ratio of 7 performs mixing processing on the primary combination { RGB }, the primary combination { RGC } and the primary combination { ABC } to obtain a primary combination set { RGB, RGC, ABC } at a combination mixing ratio of 2:4:7, a metameric spectrum corresponding to the target color; similarly, the server will combine the mixing ratio 2:4:7, adjusting to 3:3:5, the combination set { RGB, RGC, ABC } of the associated primary colors can be obtained, and the combination mixing ratio is 3:3: another metameric spectrum corresponding to the target color under 5.
For the associated primary color combination set { RGB, RGC, ABC, GBL }, the server uses the first primary color mixing proportion corresponding to the associated primary color combination { RGB }First primary color mixing ratio/>, corresponding to associated primary color combination { RGC }First primary color mixing proportion/>, corresponding to associated primary color combination { ABC }First primary color mixing ratio corresponding to associated primary color combination { GBL }, and associated primary color combinationAnd 1:2:3: the combination mixing ratio of 4 performs mixing processing on the primary combination { RGB }, the primary combination { RGC }, the primary combination { ABC } and the primary combination { GBL }, and can obtain a primary combination set { RGB, RGC, ABC, GBL } at a combination mixing ratio of 1:2:3:4, a further metameric spectrum corresponding to the target color; similarly, the server will combine the mixing ratio 1:2:3:4 is adjusted to 2:3:5:7, the combination mixing ratio of the association primary color combination set { RGB, RGC, ABC, GBL } in the combination can be obtained to be 2:3:5: another metameric spectrum corresponding to the target color at 7.
In the method for generating the metameric spectrum, the server firstly takes every three primary colors in a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations; the number of primary colors is greater than three; then, the server determines a plurality of associated primary color combinations of the target color among the plurality of primary color combinations based on the chromaticity diagram; then, the server determines a first primary color mixing proportion of three primary colors in each associated primary color combination corresponding to the target color, and performs arbitrary combination on a plurality of associated primary color combinations to obtain at least one associated primary color combination set; finally, the server performs mixing processing on each associated primary color combination in each associated primary color combination set based on the combination mixing proportion among the associated primary color combinations in each associated primary color combination set and the first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set to obtain a metameric spectrum corresponding to the target color under the combination mixing proportion of a plurality of primary colors in each associated primary color combination set; the combination mixing proportion is any proportion. In this way, the server is able to obtain at least one set of combinations of primary colors, i.e. at least one way of combining primary colors, based on a combination of primary colors and any combination of combinations of primary colors; based on the mixing processing of the combination of the associated primary colors in any combination mixing ratio, the server can determine one metameric spectrum corresponding to a plurality of primary colors forming each associated primary color combination set in any combination mixing ratio, namely one metameric spectrum corresponding to each combination mode of the primary colors in any combination mixing ratio. Based on the generation method of the metamerism spectrum in the process, aiming at the same associated primary color combination set, the server can mix the associated primary color combinations included by the server with different combination mixing ratios to obtain the metamerism spectrum of the associated primary color combination set corresponding to the target color under different combination mixing ratios; aiming at different associated primary color combination sets, the server can respectively mix the associated primary color combinations included in each associated primary color combination set by using different or same combination mixing proportion to obtain a metameric spectrum of each associated primary color combination set corresponding to a target color under the corresponding combination mixing proportion; therefore, in the generation process of the primary metamerism spectrum, the server only needs to adjust the combination mode of the primary colors, namely the combination of the combination set of the associated primary colors and the corresponding combination mixing proportion, so that the metamerism spectrum can be continuously generated, and the generation efficiency of the metamerism spectrum is improved.
In an exemplary embodiment, after obtaining one metameric light corresponding to the target color by combining and mixing the multiple primary colors in each associated primary color combination set in the step S108, the method specifically further includes the following steps: and (3) randomly adjusting the combination mixing proportion corresponding to each associated primary color combination set to obtain a new combination mixing proportion corresponding to each associated primary color combination set, returning to the step of mixing the associated primary color combinations in each associated primary color combination set based on the combination mixing proportion between the associated primary color combinations in each associated primary color combination set and the first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set, and obtaining one metameric spectrum corresponding to the target color under the combination mixing proportion of a plurality of primary colors in each associated primary color combination set until the number of obtained metameric spectrums reaches a preset number.
The adjustment mode of the combination mixing proportion can be any adjustment, and can be equal step adjustment, equal proportion adjustment or random adjustment.
Specifically, the server randomly adjusts the combination mixing ratio corresponding to each primary-color combination set to obtain a new combination mixing ratio corresponding to each primary-color combination set, and returns to step S108 to generate new metameric spectrums again based on the new combination mixing ratio until the number of the obtained metameric spectrums reaches a preset number.
It should be noted that in some specific scenarios, a large number of metamerism spectra need to be generated at a time, so the server may adjust the combination mixing ratio, so as to obtain a plurality of metamerism spectra in one metamerism spectrum generation.
For example, in a scene of color matching of a lamp, the purpose of generating the metameric spectrum is to enable the lamp to find a metameric spectrum conforming to the characteristics of the lamp in the generated metameric spectrum, and adjust the mixing proportion of primary colors of each lamp of the lamp based on the metameric spectrum, so that the color emitted by the lamp is perfectly fit with the target color. In the scene, the quantity of the metamerism spectrums is required, if the quantity of the metamerism spectrums is small, the lamp can not find the metamerism spectrums meeting the requirement, and then the target color can not be fitted, so that the ideal color matching effect can not be achieved, therefore, in order to ensure that the lamp can quickly and accurately realize color matching, the server needs to generate a large quantity of metamerism spectrums at one time,
It is easy to understand that in some application scenarios, a large number of metamerism spectrums need to be generated, so in this embodiment, by the metamerism spectrum generation method provided by the application, the metamerism spectrums can be continuously generated only by adjusting the composition of the associated primary color combination set and the corresponding combination mixing ratio, thereby improving the generation efficiency of the metamerism spectrums.
As shown in fig. 3, in an exemplary embodiment, the step S108, based on the combination mixing ratio between the primary color combinations in each primary color combination set and the first primary color mixing ratio corresponding to each primary color combination in each primary color combination set, performs mixing processing on the primary color combinations in each primary color combination set to obtain a metamerism spectrum corresponding to the target color under the combination mixing ratio, specifically includes the following steps:
Step S302, for each associated primary color combination set, according to the combination mixing proportion corresponding to the associated primary color combination set, fusion processing is performed on the first primary color mixing proportion corresponding to each associated primary color combination in the associated primary color combination set, so as to perform mixing processing on each associated primary color combination in the associated primary color combination set, and a second primary color mixing proportion corresponding to the target color is obtained when the combination mixing proportion of a plurality of primary colors in the associated primary color combination set.
Step S304, based on the second primary color mixing proportion of the multiple primary colors in the associated primary color combination set under the combination mixing proportion, obtaining a metamerism spectrum of the multiple primary colors in the associated primary color combination set corresponding to the target color under the combination mixing proportion.
The color obtained by mixing the plurality of primary colors in each associated primary color combination set according to the corresponding second primary color mixing proportion is the target color.
Specifically, for each associated primary color combination set, the server determines a corresponding combination mixing coefficient of each associated primary color combination in the associated primary color combination set in the triangle mixing process according to a combination mixing proportion corresponding to the associated primary color combination set, and performs fusion processing on a first primary color mixing proportion corresponding to each associated primary color combination in the associated primary color combination set according to a combination mixing coefficient corresponding to each associated primary color combination in the associated primary color combination set, so as to realize mixing processing on each associated primary color combination in the associated primary color combination set, and obtain a second primary color mixing proportion corresponding to a target color of a plurality of primary colors in the associated primary color combination set under the combination mixing proportion; then, the server obtains a metameric spectrum of the plurality of primary colors in the associated primary color combination set corresponding to the target color at the combined mixing ratio based on a second primary color mixing ratio of the plurality of primary colors in the associated primary color combination set at the combined mixing ratio.
For example, using a predetermined plurality of primary colors as R, G, B, C primary colors, the set of associated primary color combinations as { RGB, RGC }, the first primary color mixing ratio corresponding to the associated primary color combination { RGB } asThe first primary color mixing ratio corresponding to the associated primary color combination { RGC } is/>As an example; assume that the combination mixing ratio corresponding to the association primary color combination set { RGB, RGC } is/>; The server is based on the combined mix proportion/>Determining a combination mixing coefficient corresponding to the associated primary color combination { RGB } as/>The combination mixing coefficient corresponding to the association primary color combination { RGC } is/>Therefore, the first primary color mixing ratios corresponding to the associated primary color combinations { RGB } and { RGC } are fused based on the corresponding combination mixing coefficients, and the second primary color mixing ratios corresponding to R, G, B, C primary colors in the associated primary color combination set { RGB, RGC } are expressed as the following formula 5:
(equation 5)
Based on the glasman law, for each associated primary color combination set, mixing processing is performed on each associated primary color combination in the associated primary color combination set according to a corresponding combination mixing proportion, and the obtained color is the same as the target color, which proves that:
Taking the second primary color mixing ratio as an example in formula 5, the second primary color mixing ratio can be split into And/>I.e. the two ratios are respectively/>, of the first primary mixing ratio corresponding to the associated primary combination RGBThe/>, of the first primary mixing ratio corresponding to the dependent primary combination { RGC }Doubling; based on the proof of formulas 3 and 4, it can be seen that the colors obtained by mixing three primary colors in the associated primary color combination { RGB } and three primary colors in the associated primary color combination { RGC } in these two ratios are both consistent with the target color, and thus the color obtained by mixing the three primary colors in the associated primary color combination { RGB } in the combined mixing ratio/>The combination of the associated primary colors { RGB } and { RGC } is mixed to obtain the same color as the target color.
In this embodiment, the server may perform fusion processing on the first primary color mixing ratios corresponding to each associated primary color combination in the associated primary color combination set based on the combination mixing ratios corresponding to each associated primary color combination set, so as to implement mixing processing on each associated primary color combination in the associated primary color combination set, and obtain second primary color mixing ratios of the plurality of primary colors in the associated primary color combination set under the combination mixing ratios; based on the second primary color mixing proportion, the server can obtain a metameric spectrum corresponding to the target color of a plurality of primary colors in the associated primary color combination set under the combination mixing proportion, so that metameric spectrum generation is realized. According to the method for generating the metamerism spectrum based on the process, the metamerism spectrum can be continuously generated only by adjusting the combination mode of the primary colors, namely the combination of the combination set of the associated primary colors and the corresponding combination mixing proportion, so that the generation efficiency of the metamerism spectrum is improved.
As shown in fig. 4, in an exemplary embodiment, the step S304, based on the second primary color mixing ratio of the plurality of primary colors in the associated primary color combination set in the combined mixing ratio, obtains a metameric spectrum corresponding to the target color of the plurality of primary colors in the associated primary color combination set in the combined mixing ratio, specifically includes the following steps:
Step S402, determining a fusion coefficient corresponding to each primary color in the associated primary color combination set according to a second primary color mixing proportion of a plurality of primary colors in the associated primary color combination set under a combination mixing proportion.
Step S404, fusion processing is carried out on the primary color spectrums of the primary colors in the associated primary color combination set based on the fusion coefficient corresponding to each primary color in the associated primary color combination set, so as to obtain a metameric spectrum corresponding to the target color when the plurality of primary colors in the associated primary color combination set are combined and mixed.
The primary color spectrum of each primary color refers to a spectrum of the primary color at a preset brightness, for example, a spectrum at a maximum brightness.
Specifically, for each associated primary color combination set, the server firstly determines a fusion coefficient of each primary color in the associated primary color combination set corresponding to a target color according to a second primary color mixing proportion corresponding to the associated primary color combination set; and then, according to the fusion coefficient of each primary color in the associated primary color combination set corresponding to the target color, carrying out fusion processing on the primary color spectrums of the primary colors in the associated primary color combination set, so as to obtain a metamerism spectrum of a plurality of primary colors in the associated primary color combination set corresponding to the target color under the combination mixing proportion.
For example, using a predetermined plurality of primary colors as R, G, B, C primary colors, the set of associated primary color combinations as { RGB, RGC }, the first primary color mixing ratio corresponding to the associated primary color combination { RGB } asThe first primary color mixing ratio corresponding to the associated primary color combination { RGC } is/>The combination mixing proportion corresponding to the association primary color combination set { RGB, RGC } is/>For example, the mixing ratio of the second primary colors corresponding to the associated primary color combination set { RGB, RGC } is shown in, for example, formula 5; therefore, the server can determine the fusion coefficient corresponding to the R primary color as/>The fusion coefficient corresponding to the G primary color is/>The fusion coefficient corresponding to the B primary color is/>The fusion coefficient corresponding to the C primary color is/>; Then, for each primary color in the associated primary color combination set, the server multiplies the primary color spectrum of the primary color by the fusion coefficient corresponding to the primary color to obtain a target primary color spectrum corresponding to the primary color, and then, the server fuses, e.g. sums, the target primary color spectrums corresponding to the primary colors, thereby realizing fusion processing of the primary color spectrums of the primary colors.
Further, the server may normalize the second primary color mixing ratio after obtaining the second primary color mixing ratio, obtain a normalized second primary color mixing ratio, use the normalized second primary color mixing ratio as a third primary color mixing ratio, determine a fusion coefficient corresponding to each primary color in the associated primary color combination set according to the third primary color mixing ratio, and fuse the primary color spectrums of each primary color in the associated primary color combination set based on the fusion coefficient corresponding to each primary color in the associated primary color combination set, so as to obtain a metameric spectrum corresponding to the target color of the plurality of primary colors in the associated primary color combination set under the combination mixing ratio; it is easy to understand that the specific process of the fusion based on the third primary color mixing ratio is similar to the process of the fusion based on the second primary color mixing ratio, and the present application will not be described herein.
In this embodiment, for the second primary color mixing ratio corresponding to the plurality of primary colors in each associated primary color combination set, fusion processing can be performed on primary color spectrums corresponding to the respective primary colors in the associated primary color combination set, so as to obtain a metamerism spectrum corresponding to the target color.
As shown in fig. 5, in an exemplary embodiment, in the above step S106, the determining the first primary color mixing ratio of the three primary colors in each associated primary color combination corresponding to the target color specifically includes the following steps:
Step S502, for each associated primary color combination, determining a tristimulus value of the target color, and determining respective tristimulus values of three primary colors in the associated primary color combination.
Step S504, determining a first primary color mixing ratio of the three primary colors in the associated primary color combination corresponding to the target color based on the tristimulus values of the target color and the tristimulus values of the three primary colors in the associated primary color combination.
Specifically, for each associated primary color combination, the server first determines the tristimulus values of the target color, and the tristimulus values of each of the three primary colors in the associated primary color combination; then, the server substitutes the tristimulus values of the target color and the tristimulus values of the three primary colors in the associated primary color combination into a formula 2 according to the Grassman law, and calculates to obtain a first primary color mixing proportion of the three primary colors in the associated primary color combination corresponding to the target color.
In this embodiment, the server is capable of determining, for each associated primary color combination, a primary color mixing ratio corresponding to three primary colors in the associated primary color combination when the target color is a color mixing target, that is, a first primary color mixing ratio corresponding to the target color, based on the tristimulus value of the target color and the tristimulus value of the primary colors based on the glasman law.
As shown in fig. 6, in an exemplary embodiment, the step S104 determines, based on the chromaticity diagram, a plurality of associated primary color combinations of the target color among the plurality of primary color combinations, including the steps of:
Step S602, for each primary color combination, determining a corresponding primary color coordinate point in the chromaticity diagram for each primary color in the primary color combination, determining a triangle area formed by the primary color coordinate points corresponding in the chromaticity diagram for each primary color in the primary color combination as a primary color triangle corresponding in the chromaticity diagram for the primary color combination, and determining a corresponding target color coordinate point in the chromaticity diagram for the target color, respectively.
In step S604, for each primary triangle, in the case where the target color coordinate point falls within the area surrounded by the primary triangle, the primary triangle is determined as an associated triangle of the target color coordinate point.
In step S606, the primary color combination corresponding to each associated triangle is determined as an associated primary color combination of the target color.
Specifically, first, for each primary color combination, the server maps the primary color combination into the chromaticity diagram, for example, the server determines a triangle area constituted by the primary color coordinate points corresponding to each primary color in the primary color combination as a primary color triangle corresponding to the primary color combination according to the primary color coordinate points of each primary color in the primary color combination in the chromaticity diagram. For example, taking R, G, B, C as an example of a preset plurality of primary colors, the combination of the plurality of primary colors obtained by the server is { RGB }, { RGC }, { RBC }, and { GBC }; referring to fig. 2, for the primary color combination { RGB }, the server can obtain a triangle area composed of the R point, the G point and the B point based on the R point corresponding to the R primary color in the chromaticity diagram, the G point corresponding to the G primary color in the chromaticity diagram, and the B point corresponding to the B primary color in the chromaticity diagram, where the triangle area is a primary color triangle Δrgb corresponding to the primary color combination { RGB }; similarly, the server may obtain primary triangle ΔRGC, ΔRBC and ΔGBC corresponding to primary combinations { RGC }, { RBC } and { GBC }, respectively.
Then, for each primary triangle, the server judges whether the target color coordinate point falls into the area surrounded by the primary triangle, and if so, the primary triangle is determined to be the associated triangle of the target color coordinate point. For example, referring to fig. 2, the target color corresponds to a target color coordinate point P in the chromaticity diagram, and the plurality of primary triangles are Δrgb, Δrgc, Δrbc, and Δgbc, respectively; for Δrgb, since the point P falls within Δrgb, the primary color combination { RGB } corresponding to Δrgb is the associated primary color combination corresponding to the target color; similarly, the primary color combination { RGC } corresponding to ΔRGC is also the associated primary color combination corresponding to the target color; for Δrbc and Δgbc, since point P does not fall within Δrbc or Δgbc, neither of the primary combinations { RBC } and { GBC } corresponding to Δrbc and Δgbc is the associated primary combination corresponding to the target color.
Finally, the server determines the primary color combination corresponding to each associated triangle as an associated primary color combination of the target color
In this embodiment, the server may intuitively determine, from among the primary color combinations, the associated primary color combination of the target color, that is, the primary color combination capable of being mixed to obtain the target color, based on the target color and the expression of each primary color combination in the chromaticity diagram.
In an exemplary embodiment, the method for generating the metameric spectrum is applied to a lamp color mixing scene, and each preset primary color is a lamp primary color of a lamp to be mixed.
Before determining the plurality of primary color combinations of the target color in step S104, the method specifically further includes the following: and obtaining the transmission spectrum of the preset light source corresponding to the preset color paper based on the light source spectrum of the preset light source and the preset color paper.
The transmission spectrum is a spectrum corresponding to a color obtained after the preset light source transmits through the preset color paper, and the color obtained by the preset light source through the preset color paper is a target color.
In the color matching method based on the color paper, a lamplight operator often depends on the color paper to color the lamp, namely, a beam of specific light source irradiates the color paper with different colors, so that the lamplight with different colors is obtained, and the expected light effect is achieved.
The preset light source is a specific light source required by the target color to be acquired in a color paper-based color mixing method, and the preset color paper is the color paper required by the target color to be acquired in the color paper-based color mixing method; that is, the color obtained after the preset light source transmits through the preset color paper is the target color, and thus, the transmission spectrum is a spectrum corresponding to the color (target color) obtained by the preset light source transmitting through the preset color paper, and normally, white light is selected as the preset light source (specific light source).
Specifically, in the light fitting color mixing scene, the transmission spectrum of the preset light source corresponding to the preset color paper is obtained based on the light source spectrum of the preset light source and the preset color paper, which means that the transmission spectrum of the preset light source is obtained by the server based on the light source spectrum of the preset light source and the transmittance of the preset color paper. Further, the server applies the transmissivity of the preset color paper to the light source spectrum to obtain the transmission spectrum of the preset light source.
In the step S108, after obtaining a metameric spectrum corresponding to the target color of the plurality of primary colors in each associated primary color combination set in the combination mixing ratio, the method specifically further includes the following steps:
And determining the metamerism spectrum of the target color as the metamerism spectrum of the transmission spectrum.
Specifically, the transmission spectrum is a spectrum corresponding to a color obtained by transmitting the preset light source through the preset color paper, and the color obtained by transmitting the preset light source through the preset color paper is a target color, so that the metamerism spectrum of the target color is the metamerism spectrum of the transmission spectrum.
And traversing each of a plurality of metamerism spectrums of the transmission spectrum, judging whether each metamerism spectrum is matched with the lamp, and determining the target color mixing proportion among the primary colors of each lamp of the lamp based on the matched metamerism spectrum under the condition of traversing to the metamerism spectrum matched with the lamp.
The metamerism spectrum matched with the lamp to be tinted refers to metamerism spectrum with the corresponding peak wavelength matched with the wavelength corresponding to each lamp primary color of the lamp to be tinted.
Wherein the color mixing ratio refers to the mixing ratio among multiple lamp primary colors, and is exemplified by three primary colors of R (Red), G (Green), B (Blue), if the color mixing ratio isThen the color mixing treatment can be carried out on R, G, B three primary colors according to the color mixing proportion, thereby obtaining R, G, B three primary colors in/>Mixed colors at a mixed color ratio of (3).
Specifically, the server sequentially traverses a plurality of metameric spectrums of the transmission spectrum, and for each metameric spectrum, the lamp judges whether the metameric spectrum is matched with the lamp or not based on the peak wavelength in the metameric spectrum and the wavelength corresponding to each lamp primary color of the lamp, if so, the server determines the target color mixing proportion among the lamp primary colors of the lamp based on the spectral power corresponding to the peak wavelength matched with the peak wavelength of each lamp primary color in the matched metameric spectrum.
And adjusting control signals of the lamps for controlling the primary colors of the lamps based on the target color mixing proportion among the primary colors of the lamps so as to enable the colors emitted by the lamps to be consistent with the target colors.
It is easy to understand that the lamp controls the participation of the primary colors of the lamp in the color mixing process of the lamp by the control signals for controlling the primary colors of the lamp. The control signal may be a PWM (Pulse width modulation ) signal or a current signal.
Specifically, the server determines the numerical ratio between control parameters of control signals of lamps controlling the lamp primary colors, namely the signal ratio between the control signals, based on the target color mixing ratio between the lamp primary colors, and then adjusts the control signals corresponding to the lamp primary colors based on the signal ratio, so that the color mixing treatment of the lamp primary colors is realized, and the color emitted by the lamp is consistent with the target color, namely the color obtained after the preset light source transmits through the preset color paper.
For example, consider the example that the primary colors of the lamp include R, G, B, A (Amber ), C (Cyan, cyan), L (Lime, yellow-green), and the target color mixing ratio isFirstly, the lamp normalizes the target color mixing proportion to obtain a normalized color mixing proportion; Then, the lamp takes the normalized color mixing proportion as the signal proportion between control signals for controlling the primary colors of each lamp, and the ratio is calculated according to/>And the control signals corresponding to the primary colors of each lamp are adjusted according to the signal proportion.
In this embodiment, by generating a metamerism spectrum of a target color, the server can implement metamerism calculation on the transmission spectrum, and further can obtain a plurality of metamerism spectrums of the transmission spectrum; based on a plurality of metameric spectrums of the transmission spectrums, the lamp can determine the metameric spectrums matched with the lamp from the spectrum, and further can determine the target color mixing proportion among primary colors of each lamp of the lamp, so that color difference between the simulated light efficiency and the color paper light efficiency of the lamp due to mismatching of the transmission spectrums and the characteristics of the lamp is avoided, and a more accurate fitting effect is realized; based on the target color mixing proportion, the lamp can adjust control signals of the lamp for controlling the primary colors of the lamps, color mixing treatment of the primary colors of the lamps is achieved, and the lamp emits colors consistent with target colors obtained by a preset light source through preset color paper, so that color mixing of the lamp is achieved. Based on the above process, the color mixing process of each lamp primary color is used for replacing the color mixing process of color paper, so that the color mixing process of the lamp is not influenced by environmental factors, a large number of color testing processes and adjusting processes are not needed, and the color mixing efficiency of the lamp is improved.
In order to more clearly illustrate the method for generating a metamerism spectrum provided by the embodiment of the present application, a specific embodiment is described below specifically, but it should be understood that the embodiment of the present application is not limited thereto. In an exemplary embodiment, the present application further provides a method for calculating metamerism, which specifically includes the following steps:
1. At least four primary colors that can be used for metameric calculations are determined.
2. Dividing every three primary colors into a group to obtain a plurality of primary color combinations, and determining a primary color triangle corresponding to each primary color combination in the chromaticity diagram according to each primary color combination.
3. Traversing each primary color triangle one by one, judging whether the target color falls into the primary color triangle, and judging the next primary color triangle if the target color does not fall into the primary color triangle; if the primary color triangle falls into the target color, determining the primary color triangle as an associated triangle corresponding to the target color, and calculating the primary color mixing proportion of the three primary colors corresponding to the primary color triangle corresponding to the target color according to the tristimulus values of the target color and the tristimulus values of the three primary colors corresponding to the primary color triangle.
4. And (3) carrying out arbitrary combination on the plurality of associated triangles obtained in the step (3) to obtain a plurality of triangle combinations.
5. And carrying out fusion processing on the spectrums corresponding to the associated triangles in each triangle combination according to any triangle mixing proportion to obtain a metameric spectrum of the triangle combination corresponding to the target color under the corresponding triangle mixing proportion.
Referring to fig. 7, fig. 7 is a schematic diagram showing that the spectrum corresponding to the associated triangle RGB and the associated triangle RGC is fused to obtain a metameric spectrum corresponding to the target color; fig. 7 (a) is a spectrum corresponding to the triangle-related RGC, fig. 7 (b) is a spectrum corresponding to the triangle-related RGB, and fig. 7 (c) is a spectrum of metamerism corresponding to the target color obtained by fusion processing of the triangle-related RGB and the triangle-related RGC.
6. And (3) optionally adjusting the triangle mixing proportion corresponding to each triangle combination, and continuously generating a new metamerism.
In the present embodiment, first, metamerism calculation of an arbitrary color within a color gamut of a given light source (given primary color) is realized; secondly, the whole metameric space is traversed in the calculation process; and the calculation process is simplified, and in one-time metamerism calculation, the generation of a plurality of metamerism spectrums can be realized, so that the calculation efficiency is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a device for generating the metamerism spectrum, which is used for realizing the method for generating the metamerism spectrum. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the device for generating a metameric spectrum or spectra provided below may refer to the limitation of the method for generating a metameric spectrum hereinabove, and will not be repeated herein.
In an exemplary embodiment, as shown in fig. 8, there is provided a generation apparatus of metamerism spectrum, including: a first primary color combination determination 802, a second primary color combination determination module 804, a primary color mixing ratio determination module 806, a primary color combination set determination module 808, and a metamerism spectrum generation module 810, wherein:
A first primary color combination determining module 802, configured to combine each three primary colors of a preset plurality of primary colors as a primary color to obtain a plurality of primary color combinations; the number of primary colors is greater than three.
A second primary color combination determining module 804 for determining a plurality of associated primary color combinations of the target color among the plurality of primary color combinations based on the chromaticity diagram; the number of primary colors is greater than three.
A primary mixing ratio determining module 806 is configured to determine a first primary mixing ratio of three primary colors in each associated primary combination corresponding to the target color.
The primary color combination set determining module 808 is configured to perform arbitrary combination on a plurality of primary color combinations to obtain at least one primary color combination set.
The metamerism spectrum generation module 810 is configured to perform mixing processing on each associated primary color combination in each associated primary color combination set based on a combination mixing ratio between each associated primary color combination in each associated primary color combination set and a first primary color mixing ratio corresponding to each associated primary color combination in each associated primary color combination set, so as to obtain one metamerism spectrum corresponding to the target color when the plurality of primary colors in each associated primary color combination set are in the combination mixing ratio; the combination mixing proportion is any proportion.
In an exemplary embodiment, the metamerism spectrum generating module 810 is further configured to arbitrarily adjust a combination mixing ratio corresponding to each set of associated primary color combinations to obtain a new combination mixing ratio corresponding to each set of associated primary color combinations, and return to the step of performing mixing processing on each associated primary color combination in each set of associated primary color combinations based on the combination mixing ratio between each associated primary color combination in each set of associated primary color combinations and the first primary color mixing ratio corresponding to each associated primary color combination in each set of associated primary color combinations until the number of obtained metamerism spectrums corresponding to the target color in the plurality of primary colors in each set of associated primary color combinations reaches a preset number.
In an exemplary embodiment, the metameric spectrum generating module 810 is further configured to, for each set of associated primary color combinations, perform fusion processing on the first primary color mixing ratios corresponding to the associated primary color combinations in the set of associated primary color combinations according to the combination mixing ratio corresponding to the associated primary color combination set, so as to perform mixing processing on the associated primary color combinations in the set of associated primary color combinations, to obtain a second primary color mixing ratio corresponding to the target color when the plurality of primary colors in the set of associated primary color combinations are in the combination mixing ratio; and obtaining a metameric spectrum of the plurality of primary colors in the associated primary color combination set corresponding to the target color under the combined mixing proportion based on the second primary color mixing proportion of the plurality of primary colors in the associated primary color combination set under the combined mixing proportion.
In an exemplary embodiment, the metamerism spectrum generating module 810 is further configured to determine a fusion coefficient corresponding to each primary color in the associated primary color combination set according to a second primary color mixing ratio of the plurality of primary colors in the associated primary color combination set under the combination mixing ratio; and based on the fusion coefficient corresponding to each primary color in the associated primary color combination set, carrying out fusion processing on the primary color spectrums of the primary colors in the associated primary color combination set to obtain a metameric spectrum corresponding to the target color of the plurality of primary colors in the associated primary color combination set under the combination mixing proportion.
In an exemplary embodiment, the primary mixing ratio determining module 806 is further configured to determine, for each associated primary combination, a tristimulus value of the target color, and determine tristimulus values of each of the three primary colors in the associated primary combination; the first primary color mixing ratio of the three primary colors in the associated primary color combination corresponding to the target color is determined based on the tristimulus values of the target color and the tristimulus values of the three primary colors in the associated primary color combination.
In an exemplary embodiment, the second primary color combination determining module 804 is further configured to determine, for each primary color combination, a corresponding primary color coordinate point in the chromaticity diagram for each primary color in the primary color combination, determine a triangle area formed by the primary color coordinate points corresponding to the primary colors in the chromaticity diagram for each primary color in the primary color combination as a primary color triangle corresponding to the primary color combination in the chromaticity diagram, and determine a corresponding target color coordinate point for the target color in the chromaticity diagram; for each primary color triangle, determining the primary color triangle as an associated triangle of the target color coordinate point in the case that the target color coordinate point falls within the area surrounded by the primary color triangle; and determining the primary color combination corresponding to each associated triangle as an associated primary color combination of the target color.
In an exemplary embodiment, each of the preset primary colors is a fixture primary color of the fixture to be tinted.
The generation device of the metamerism spectrum further comprises a light source transmission spectrum determination module, wherein the light source transmission spectrum determination module is used for obtaining a transmission spectrum of the preset light source corresponding to the preset color paper based on the light source spectrum of the preset light source and the preset color paper; the transmission spectrum is a spectrum corresponding to the color obtained after the preset light source transmits through the preset color paper, and the color obtained by the preset light source through the preset color paper is the target color.
The generation device of the metamerism spectrum further comprises a lamp simulated color paper color matching module, wherein the lamp simulated color paper color matching module is used for determining the metamerism spectrum of the target color as the metamerism spectrum of the transmission spectrum, traversing each metamerism spectrum in a plurality of metamerism spectrums of the transmission spectrum, judging whether each metamerism spectrum is matched with the lamp, and determining the target color mixing proportion among primary colors of each lamp of the lamp based on the matched metamerism spectrum under the condition that the metamerism spectrum matched with the lamp is traversed; and adjusting control signals of the lamps for controlling the primary colors of the lamps based on the target color mixing proportion among the primary colors of the lamps so as to enable the colors emitted by the lamps to be consistent with the target colors.
The respective modules in the above-described metameric spectrum generation apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or independent of a processor in the electronic device, or may be stored in software in a memory in the electronic device, so that the processor may call and execute operations corresponding to the above modules.
In an exemplary embodiment, an electronic device is provided, including but not limited to a light fixture, the internal structure of which may be as shown in fig. 9. The electronics include a processor, memory, input/Output interfaces (I/O for short), and communication interfaces. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the electronic equipment is used for storing the chromaticity diagram, the target color, the preset data of a plurality of primary colors and the like. The input/output interface of the electronic device is used to exchange information between the processor and the external device. The communication interface of the electronic device is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a method of generating a metameric spectrum.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the electronic device to which the present application is applied, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an exemplary embodiment, there is also provided an electronic device including a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method embodiments described above when executing the computer program.
In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method embodiments described above.
In an exemplary embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.
Claims (11)
1. A method of generating a metamerism spectrum, the method comprising:
Taking each three primary colors in a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations; the number of primary colors is greater than three;
determining a plurality of associated primary color combinations of the target color from the plurality of primary color combinations based on the chromaticity diagram;
Determining a first primary color mixing proportion of three primary colors in each associated primary color combination corresponding to the target color, and carrying out arbitrary combination on the plurality of associated primary color combinations to obtain at least one associated primary color combination set;
Based on a combination mixing proportion among various associated primary color combinations in each associated primary color combination set and a first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set, carrying out mixing treatment on the various associated primary color combinations in each associated primary color combination set to obtain a metameric spectrum of a plurality of primary colors in each associated primary color combination set corresponding to the target color under the combination mixing proportion; the combination mixing proportion is any proportion.
2. The method of claim 1, further comprising, after deriving a metameric spectrum for the target color for the plurality of primary colors in each set of associated primary color combinations at the combined mixture ratio:
And optionally adjusting the combination mixing proportion corresponding to each associated primary color combination set to obtain a new combination mixing proportion corresponding to each associated primary color combination set, and returning to the step of mixing the associated primary color combinations in each associated primary color combination set to obtain a metameric spectrum corresponding to the target color under the combination mixing proportion until the number of obtained metameric spectrums reaches a preset number based on the combination mixing proportion between each associated primary color combination in each associated primary color combination set and the first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set.
3. The method according to claim 1, wherein said mixing the respective primary colors in each of the sets of combinations of primary colors based on a combination mixing ratio between the respective combinations of primary colors in each of the sets of combinations of primary colors and a first primary color mixing ratio corresponding to each of the combinations of primary colors in each of the sets of combinations of primary colors, to obtain a metameric spectrum of the plurality of primary colors in each of the sets of combinations of primary colors corresponding to the target color at the combination mixing ratio, comprises:
For each associated primary color combination set, according to a combination mixing proportion corresponding to the associated primary color combination set, carrying out fusion processing on a first primary color mixing proportion corresponding to each associated primary color combination in the associated primary color combination set so as to carry out mixing processing on each associated primary color combination in the associated primary color combination set, and obtaining a second primary color mixing proportion corresponding to the target color when a plurality of primary colors in the associated primary color combination set are in the combination mixing proportion;
And obtaining a metameric spectrum of the plurality of primary colors in the associated primary color combination set corresponding to the target color under the combined mixing proportion based on a second primary color mixing proportion of the plurality of primary colors in the associated primary color combination set under the combined mixing proportion.
4. A method according to claim 3, wherein said deriving a metameric spectrum for a plurality of primary colors in said combined set of associated primary colors at said combined mixture ratio based on a second primary color mixture ratio for said plurality of primary colors in said combined set of associated primary colors at said combined mixture ratio comprises:
determining a fusion coefficient corresponding to each primary color in the associated primary color combination set according to a second primary color mixing proportion of a plurality of primary colors in the associated primary color combination set under the combination mixing proportion;
And based on the fusion coefficient corresponding to each primary color in the associated primary color combination set, carrying out fusion processing on primary color spectrums of the primary colors in the associated primary color combination set to obtain a metameric spectrum of a plurality of primary colors in the associated primary color combination set corresponding to the target color under the combination mixing proportion.
5. The method according to any one of claims 1 to 4, wherein said determining a first primary mixing ratio of three primary colors in each associated primary color combination corresponding to the target color comprises:
Determining, for each combination of associated primary colors, tristimulus values of the target color, and determining respective tristimulus values of three primary colors in the combination of associated primary colors;
Based on the tristimulus values of the target color and the tristimulus values of each of the three primary colors in the associated primary color combination, a first primary color mixing ratio of the three primary colors in the associated primary color combination corresponding to the target color is determined.
6. The method according to any one of claims 1 to 4, wherein determining a plurality of associated primary color combinations of the target color from among the plurality of primary color combinations based on the chromaticity diagram comprises:
For each primary color combination, respectively determining a corresponding primary color coordinate point of each primary color in the primary color combination in a chromaticity diagram, determining a triangle area formed by the corresponding primary color coordinate points of each primary color in the primary color combination in the chromaticity diagram as a corresponding primary color triangle of the primary color combination in the chromaticity diagram, and determining a corresponding target color coordinate point of a target color in the chromaticity diagram;
For each primary triangle, determining the primary triangle as an associated triangle of the target color coordinate point if the target color coordinate point falls within an area surrounded by the primary triangle;
and determining the primary color combination corresponding to each associated triangle as an associated primary color combination of the target color.
7. The method according to any one of claims 1 to 4, wherein each of the preset primary colors is a lamp primary color of a lamp to be tinted;
Before determining the plurality of combinations of associated primary colors of the target color, further comprising:
Obtaining a transmission spectrum of a preset light source corresponding to preset color paper based on a light source spectrum of the preset light source and the preset color paper; the transmission spectrum is a spectrum corresponding to a color obtained after the preset light source transmits through the preset color paper, and the color obtained by the preset light source transmitting through the preset color paper is the target color;
After obtaining a metameric spectrum corresponding to the target color for the plurality of primary colors in each associated primary color combination set at the combined mixing ratio, the method further comprises:
Determining the metamerism spectrum of the target color as the metamerism spectrum of the transmission spectrum;
Traversing each of a plurality of metamerism spectrums of a transmission spectrum, judging whether each metamerism spectrum is matched with the lamp, and determining a target color mixing ratio between primary colors of each lamp of the lamp based on the matched metamerism spectrum under the condition of traversing to the metamerism spectrum matched with the lamp;
And adjusting control signals of the lamps for controlling the lamp primary colors based on the target color mixing proportion among the lamp primary colors so as to enable the colors emitted by the lamps to be consistent with the target colors.
8. A device for generating a metamerism spectrum, the device comprising:
a first primary color combination determining module, configured to use each three primary colors of a preset plurality of primary colors as a primary color combination to obtain a plurality of primary color combinations; the number of primary colors is greater than three;
a second primary color combination determining module for determining a plurality of associated primary color combinations of the target color among the plurality of primary color combinations based on the chromaticity diagram;
a primary color mixing ratio determining module for determining a first primary color mixing ratio of three primary colors in each associated primary color combination corresponding to the target color;
the primary color combination set determining module is used for carrying out random combination on the plurality of associated primary color combinations to obtain at least one associated primary color combination set;
The metamerism spectrum generation module is used for carrying out mixing processing on each associated primary color combination in each associated primary color combination set based on a combination mixing proportion among the associated primary color combinations in each associated primary color combination set and a first primary color mixing proportion corresponding to each associated primary color combination in each associated primary color combination set to obtain a metamerism spectrum corresponding to the target color under the combination mixing proportion; the combination mixing proportion is any proportion.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410237171.XA CN118135038A (en) | 2024-03-01 | 2024-03-01 | Method and device for generating metamerism spectrum, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410237171.XA CN118135038A (en) | 2024-03-01 | 2024-03-01 | Method and device for generating metamerism spectrum, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118135038A true CN118135038A (en) | 2024-06-04 |
Family
ID=91231087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410237171.XA Pending CN118135038A (en) | 2024-03-01 | 2024-03-01 | Method and device for generating metamerism spectrum, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118135038A (en) |
-
2024
- 2024-03-01 CN CN202410237171.XA patent/CN118135038A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110211191B (en) | Mixed color correction method and device, terminal equipment and readable storage medium | |
US8665296B2 (en) | Color generation change using multiple illuminant types | |
KR101011662B1 (en) | Colour control for led-based luminaire | |
US8981672B2 (en) | Color control of dynamic lighting | |
CN109948184B (en) | Illumination mixed light calculation method and device, computer equipment and storage medium | |
CN113453396A (en) | WRGB color mixing method and device based on additive color mixing, terminal equipment and storage medium | |
JP7248579B2 (en) | Complementary color method for WOLED display device, WOLED display device | |
CN106448525A (en) | System and method for measuring color uniformity of medical display | |
Royer | What is the reference? An examination of alternatives to the reference sources used in IES TM-30-15 | |
WO2021021834A1 (en) | Control design for perceptually uniform color-tuning | |
US10874002B2 (en) | Method and apparatus for computing illumination mixed lights, computer device and storage medium | |
CN108922460A (en) | A kind of primary colours optimization method that three primary colours are shown and display device | |
CN115334710A (en) | Isothermal line color matching control method and application thereof | |
CN111458967B (en) | Color and color temperature calibration method, calibration device and projection display equipment | |
CN118135038A (en) | Method and device for generating metamerism spectrum, electronic equipment and storage medium | |
CN113938660A (en) | Display device | |
CN113129813B (en) | White balance adjusting method and device and computer equipment | |
EP3649833B1 (en) | Method for wide-range cct tuning that follows the black body line using two independently controlled current channels and three ccts | |
CN115900951A (en) | Method for calculating color gamut coverage rate of multi-primary color display system | |
CN107191793B (en) | A kind of synthetic method and system of white light | |
CN115633425A (en) | Method and device for regulating and controlling mixed light source, lighting equipment and storage medium | |
WO2024152207A1 (en) | Light-emitting control method and apparatus, electronic device, and computer-readable storage medium | |
TWI700935B (en) | Illumination mixing calculation method, device, computer equipment and storage medium | |
CN113692089B (en) | Light source control method and device and computer readable storage medium | |
Mao et al. | Variation of LED Display Color Affected by Chromaticity and Luminance of LED Display Primary Colors |
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 |