CN109005622B - A kind of color LED lamps and lanterns gray scale correction and linear color mixing method - Google Patents
A kind of color LED lamps and lanterns gray scale correction and linear color mixing method Download PDFInfo
- Publication number
- CN109005622B CN109005622B CN201810897108.3A CN201810897108A CN109005622B CN 109005622 B CN109005622 B CN 109005622B CN 201810897108 A CN201810897108 A CN 201810897108A CN 109005622 B CN109005622 B CN 109005622B
- Authority
- CN
- China
- Prior art keywords
- color led
- brightness
- brightness value
- lamp bead
- color
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B33/00—Electroluminescent light sources
- H05B33/10—Apparatus or processes specially adapted to the manufacture of electroluminescent light sources
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/30—Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]
Landscapes
- Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Led Device Packages (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The present invention relates to a kind of color LED lamps and lanterns gray scale correction and linear color mixing methods, by acquiring each color LED lamp bead each brightness value corresponding to each brightness degree in a color LED lamps and lanterns respectively, remember that the collection of each brightness degree is combined into original gray-scale data, normalized is made to each brightness value of each color LED respectively again, and it draws in x-y plane rectangular coordinate system to each brightness value after each brightness degree and corresponding normalized and makees curve matching, the ratio of maximum brightness value and maximum brightness grade is k after remembering normalized, then the brightness value after utilizing normalized when k × each brightness degree one by one again obtains corresponding each color LED curve in the intercept where brightness degree N on axisAnd it is rounded and is, gather each color LED's respectivelyAs each color LED correction luma data and be stored in the control module of this color LED lamps and lanterns, so that sending original gray-scale data to control module when using, control module can realize linear gray level colour mixture based on correction luma data, keep light modulation colour mixture accurate, color drift does not occur.
Description
Technical field
The present invention relates to color LED technical field of lamps, more particularly, to a kind of color LED lamps and lanterns gray scale correction and
Linear color mixing method.
Background technique
So-called grayscale, be by it is most bright with it is most dark between brightness change series divide, divide into several pieces.Such as: 16bit
Lamps and lanterns, each color LED lamp bead of a color LED lamps and lanterns has 65536 linear luminance grades from 0-65535;8bit's
Lamps and lanterns, each color LED lamp bead have 256 linear luminance grades from 0-255;Pass between brightness degree N and corresponding brightness value L
It is the ordered arrangement of F (N, L), referred to as grayscale.It, can be to therewith when this makes input signal dispatch and manage brightness degree N
Corresponding brightness L is scheduled and manages.Because of the nonlinear characteristic problem of LED chip source problem and driving circuit device, make
It is all a plurality of not to be overlapped at the relationship between the brightness degree and the brightness value shown of each color LED lamp bead of color LED lamps and lanterns
Curve, this can generate colour cast during just further resulting in light modulation colour mixture.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of color LED lamps and lanterns gray scale correction and linearly
Color mixing method is able to achieve linear gray level colour mixture, keeps light modulation colour mixture accurate, color drift does not occur.
In order to achieve the above objectives, the technical solution adopted by the present invention is that:
A kind of color LED lamps and lanterns gray scale correction and linear color mixing method are provided, the color LED lamps and lanterns include at least two
The LED lamp bead of color, includes the following steps:
S1. each color LED lamp bead each brightness corresponding to each brightness degree N in a color LED lamps and lanterns is acquired respectively
Value L remembers that the collection of each brightness degree N is combined into original gray-scale data TAB;
S2. normalized is made to each brightness value L of each color LED lamp bead respectively, so that each color LED lamp bead is each bright
Angle value is in the same order of magnitude, and the maximum brightness value of each color LED lamp bead is identical and is 1;According to each bright of each color LED lamp bead
Each brightness value L after spending grade N and corresponding normalized ', it draws in x-y plane rectangular coordinate system and makees curve and intend
Close, to obtain the brightness degree N of each color LED lamp bead and the brightness value L after corresponding normalized ' between relationship F (N,
L ') curve;Brightness degree N is projected in x-axis, brightness value L ' it is projected in y-axis;Remember normalized after maximum brightness value with it is most light
The ratio for spending grade is k;
S3. make following mapping x=f (y):
Remember straight line l:
L:y=j (1)
J is the brightness value after normalized and takes k × each brightness degree respectively, obtains the brightness of each color LED lamp bead
Grade N and the brightness value L after corresponding normalized ' between relationship F (N, L ') curve and each straight line l intersection point, remember intersection point
Intercept where being projected in brightness degree N on axis is xj, to intercept xjIt is rounded and obtains x 'j;By the x ' of each color LED lamp beadjRespectively
It gathers the correction luma data TAB_new as each color LED lamp bead and is stored in the control mould of this color LED lamps and lanterns
In block;
S4. original gray-scale data TAB is sent to the control module of every color LED lamps and lanterns, control module is based on each color
Correction luma data TAB_new original gray-scale data TAB is handled to realize linear gray level colour mixture.
It is right in each brightness degree institute by acquiring each color LED lamp bead in a color LED lamps and lanterns respectively in above scheme
Each brightness value answered remembers that the collection of each brightness degree is combined into original gray-scale data, then returns respectively to each brightness value work of each color LED
One change processing, and each brightness value after each brightness degree and corresponding normalized is drawn in x-y plane rectangular coordinate system
Scheme and make curve matching, the ratio of maximum brightness value and maximum brightness grade is k after remembering normalized, is then utilized one by one again
Brightness value after normalized when k × each brightness degree obtains corresponding each color LED curve where brightness degree N on axis
Intercept xjAnd being rounded is x 'j, gather the x ' of each color LED respectivelyjAs each color LED correction luma data and be stored in
In the control module of this color LED lamps and lanterns, so that sending original gray-scale data, control module to control module when using
Linear gray level colour mixture is realized based on correction luma data, keeps light modulation colour mixture accurate, color drift does not occur.
Preferably, step S1 further includes each brightness degree N according to each color LED lamp bead and corresponding each brightness value L,
It draws in x-y plane rectangular coordinate system and makees curve matching, to obtain the brightness degree N and corresponding brightness of each color LED lamp bead
Relationship F (N, L) curve between value L.Processing can more intuitively find out the brightness of each color LED lamp bead of color LED lamps and lanterns in this way
The problem of relationship between grade and the brightness value shown is a plurality of not overlapping curve.
Preferably, brightness degree is 65536 grades or 256 grades, and N is 0~65535 or 0~255, and N is integer.
It is further preferred that making normalizing to each brightness value L of each color LED lamp bead respectively using formula (2) in step S2
Change processing:
Wherein, min is respectively the minimum luminance value of each color LED lamp bead, and max is respectively that each color LED lamp bead is corresponding
Maximum brightness value.
It is further preferred that N is 0~255, and N is integer;In step S2, to each brightness value of each color LED lamp bead
After L makees normalized, by each brightness value L after normalized ' expand 255 times of maximum brightness grade:
Maximum brightness value is 255 after normalized, and maximum brightness grade is 255, k 1;
In step S3, j is the brightness value after normalized and takes integer value in 0~255 respectively.
Preferably, the color LED lamps and lanterns include the LED lamp bead of tri- kinds of colors of R, G, B, and N is 0~255, and N is integer;
In step S1, a color LED lamps and lanterns R color LED lamp bead each brightness value L corresponding to 0~255 grade is acquired respectively
And make set L_r, remember L_r={ L_r0, L_r1, L_r2 ... ..., L_r255 }, G color LED lamp bead is corresponding to 0~255 grade
Each brightness value L simultaneously makees set L_g, remembers L_g={ L_g0, L_g1, L_g2 ... ..., L_g255 }, B color LED lamp bead is at 0~255 grade
Corresponding each brightness value L simultaneously makees set L_b, L_b={ L_b0, L_b1, L_b2 ... ..., L_b255 };Original gray-scale data
TAB=TAB_r=TAB_g=TAB_b=0,1,2 ..., 253,254,255 };
In step S2, three curves are correspondingly formed after drawing curve matching;
In step S3, straight line l is 256, and j is the brightness value after normalized and takes 0,1,2 respectively ... ..., 253,
254,255, it is respectively x_r that three curves are corresponding with the intercept that the intersection point of each straight line l is projected on the axis of the place brightness degree Nj、x_
gj、x_bj, remember int (x_rj)、int(x_gj) and int (x_bj) it is respectively to x_rj、x_gjAnd x_bjIt is rounded downwards, remembers relationship F
(N, L ') curve representation formula is y=ff (x), obtains x_r ' by rule is approachedj、x_g’j、x_b’j, steps are as follows:
By the x_r ' of R colored lights pearljSet obtains the correction luma data TAB_r_new of R color, by the x_g ' of G colored lights pearljCollection
The correction luma data TAB_g_new for obtaining G color is closed, by the x_b ' of B colored lights pearljSet obtains the correction luma data of B color
TAB_b_new;
In step S4, original gray-scale data TAB_r, TAB_g and TAB_ are sent to the control module of every color LED lamps and lanterns
B, control module realize linear gray level based on correction luma data TAB_r_new, TAB_g_new and TAB_b_new of each color
Colour mixture.
Compared with prior art, the beneficial effects of the present invention are:
A kind of color LED lamps and lanterns gray scale correction of the invention and linear color mixing method, by acquiring a color LED lamp respectively
Each color LED lamp bead each brightness value corresponding to each brightness degree in tool, remembers that the collection of each brightness degree is combined into original gray-scale number
According to, then normalized is made to each brightness value of each color LED respectively, and to each brightness etc. in x-y plane rectangular coordinate system
Each brightness value after grade and corresponding normalized draws and makees curve matching, remembers after normalized maximum brightness value and most
The ratio of big brightness degree is k, the brightness value acquisition pair after normalized when then utilizing k × each brightness degree one by one again
Answer each color LED curve in the intercept x where brightness degree N on axisjAnd being rounded is x 'j, gather the x ' of each color LED respectivelyjMake
For each color LED correction luma data and be stored in the control module of this color LED lamps and lanterns so as to control when using
Module sends original gray-scale data, and control module can realize linear gray level colour mixture based on correction luma data, make to dim colour mixture
Precisely, color drift does not occur.
Detailed description of the invention
Gray scale correction functional block diagram in Fig. 1 the present embodiment;
Fig. 2 is linear colour mixture functional block diagram in the present embodiment;
Fig. 3 is the curved line relation formed according to each brightness degree N and corresponding each brightness value L that acquire in step S1
Figure, wherein maximum brightness grade is 255;
Fig. 4 is the brightness value L according to each brightness degree N and normalization and after expanding 255 times of maximum brightness grade " it is formed
Curve relation figure, wherein maximum brightness grade is 255;
Fig. 5 is luma data correction principle figure;
Fig. 6 is the curve relation figure formed according to correction luma data and its corresponding brightness value;
Fig. 7 is the curve relation figure formed according to correction luma data and its corresponding normalization brightness value.
Specific embodiment
The present invention is further illustrated With reference to embodiment.Wherein, attached drawing only for illustration,
What is indicated is only schematic diagram, rather than pictorial diagram, should not be understood as the limitation to this patent;Reality in order to better illustrate the present invention
Example is applied, the certain components of attached drawing have omission, zoom in or out, and do not represent the size of actual product;To those skilled in the art
For, the omitting of some known structures and their instructions in the attached drawings are understandable.
The same or similar label correspond to the same or similar components in the attached drawing of the embodiment of the present invention;It is retouched in of the invention
In stating, it is to be understood that if the orientation or positional relationship for having the instructions such as term " on ", "lower", "left", "right" is based on attached drawing
Shown in orientation or positional relationship, be merely for convenience of description of the present invention and simplification of the description, rather than indication or suggestion is signified
Device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore positional relationship is described in attached drawing
Term only for illustration, should not be understood as the limitation to this patent, for the ordinary skill in the art, can
To understand the concrete meaning of above-mentioned term as the case may be.
Embodiment
The present embodiment provides a kind of color LED lamps and lanterns gray scale correction and linear color mixing method, the color LED lamps and lanterns include
The LED lamp bead of at least two colors includes the following steps: as shown in Figure 1 to Figure 2
S1. each color LED lamp bead each brightness corresponding to each brightness degree N in a color LED lamps and lanterns is acquired respectively
Value L remembers that the collection of each brightness degree N is combined into original gray-scale data TAB;
S2. normalized is made to each brightness value L of each color LED lamp bead respectively, so that each color LED lamp bead is each bright
Angle value is in the same order of magnitude, and the maximum brightness value of each color LED lamp bead is identical and is 1;According to each bright of each color LED lamp bead
Each brightness value L after spending grade N and corresponding normalized ', it draws in x-y plane rectangular coordinate system and makees curve and intend
Close, to obtain the brightness degree N of each color LED lamp bead and the brightness value L after corresponding normalized ' between relationship F (N,
L ') curve;Brightness degree N is projected in x-axis, brightness value L ' it is projected in y-axis;Remember normalized after maximum brightness value with it is most light
The ratio for spending grade is k;
S3. make following mapping x=f (y):
Remember straight line l:
L:y=j (1)
J is the brightness value after normalized and takes k × each brightness degree respectively, obtains the brightness of each color LED lamp bead
Grade N and the brightness value L after corresponding normalized ' between relationship F (N, L ') curve and each straight line l intersection point, remember intersection point
Intercept where being projected in brightness degree N on axis is xj, to intercept xjIt is rounded and obtains x 'j;By the x ' of each color LED lamp beadjRespectively
It gathers the correction luma data TAB_new as each color LED lamp bead and is stored in the control mould of this color LED lamps and lanterns
In block;
S4. original gray-scale data TAB is sent to the control module of every color LED lamps and lanterns, control module is based on each color
Correction luma data TAB_new original gray-scale data TAB is handled to realize linear gray level colour mixture.
The present invention by acquiring in a color LED lamps and lanterns each color LED lamp bead corresponding to each brightness degree respectively
Each brightness value remembers that the collection of each brightness degree is combined into original gray-scale data, then normalizes respectively to each brightness value of each color LED
Processing, and draw simultaneously in x-y plane rectangular coordinate system to each brightness value after each brightness degree and corresponding normalized
Make curve matching, the ratio of maximum brightness value and maximum brightness grade is k after remembering normalized, then again one by one using k ×
Brightness value after normalized when each brightness degree obtains corresponding each color LED curve where brightness degree N on axis
Intercept xjAnd x ' is adjusted to by approaching rule again after being roundedj, gather the x ' of each color LED respectivelyjCorrection as each color LED
Luma data is simultaneously stored in the control module of this color LED lamps and lanterns, so that sending original gray-scale to control module when using
Data, control module can realize linear gray level colour mixture based on correction luma data, keep light modulation colour mixture accurate, color drift does not occur
It moves.
Wherein, brightness degree is 65536 grades or 256 grades, and N is 0~65535 or 0~255, and N is integer;The present embodiment
In, the color LED lamps and lanterns include the LED lamp bead of tri- kinds of colors of R, G, B, and N is 0~255, and N is integer.
In the present embodiment, step S1 further includes each brightness degree N and corresponding each brightness value according to each color LED lamp bead
L draws in x-y plane rectangular coordinate system and makees curve matching, with obtain the brightness degree N of each color LED lamp bead with it is corresponding
Relationship F (N, L) curve between brightness value L, as shown in Figure 3.Processing can more intuitively find out each color of color LED lamps and lanterns in this way
The problem of relationship between the brightness degree of LED lamp bead and the brightness value shown is a plurality of not overlapping curve, can from Fig. 3
The brightness degree N of each primary-color LED lamp bead and corresponding each brightness value L are nonlinear change out, this allows for input signal pair
When brightness degree N is dispatched, the brightness value L of return is that the brightness value shown and desired brightness value have biggish deviation, this
Deviation makes RGB colour mixture out of proportion, generates colour cast discoloration, i.e. input specific color signal, and the color of lamps and lanterns output is not but
Desired.
In addition, making normalized to each brightness value L of each color LED lamp bead respectively using formula (2) in step S2:
Wherein, min is respectively the minimum luminance value of each color LED lamp bead, and max is respectively that each color LED lamp bead is corresponding
Maximum brightness value.
In the present embodiment, in step S2, after making normalized to each brightness value L of each color LED lamp bead, it will normalize
Each brightness value L that treated ' expand 255 times of maximum brightness grade:
Maximum brightness value is 255 after normalized, and maximum brightness grade is 255, k 1;
In step S3, j is the brightness value after normalized and takes integer value in 0~255 respectively.
In step S1, a color LED lamps and lanterns R color LED lamp bead each brightness value L corresponding to 0~255 grade is acquired respectively
And make set L_r, remember L_r={ L_r0, L_r1, L_r2 ... ..., L_r255 }, G color LED lamp bead is corresponding to 0~255 grade
Each brightness value L simultaneously makees set L_g, remembers L_g={ L_g0, L_g1, L_g2 ... ..., L_g255 }, B color LED lamp bead is at 0~255 grade
Corresponding each brightness value L simultaneously makees set L_b, L_b={ L_b0, L_b1, L_b2 ... ..., L_b255 };Original gray-scale data
TAB=TAB_r=TAB_g=TAB_b=0,1,2 ..., 253,254,255 };
In step S2, three curves are correspondingly formed after drawing curve matching;
In step S3, straight line l is 256, and j is the brightness value after normalized and takes 0,1,2 respectively ... ..., 253,
254,255, it is respectively x_r that three curves are corresponding with the intercept that the intersection point of each straight line l is projected on the axis of the place brightness degree Nj、x_
gj、x_bj, remember int (x_rj)、int(x_gj) and int (x_bj) it is respectively to x_rj、x_gjAnd x_bjIt is rounded downwards, remembers relationship F
(N, L ') curve representation formula is y=ff (x), obtains x_r ' by rule is approachedj、x_g’j、x_b’j, steps are as follows:
By the x_r ' of R colored lights pearljSet obtains the correction luma data TAB_r_new of R color, by the x_g ' of G colored lights pearljCollection
The correction luma data TAB_g_new for obtaining G color is closed, by the x_b ' of B colored lights pearljSet obtains the correction luma data of B color
TAB_b_new;
In step S4, original gray-scale data TAB_r, TAB_g and TAB_ are sent to the control module of every color LED lamps and lanterns
B, control module realize linear gray level based on correction luma data TAB_r_new, TAB_g_new and TAB_b_new of each color
Colour mixture.
As shown in figure 4, for the brightness value according to each brightness degree N and normalization and after expanding 255 times of maximum brightness grade
The curve relation figure that L " is formed;It is illustrated in figure 5 luma data correction principle figure, step S3 is based on the principle to gray number
According to being corrected, original gray-scale data TAB=TAB_r=TAB_g=TAB_b={ 0,1,2 ... ..., 253,254,255 } is former
Each element in beginning luma data is the consecution natural number in 0~255, from fig. 5, it can be seen that consecution natural number form is original
Brightness value corresponding to luma data (brightness value shown) is curve, this be not it is desired, the target of gray scale correction is
Change linearly brightness degree with the brightness value shown, which is y=x, passes through the correction after mapping x=f (y)
Luma data TAB_new is denoted as: TAB_new={ f (0), f (1), f (2) ..., f (j) }, wherein j=0, and 1,2,3 ... ...,
255, and f (j) is integer.
For example, original gray-scale data TAB TAB_r=TAB_g=TAB_b={ 0,1,2 ... ..., 253,254,255 };Through
Correction luma data after x=f (y) mapping:
TAB_r_new { 0,1,1 ... ..., 252,253,255 },
TAB_g_new={ 0,1,2 ... ..., 253,254,255 },
TAB_b_new=0,1,1 ..., 248,251,255 }.
Find out from the luma data after correction, corrects the adjacent element f (j-1) in luma data although being not all with f (j)
Consecution natural number, but brightness degree can be made to change linearly with the brightness value shown, so adjacent member in correction luma data
Element be not all the characteristics of consecution natural number be it is beneficial, this helpfulness be correction key problem, be discussed below:
The change rate of the corresponding brightness value shown of n-th brightness degree is set as k in Fig. 5N, then
Work as kNWhen=1, brightness change shows as normally being incremented by, and has at this time f (j)-f (j-1)=1, that is, the grayscale after correcting
Adjacent element is consecution natural number in data.
Work as kNWhen > > > 1, brightness change shows as sharply jumping growth, is unhelpful variation, allow its stop increase so that
Error becomes smaller, and has f (j)=f (j-1) at this time, i.e. the value of adjacent element is identical.
Work as kNWhen < < < 1, brightness change shows as sluggish growth and unhelpful variation, allows its growth of skipping a grade so that accidentally
Difference becomes smaller, and has at this time f (j)-f (j-1) > 1, i.e., the value step-length of adjacent element is greater than 1.
Correction luma data TAB_r_new, TAB_g_new and TAB_b_new are stored in the control of this color LED lamps and lanterns
In molding block, wait it is to be called, in application, to the control module of every color LED lamps and lanterns send original gray-scale data TAB_r,
TAB_g and TAB_b, control module are looked for based on correction luma data TAB_r_new, TAB_g_new and TAB_b_new of each color
Corresponding brightness degree after to correction realizes the calling to brightness value according to brightness degree and the one-to-one relationship of brightness value,
To realize linear gray level colour mixture.Such as certain colour mixture input RGB=(123,123,123), three elements in RGB respectively from
TAB_r, TAB_g and TAB_b export R ' G ' B '=(103,124,82) after correction, three elements in R ' G ' B ' respectively from
TAB_r_new, TAB_g_new and TAB_b_new.
As shown in fig. 6, for the curve relation figure formed according to correction luma data and its corresponding brightness value, in terms of figure
Out, brightness degree and brightness value are substantially linear, when this to input input signal to brightness degree N scheduling, return
The brightness value that brightness value is shown is equal with desired brightness value, and then realizes linear colour mixture, and the color for exporting lamps and lanterns is but
It is intended to;As shown in fig. 7, for the curved line relation formed according to correction luma data and its corresponding normalization brightness value
Figure, it can be seen that three curves of RGB have been overlapped, i.e., the present invention can make colour mixture not drift about precisely.
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair
The restriction of embodiments of the present invention.For those of ordinary skill in the art, may be used also on the basis of the above description
To make other variations or changes in different ways.There is no necessity and possibility to exhaust all the enbodiments.It is all this
Made any modifications, equivalent replacements, and improvements etc., should be included in the claims in the present invention within the spirit and principle of invention
Protection scope within.
Claims (6)
1. a kind of color LED lamps and lanterns gray scale correction and linear color mixing method, the color LED lamps and lanterns include at least two colors
LED lamp bead, which comprises the steps of:
S1. each color LED lamp bead each brightness value L corresponding to each brightness degree N in a color LED lamps and lanterns is acquired respectively,
Remember that the collection of each brightness degree N is combined into original gray-scale data TAB;
S2. normalized is made to each brightness value L of each color LED lamp bead respectively, so that each brightness value of each color LED lamp bead
In the same order of magnitude, the maximum brightness value of each color LED lamp bead is identical and is 1;According to each brightness etc. of each color LED lamp bead
Grade N and corresponding normalized after each brightness value L ', draw in x-y plane rectangular coordinate system and make curve matching, with
Obtain the brightness degree N of each color LED lamp bead and the brightness value L after corresponding normalized ' between relationship F (N, L ') it is bent
Line;Brightness degree N is projected in x-axis, brightness value L ' it is projected in y-axis;Maximum brightness value and maximum brightness etc. after note normalized
The ratio of grade is k;
S3. make following mapping x=f (y):
Remember straight line l:
L:y=j (1)
J is the brightness value after normalized and takes k × each brightness degree respectively, obtains the brightness degree N of each color LED lamp bead
With the brightness value L after corresponding normalized ' between relationship F (N, L ') intersection point of curve and each straight line l, note intersection point is projected in
Intercept where brightness degree N on axis is xj, to intercept xjIt is rounded and obtains x 'j;By the x ' of each color LED lamp beadjRespectively together
As each color LED lamp bead correction luma data TAB_new and be stored in the control module of this color LED lamps and lanterns;
S4. original gray-scale data TAB, school of the control module based on each color are sent to the control module of every color LED lamps and lanterns
Positive luma data TAB_new realizes linear gray level colour mixture.
2. a kind of color LED lamps and lanterns gray scale correction according to claim 1 and linear color mixing method, which is characterized in that step
Rapid S1 further includes each brightness degree N and the corresponding each brightness value L according to each color LED lamp bead, in x-y plane rectangular coordinate system
Middle draw simultaneously makees curve matching, with obtain the relationship F between the brightness degree N of each color LED lamp bead and corresponding brightness value L (N,
L) curve.
3. a kind of color LED lamps and lanterns gray scale correction according to claim 1 and linear color mixing method, which is characterized in that bright
Spending grade is 65536 grades or 256 grades, and N is 0~65535 or 0~255, and N is integer.
4. a kind of color LED lamps and lanterns gray scale correction according to claim 3 and linear color mixing method, which is characterized in that step
Normalized is made to each brightness value L of each color LED lamp bead respectively using formula (2) in rapid S2:
Wherein, min is respectively the minimum luminance value of each color LED lamp bead, and max is respectively the corresponding maximum of each color LED lamp bead
Brightness value.
5. a kind of color LED lamps and lanterns gray scale correction according to claim 4 and linear color mixing method, which is characterized in that N is
0~255, and N is integer;In step S2, after making normalized to each brightness value L of each color LED lamp bead, at normalization
Each brightness value L after reason ' expand 255 times of maximum brightness grade:
Maximum brightness value is 255 after normalized, and maximum brightness grade is 255, k 1;
In step S3, j is the brightness value after normalized and takes integer value in 0~255 respectively.
6. a kind of color LED lamps and lanterns gray scale correction according to claim 5 and linear color mixing method, which is characterized in that institute
The LED lamp bead that color LED lamps and lanterns include tri- kinds of colors of R, G, B is stated, N is 0~255, and N is integer;
In step S1, a color LED lamps and lanterns R color LED lamp bead each brightness value L corresponding to 0~255 grade is acquired respectively and is made
Set L_r remembers L_r={ L_rriAnd riFor the integer in 0~255, each brightness corresponding to 0~255 grade of G color LED lamp bead
Value L simultaneously makees set L_g, remembers L_g={ L_ggiAnd giFor the integer in 0~255, B color LED lamp bead is corresponding to 0~255 grade
Each brightness value L simultaneously makees set L_b, L_b={ L_bbiAnd biFor the integer in 0~255;Original gray-scale data TAB=TAB_r=
TAB_g=TAB_b={ n } and n are the integer in 0~255;
In step S2, three curves are correspondingly formed after drawing curve matching;
In step S3, straight line l is 256, and j is the brightness value after normalized and takes integer in 0~255 respectively, three
It is respectively x_r that curve is corresponding with the intercept that the intersection point of each straight line l is projected on the axis of the place brightness degree Nj、x_gj、x_bj, remember int
(x_rj)、int(x_gj) and int (x_bj) it is respectively to x_rj、x_gjAnd x_bjIt is rounded downwards, and note relationship F (N, L ') curve table
It is y=ff (x) up to formula, obtains x_r ' by rule is approachedj、x_g’j、x_b’j, steps are as follows:
By the x_r ' of R colored lights pearljSet obtains the correction luma data TAB_r_new of R color, by the x_g ' of G colored lights pearljSet obtains
The correction luma data TAB_g_new for obtaining G color, by the x_b ' of B colored lights pearljSet obtains the correction luma data TAB_b_ of B color
new;
In step S4, original gray-scale data TAB_r, TAB_g and TAB_b, control are sent to the control module of every color LED lamps and lanterns
Molding block realizes linear gray level colour mixture based on correction luma data TAB_r_new, TAB_g_new and TAB_b_new of each color.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810897108.3A CN109005622B (en) | 2018-08-08 | 2018-08-08 | A kind of color LED lamps and lanterns gray scale correction and linear color mixing method |
PCT/CN2019/075193 WO2020029569A1 (en) | 2018-08-08 | 2019-02-15 | Color led lamp grayscale correction and linear color mixing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810897108.3A CN109005622B (en) | 2018-08-08 | 2018-08-08 | A kind of color LED lamps and lanterns gray scale correction and linear color mixing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005622A CN109005622A (en) | 2018-12-14 |
CN109005622B true CN109005622B (en) | 2019-09-10 |
Family
ID=64595983
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810897108.3A Active CN109005622B (en) | 2018-08-08 | 2018-08-08 | A kind of color LED lamps and lanterns gray scale correction and linear color mixing method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109005622B (en) |
WO (1) | WO2020029569A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109005622B (en) * | 2018-08-08 | 2019-09-10 | 广州市浩洋电子股份有限公司 | A kind of color LED lamps and lanterns gray scale correction and linear color mixing method |
CN110211191B (en) * | 2019-05-31 | 2021-02-05 | 广州市雅江光电设备有限公司 | Mixed color correction method and device, terminal equipment and readable storage medium |
CN112863424A (en) * | 2021-03-11 | 2021-05-28 | 芯颖科技有限公司 | Display screen brightness adjusting method and device and electronic equipment |
CN113674703B (en) * | 2021-08-12 | 2022-12-06 | Tcl华星光电技术有限公司 | Backlight module brightness correction method, display device and brightness correction device thereof |
CN115297590B (en) * | 2022-10-10 | 2023-02-14 | 杭州罗莱迪思科技股份有限公司 | Color non-shift control method for dimming lamp and application thereof |
CN116939906B (en) * | 2023-07-26 | 2024-04-19 | 嘉兴市成泰镜业有限公司 | Artificial intelligence-based LED mixed-color lamplight color calibration and adjustment method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9417479B2 (en) * | 2011-05-13 | 2016-08-16 | Samsung Display Co., Ltd. | Method for reducing simultaneous contrast error |
CN104299565B (en) * | 2014-10-13 | 2017-06-06 | 西安诺瓦电子科技有限公司 | The low gray scale correction method and system of LED display |
CN104485075A (en) * | 2014-12-30 | 2015-04-01 | 广东威创视讯科技股份有限公司 | Color mixture method for display screen of light emitting element |
CN109005622B (en) * | 2018-08-08 | 2019-09-10 | 广州市浩洋电子股份有限公司 | A kind of color LED lamps and lanterns gray scale correction and linear color mixing method |
-
2018
- 2018-08-08 CN CN201810897108.3A patent/CN109005622B/en active Active
-
2019
- 2019-02-15 WO PCT/CN2019/075193 patent/WO2020029569A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2020029569A1 (en) | 2020-02-13 |
CN109005622A (en) | 2018-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109005622B (en) | A kind of color LED lamps and lanterns gray scale correction and linear color mixing method | |
CN104464623B (en) | A kind of method and device for adjusting the low GTG of light emitting diode | |
CN109496035B (en) | Color matching method, color matching method and system for automatically realizing maximum brightness of colored lamp | |
CN101982014A (en) | Apparatus and methods for combining light emitters | |
CN108668411A (en) | A kind of lampion color correcting method | |
JP2004325629A5 (en) | ||
CN100594421C (en) | Color optimization system and method of digital light processing projecting machine | |
CN104540263A (en) | Method and device for simulating daylight changing | |
CN109862659B (en) | Color temperature adjusting method and lamp | |
CN109948184A (en) | Illuminate light mixing calculation method, device, computer equipment and storage medium | |
CN115720727B (en) | Control design for perceptually uniform color adjustment | |
CN105070269B (en) | The color display and system of a kind of mobile terminal | |
US11997769B2 (en) | Light sources that increase object chroma when dimmed | |
CN113795065B (en) | Color temperature adjusting method and lighting module | |
CN106471565B (en) | Image display device and for the method to dimming light source | |
CN104300045A (en) | Method for sunlight mixing based on multiple white light sources | |
CN109949751A (en) | A kind of display lightness regulating method and device | |
CN107945730A (en) | A kind of control method of the LED standard screen based on two-level current | |
US11523482B2 (en) | Control design for perceptually uniform color tuning | |
CN109767729A (en) | A kind of gamma-debugged method of screen body and display module | |
CN106885217A (en) | The full-automatic white balance adjusting methods of RGB of LED | |
CN114822279B (en) | Display device | |
CN115397059A (en) | Control method for improving color-changing transition effect of RGB light-emitting diode | |
CN106255282B (en) | A kind of illumination control method | |
CN109587893B (en) | Dimming method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |