[summary of the invention]
At the problems referred to above, the invention provides the system that a kind of RGB three looks change RGBW four looks, it is inconsistent to have solved in the prior art saturation and the brightness of mixed light, and the higher not problem of energy saving of power.
The invention provides a kind of RGB (RGB) three looks changes the system of RGBW (red, green, blue and white) four looks, and described system comprises input unit, processing unit and control unit;
Described input unit is used to import the gray value of R, G, B;
Described processing unit is used for:
To be the gray value of R, G, B, W from R, G, the B grayvalue transition of input unit input,
Judge whether this group gray value all is not less than zero,
If whether the gray value of then judging W is greater than the highest tonal gradation: if then change this group gray value and output; Otherwise, export the effective value of this group gray value;
Otherwise, then carry out R, G again, the B grayvalue transition is the gray value of R, G, B, W, until output corresponding grey scale value;
Described control unit is used to receive the output valve of processing unit, and carries out according to output valve control LED equipment,
Wherein, described effective value is meant the value in each gray value span.
As a further improvement on the present invention, described processing unit comprises central processor unit, data determining unit and data output unit, and it is the gray value of R, G, B, W that described central processor unit is used for R, G, B grayvalue transition; Data determining unit is used for data converted is carried out analyzing and processing; The data output unit is used for data processed is exported.
As a further improvement on the present invention, described input unit is the keyboard that is connected with processing unit.
As a further improvement on the present invention, described processing unit determines that the step of output valve comprises:
Receive the gray value of R, G, B;
The gray scale output valve that makes first color is 0, calculates the gray value of R, G, B, other colors of W, draws first group of R, G, B, W gray value;
Judge that whether first group of R, G, B, W gray value are all more than or equal to 0, if, whether the gray value of then judging W is greater than the highest tonal gradation: if, then should organize gray value according to the ratio of this moment reduces in proportion simultaneously, and the gray value that guarantees white light is the highest tonal gradation, the gray value that increases R, G, B then is to replenish the loss of luminous flux, R, G, B, W gray value after the output conversion; Otherwise, export the effective value of this group gray value;
Otherwise the gray scale output valve that makes second color is 0, calculates the gray value of R, G, B, other colors of W, draws second group of R, G, B, W gray value;
Judge that second group of R, G, B, W gray value are all more than or equal to 0, if, whether the gray value of then judging W is greater than the highest tonal gradation: if, then should organize gray value according to the ratio of this moment reduces in proportion simultaneously, and the gray value that guarantees white light is the highest tonal gradation, the gray value that increases R, G, B then is to replenish the loss of luminous flux, R, G, B, W gray value after the output conversion; Otherwise, export the effective value of this group gray value;
Otherwise, the gray scale output valve that makes the 3rd color is 0, calculate the gray value of R, G, B, other colors of W, whether the gray value of judging W is greater than the highest tonal gradation: if, then should organize gray value according to the ratio of this moment reduces in proportion simultaneously, and the gray value that guarantees white light be the highest tonal gradation, and the gray value that increases R, G, B then is to replenish the loss of luminous flux, R, G, B, W gray value after output is changed; Otherwise, export the effective value of this group gray value;
Wherein, the arbitrary color of R, G, B in the first color showing RGBW system; Arbitrary color among the second color showing R, G, the B except that first color; Another kind of color among the 3rd color showing R, G, the B except that first color and second color.
As a further improvement on the present invention, the span of described input value r, g, b be 0 to
Wherein, r represents the tonal gradation of R; G represents the tonal gradation of G; B represents the tonal gradation of B; M represents the maximum of tonal gradation.
As a further improvement on the present invention, calculating the parameter that R, G, the gray value of B, W need use comprises:
The chromaticity coordinate of R (x1, y1); The chromaticity coordinate of G (x2, y2); The chromaticity coordinate of B (x3, y3); The chromaticity coordinate of W (x4, y4);
Fr represents the luminous flux of R when maximum tonal gradation m; Fg represents the luminous flux of G when maximum tonal gradation m; Fb represents the luminous flux of B when maximum tonal gradation m; Fw represents the luminous flux of W when maximum tonal gradation m.
As a further improvement on the present invention, calculate the gray scale output valve that makes R in the described output valve and be 0 computing formula and be,
The gray scale output valve that makes G is that 0 computing formula is,
The gray scale output valve that makes B is that 0 computing formula is,
As a further improvement on the present invention, when the gray scale output valve of R was 0, whether the gray value of judging W comprised greater than the step of high tonal gradation:
If w1≤m, output r1=0, g1=min (g1, m), b1=min (b1, m), w1=w1;
If w1>m,
Order
Formula below calculating
Output r1=min (r1, m), g1=min (g1, m), b1=min (b1, m), w1=m.
When the gray scale output valve of G was 0, whether the gray value of judging W comprised greater than the step of high tonal gradation:
If w1≤m, and output r1=min (r1, m), g1=0, b1=min (b1, m), w1=w1;
If w1>m,
Order
Formula below calculating
Output r1=min (r1, m), g1=min (g1, m), b1=min (b1, m), w1=m.
When the gray scale output valve of B was 0, whether the gray value of judging W comprised greater than the step of high tonal gradation:
If w1≤m, and output r1=min (r1, m), g1=min (g1, m), b1=0, w1=w1;
If w1>m,
Order
Formula below calculating
Output r1=min (r1, m), g1=min (g1, m), b1=min (b1, m), w1=m.
The invention has the beneficial effects as follows: 1, the chromaticity coordinates of mixed light and luminous flux are in full accord, have guaranteed that the saturation of mixed light and brightness are in full accord; 2, the system power after the conversion has been realized energy-conservation effect less than RGB trichromatic system power; 3, because power is little, the caloric value of hardware is less, has prolonged the useful life of hardware device.
[embodiment]
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Specific embodiment one
As shown in Figures 1 to 3, the invention provides the system that a kind of RGB (RGB) three looks change RGBW (red, green, blue and white) four looks, described system comprises input unit, processing unit and control unit;
Described input unit is the keyboard that links to each other with processing unit, is used to import the gray value of R, G, B;
Described processing unit is used for:
To be the gray value of R, G, B, W from R, G, the B grayvalue transition of input unit input,
Judge whether this group gray value all is not less than zero,
If whether the gray value of then judging W is greater than the highest tonal gradation: if then change this group gray value and output; Otherwise, export the effective value of this group gray value; Described effective value is meant the value in each gray value span;
Otherwise, then carry out R, G again, the B grayvalue transition is the gray value of R, G, B, W, until output corresponding grey scale value;
Described control unit is used to receive the output valve of processing unit, and carries out according to output valve control LED equipment.
Described processing unit comprises central processor unit, data determining unit and data output unit, and it is the gray value of R, G, B, W that described central processor unit is used for R, G, B grayvalue transition; Data determining unit is used for data converted is carried out analyzing and processing; The data output unit is used for data processed is exported.
Described processing unit determines that the step of output valve comprises:
Receive the gray value of R, G, B;
The gray scale output valve that makes first color is 0, calculates the gray value of R, G, B, other colors of W, draws first group of R, G, B, W gray value;
Judge that whether first group of R, G, B, W gray value are all more than or equal to 0, if, whether the gray value of then judging W is greater than the highest tonal gradation: if, then should organize gray value according to the ratio of this moment reduces in proportion simultaneously, and the gray value that guarantees white light is the highest tonal gradation, the gray value that increases R, G, B then is to replenish the loss of luminous flux, R, G, B, W gray value after the output conversion; Otherwise, export the effective value of this group gray value;
Otherwise the gray scale output valve that makes second color is 0, calculates the gray value of R, G, B, other colors of W, draws second group of R, G, B, W gray value;
Judge that second group of R, G, B, W gray value are all more than or equal to 0, if, whether the gray value of then judging W is greater than the highest tonal gradation: if, then should organize gray value according to the ratio of this moment reduces in proportion simultaneously, and the gray value that guarantees white light is the highest tonal gradation, the gray value that increases R, G, B then is to replenish the loss of luminous flux, R, G, B, W gray value after the output conversion; Otherwise, export the effective value of this group gray value;
Otherwise, the gray scale output valve that makes the 3rd color is 0, calculate the gray value of R, G, B, other colors of W, whether the gray value of judging W is greater than the highest tonal gradation: if, then should organize gray value according to the ratio of this moment reduces in proportion simultaneously, and the gray value that guarantees white light be the highest tonal gradation, and the gray value that increases R, G, B then is to replenish the loss of luminous flux, R, G, B, W gray value after output is changed; Otherwise, export the effective value of this group gray value;
Wherein, the arbitrary color of R, G, B in the first color showing RGBW system; Arbitrary color among the second color showing R, G, the B except that first color; Another kind of color among the 3rd color showing R, G, the B except that first color and second color.
The span of described input value r, g, b is 0 to m,
Wherein, r represents the tonal gradation of R; G represents the tonal gradation of G; B represents the tonal gradation of B; M represents the maximum of tonal gradation.
The parameter that calculating R, G, the gray value of B, W need use comprises:
The chromaticity coordinate of R (x1, y1); The chromaticity coordinate of G (x2, y2); The chromaticity coordinate of B (x3, y3); The chromaticity coordinate of W (x4, y4);
Fr represents the luminous flux of R when maximum tonal gradation m; Fg represents the luminous flux of G when maximum tonal gradation m; Fb represents the luminous flux of B when maximum tonal gradation m; Fw represents the luminous flux of W when maximum tonal gradation m.
Calculate in the described output valve, the gray scale output valve that makes R is that 0 computing formula is,
The gray scale output valve that makes G is that 0 computing formula is,
The gray scale output valve that makes B is that 0 computing formula is,
Described processing unit to R, G, B respectively the order of zero setting be R, G, B, its detailed process process is as follows:
The gray scale output valve that makes R is 0, calculates one group of R, G, B, W value with formula (1);
Judge that this class value whether all more than or equal to zero, if not, then enters the gray value zero-setting operation of G; Otherwise, make the following judgment:
Whether the gray value of judging W comprises greater than the step of high tonal gradation:
If w1≤m, output r1=0, g1=min (g1, m), b1=min (b1, m), w1=w1;
If w1>m,
Order
Formula below calculating
Output r1=min (r1, m), g1=min (g1, m), b1=min (b1, m), w1=m.
The gray value zero-setting operation of G:
The gray value that makes G is zero, calculates one group of R, G, B, W value with formula (2);
Judge that this class value whether all more than or equal to zero, if not, then enters the gray value zero-setting operation of B; Otherwise, make the following judgment:
If w1≤m, and output r1=min (r1, m), g1=0, b1=min (b1, m), w1=w1;
If w1>m,
Order
Formula below calculating
Output r1=min (r1, m), g1=min (g1, m), b1=min (b1, m), w1=m.The gray value zero-setting operation of B:
The gray value that makes B is zero, calculates one group of R, G, B, W value with formula (3);
Whether the gray value of judging W is greater than the highest tonal gradation:
If w1≤m, and output r1=min (r1, m), g1=min (g1, m), b1=0, w1=w1;
If w1>m,
Order
Formula below calculating
Output r1=min (r1, m), g1=min (g1, m), b1=min (b1, m), w1=m.
After described control unit receives the output valve of processing unit, carry out concrete operations according to described output valve control LED equipment;
Specific embodiment two
Present embodiment is with respect to the difference of specific embodiment one:
Described processing unit can also be R, B, G to the order of R, G, the zero setting of B difference.
Specific embodiment three
Present embodiment is with respect to specific embodiment one and two difference:
Described processing unit can also be G, R, B to the order of R, G, the zero setting of B difference.
Specific embodiment four
Present embodiment is with respect to the difference of specific embodiment one to three:
Described processing unit can also be G, B, R to the order of R, G, the zero setting of B difference.
Specific embodiment five
Present embodiment is with respect to the difference of specific embodiment one to four:
Described processing unit can also be B, R, G to the order of R, G, the zero setting of B difference.
Specific embodiment six
Present embodiment is with respect to the difference of specific embodiment one to five:
Described processing unit can also be B, G, R to the order of R, G, the zero setting of B difference.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.