Summary of the invention
The present invention proposes a kind of screen intensity and uniformity of chromaticity control method, adjusting screen brightness and colourity make that screen intensity is even, colourity is consistent.
The control method of a kind of screen intensity of the present invention and uniformity of chromaticity comprises step:
Set up white bitmap at control device, connect screen and control device with the DVI line, the resolution of described white bitmap is identical with screen resolution;
Calculate respectively three primary colors luminance compensation coefficient and the three primary colors colourity penalty coefficient of each pixel on the screen;
Three primary colors luminance compensation coefficient and the three primary colors colourity penalty coefficient of each pixel are burnt to ray machine,
The computing method of monochromatic brightness penalty coefficient comprise step:
According to the pixel distribution screen on average is divided into the m*n equal portions, gets a pixel for every part, obtain m*n pixel, described m, n and screen resolution and brightness regulation precision adapt;
In a described m*n pixel, suppose that the brightness of screen center's place's pixel is p, the pixel brightness of screen edges and corners place is q, ratio and the user's request of described p, q adapt;
Become the rule of contour circle to set up the brightness uniformity correction chart model of a described m*n pixel according to each pixel Luminance Distribution on the screen, described brightness uniformity correction chart model is in the same character representation of pixel on the same contour circle with described m*n pixel brightness character representation separately;
Empirical value according to pixel luminance difference on described p, q value and the different contour circle calculates brightness corresponding to each character in the described brightness uniformity correction chart model, obtains described m*n pixel brightness self separately, therefrom finds brightness minimum value min;
Calculate the luminance compensation factor alpha of each pixel in the described m*n pixel, computing formula is as follows:
According to the luminance compensation factor alpha of a described m*n pixel, adopt bilinear interpolation, calculate the luminance compensation coefficient of other pixels on the screen,
The computing method of monochromatic colourity penalty coefficient comprise step:
According to the pixel distribution described white bitmap on average is divided into i*j zone, described i, j and white bitmap resolution and colourity degree of regulation adapt;
View screen colour cast situation, corresponding zone to be regulated on the selected described white bitmap;
Divide each described zone to be regulated with one group of predetermined slant and equally spaced parallel lines, each described zone to be regulated is divided into s film micro area, pixel in the same film micro area shares a colourity penalty coefficient, set the direction that increases progressively of the interior pixel colourity penalty coefficient of s film micro area, according to increasing progressively direction s film micro area is numbered, colourity penalty coefficient to pixel in the first film micro area is estimated, according to the colourity penalty coefficient a of pixel in the first estimated film micro area
1Calculate the colourity penalty coefficient a of pixel in other film micro areas
t, the formula of employing is:
T=2,3 ... s, work as a
t, make a at>1 o'clock
t=1, described d is the coefficient that the size with film micro area adapts;
Colourity penalty coefficient except each pixel in extra-regional other zones to be regulated on the screen is defaulted as 1;
Colourity penalty coefficient according to each pixel, regulate the colourity of described white bitmap, whether view screen colourity is even, if inhomogeneous, adjust the colourity penalty coefficient of pixel in the first film micro area, recomputate the colourity penalty coefficient of pixel in other film micro areas, the colourity of again regulating described white bitmap is until screen colourity is even.
Preferably, the value of described m is 12, and the value of described n is 16, and the value of described i is 6, and the value of described j is 8, and the value of described s is 5, and the value of described d is 0.001.
Brightness of the present invention and uniformity of chromaticity control method, when brightness adjusting, brightness according to each pixel on the screen is the rule that contour circle distributes, empirical data in conjunction with luminance difference between different contour circles, calculate the brightness of pixel on the different contour circles, calculate separately luminance compensation coefficient according to the nitometer of each pixel, calculate again the luminance compensation coefficient of other pixels according to bilinear interpolation.When regulating colourity, because the regulating effect on adjustable, the screen is in real time as seen in real time for the colourity of white bitmap on the control device, therefore can according to regulating effect constantly revise the colourity penalty coefficient until on the screen white bitmap colourity even, more revised colourity penalty coefficient is burnt to ray machine.With regard to making things convenient for, effectively having solved the inconsistent problem of colourity, improved the display effect of screen display white background picture like this.
Embodiment
When the screen display white picture, can see the dark angle of obvious dark side and colour cast phenomenon.
As shown in Figure 1, the incident light parallel with camera lens optical axis focuses on the imaging of picture core, and the brightness of supposing him is I
0, not parallel with optical axis, as to become random angle θ incident light is being I as the brightness on the plane
e, I then
0With I
eBetween relation be shown below:
I
e=I
0cos
4θ (1)
This formula is called cosine-fourth law.Thus law as can be known, distance center point place far away on the screen, the energy of light is less, this is the main cause that causes the dark angle of screen dark side phenomenon.If take screen center's point as the center of circle, at the screen upper drawing circle, the brightness that is in the pixel on the same circle equates, correspondingly, their luminance compensation coefficient also equates, this rule is called contour compasses rule.
White light is to mix by a certain percentage by three kinds of light of red, green, blue, and the center of projection point of three kinds of light of red, green, blue should overlap, but in the practical application, three kinds of light center of projection points of the red, green, blue of ray machine may not overlap, thereby cause the local colour cast phenomenon of appearance on the white screen.
Brightness of the present invention and colourity control method, when brightness adjusting, brightness according to each pixel on the screen is the rule that contour circle distributes, empirical data in conjunction with luminance difference between different contour circles, calculate the brightness of pixel on the different contour circles, calculate separately luminance compensation coefficient according to the nitometer of each pixel, calculate again the luminance compensation coefficient of other pixels according to bilinear interpolation.When regulating colourity, set up white bitmap at control device, the colourity by this white bitmap of continuous adjusting obtains final colourity penalty coefficient.Above-mentioned luminance compensation coefficient and colourity penalty coefficient are burnt in the ray machine, have just solved the dark angle of screen dark side and local phenomenon on the low side.Explain in detail the present invention below in conjunction with accompanying drawing.
The control method of a kind of screen intensity of the present invention and uniformity of chromaticity as shown in Figure 2, comprises step:
Step 1, set up white bitmap at control device, connect screen and control device with DVI line (Digital Visual Interface, digital video line), the resolution of described white bitmap is identical with screen resolution.
After calculating luminance compensation coefficient and colourity penalty coefficient by certain method, two kinds of penalty coefficients are burnt to ray machine, under the effect of ray machine, the brightness of white picture and colourity have just obtained adjusting on the screen.If but the white picture regulating effect is unsatisfactory on the screen, the penalty coefficient that is burnt to ray machine is difficult to change again.This penalty coefficient that just need to be burnt to ray machine should be accurate as much as possible.Wherein, the colourity penalty coefficient is easy to occur deviation owing to being to be based upon on staff's the sense organ basis.Therefore, accuracy in order to ensure the colourity penalty coefficient, step 1 has been set up white bitmap at the control device of screen, the white bitmap will be presented on the screen, control device herein is a kind ofly can carry picture and control the device of this picture of screen display by DVI alignment screen, can be computing machine etc., the present invention be restricted its concrete form.Because white bitmap is based upon on the computer virtual internal memory, therefore, it is very easily that the dialogue color bitmap is regulated.After regulating white bitmap, can observe regulating effect at screen, be equivalent to the effect preview, if regulating effect is undesirable, then again regulate white bitmap until the regulating effect on the screen is satisfactory.
Step 2, calculate three primary colors luminance compensation coefficient and the three primary colors colourity penalty coefficient of each pixel on the screen respectively.
Step 3, three primary colors luminance compensation coefficient and the three primary colors colourity penalty coefficient of each pixel is burnt to ray machine.
In the step 3, penalty coefficient is burnt to ray machine, namely multiply by penalty coefficient under this color with the pixel initial value under a kind of color of pixel.For any one pixel, colourity penalty coefficient under three kinds of colors is different, need to calculate respectively three kinds of colourity penalty coefficients under the color in step 2, but the luminance compensation coefficient under three kinds of colors equates, therefore need to calculate luminance compensation coefficient under a kind of color in step 2.
As shown in Figure 3, the computing method of the monochromatic brightness penalty coefficient of each pixel comprise step:
Step S1, distributing according to pixel on average is divided into the m*n equal portions with screen, gets a pixel for every part, obtains m*n pixel, and described m, n and screen resolution and brightness regulation precision adapt.
Screen resolution is higher, and pixel is more, and the brightness of using cosine-fourth law to calculate one by one numerous pixels is unpractical.The purpose of this step is namely selected the one part of pixel point, calculates first the luminance compensation coefficient of this part pixel, uses bilinear interpolation to calculate the luminance compensation coefficient of other pixels again.Selected pixel number is crossed senior general increases workload, cross young pathbreaker's Dimming penalty coefficient accuracy, make regulating effect too coarse.Therefore, the value of m, n need to be between screen resolution and degree of regulation balance, and the pixel of getting each zone after dividing equally should be the pixel that is in same position.
Step S2, in a described m*n pixel, suppose that the brightness of screen center place pixel is p, the pixel brightness of screen edges and corners place is q, ratio and the user's request of described p, q adapt.
According to cosine-fourth law, p is brightness maximal value on this screen, and q is brightness minimum value on this screen.The essence of brightness regulation is to turn down high brightness to make it concordant with low-light level, thereby realizes that brightness is consistent, but brightness can not unconfinedly turn down, and the screen intensity after the adjusting should be in the user accepts scope.
Step S3, become the rule of contour circle to set up the brightness uniformity correction chart model of a described m*n pixel according to each pixel Luminance Distribution on the screen, described brightness uniformity correction chart model is in the same character representation of pixel on the same contour circle with described m*n pixel brightness character representation separately.
For brightness uniformity correction chart model, describe with a following example.9 * 12 matrixes that 108 pixels form are a if center four somes place's brightness is 100, four angular brightness, and the brightness of screen length and width central spot is respectively b, c.Be the rule that contour circle distributes according to pixel brightness on the screen, represent different brightness with distinct symbols, obtain brightness uniformity correction chart model shown in Figure 4.
Step S4, according to the empirical value of pixel luminance difference on described p, q value and the different contour circle, calculate brightness corresponding to each character in the described brightness uniformity correction chart model, obtain described m*n pixel brightness self separately, therefrom find brightness minimum value min.
Test data through in the real work can obtain the luminance difference between the pixel on the contour circle of different radii, can be with each character is corresponding in the brightness uniformity correction chart model brightness calculation out according to luminance difference and p, q value.
The luminance compensation factor alpha of each pixel in step S5, the described m*n of the calculating pixel, computing formula is as follows:
Step S6, according to the luminance compensation factor alpha of a described m*n pixel, adopt bilinear interpolation, calculate the luminance compensation coefficient of other pixels on the screen,
The below gets 12, n with m, and to get 16, m*n=192 be example, specifically introduces bilinear interpolation, the some represent pixel point of wherein mentioning.
1) when interpolation point and 192 different row or heterotaxy
As shown in Figure 5, point a is the brightness interpolating impact point with 192 different row heterotaxies, require the luminance compensation coefficient value of invocation point a, need to carry out interpolation at directions X first and obtain a directly over a " point and under the luminance compensation coefficient value of a ' point (two points and 192 with delegation on).Suppose with some a (x, y) nearest four 192 from left to right, luminance compensation coefficient from top to bottom is respectively K
R1, K
R2, K
R3, K
R4,
The pixel position is from left to right, be respectively from top to bottom: (x
1, y
1), (x
2, y
1), (x
1, y
2), (x
2, y
2), then put the luminance compensation COEFFICIENT K of putting directly over a
Ra "For:
The luminance compensation coefficient value K that puts under the some a
Ra 'For:
Secondly carry out interpolation in the y direction, obtain the luminance compensation coefficient value K of an a
RaFor:
2) when interpolation point and 192 same columns or when going together
Point b, c are respectively and 192 same columns, the luminance compensation coefficient interpolation impact point of going together.Its bilinearity luminance compensation coefficient interpolation schematic diagram is as shown in Figure 6:
For a b, directly carry out y axle interpolation, obtain the luminance compensation coefficient value K that b is ordered
RbFor:
For a c, directly carry out the X-axis interpolation, obtain the luminance compensation coefficient value K that c is ordered
RcFor:
Use above formula the luminance compensation coefficient of other pixels except 192 pixels on the screen can be obtained.
Obtain the luminance compensation coefficient of each pixel under three kinds of colors on the screen according to above method.
As shown in Figure 7, the computing method of the monochromatic colourity penalty coefficient of each pixel comprise step:
Step T1, according to pixel distribute with described white bitmap on average be divided into i*j regional, described i, j and white bitmap resolution and colourity degree of regulation adapt.
The reason of herein dividing in the reason of zoning and the brightness regulation process is consistent, does not repeat them here.
Be i=6 as shown in Figure 8, during j=8, screen is divided into the white bitmap behind 48 zones.
Step T2, view screen colour cast situation, corresponding zone to be regulated on the selected described white bitmap.
As shown in Figure 8, zone to be regulated is the zone of the first row secondary series.
Step T3, divide described zone to be regulated with one group of predetermined slant and equally spaced parallel lines, obtain s film micro area.When zone to be regulated has when a plurality of, each zone to be regulated is divided into s film micro area according to the method.Pixel in the same film micro area shares a colourity penalty coefficient, set the direction that increases progressively of the interior pixel colourity penalty coefficient of s film micro area, according to increasing progressively direction s film micro area is numbered, colourity penalty coefficient to pixel in the 1st film micro area is estimated, according to the colourity penalty coefficient a of pixel in the 1st estimated film micro area
1Calculate the colourity penalty coefficient a of pixel in other film micro areas
t, the formula of employing is:
T=2,3 ... s, work as a
t, make a at>1 o'clock
t=1, described d is the coefficient that the size with film micro area adapts.
There is certain area in zone to be regulated, if all adopt same colourity penalty coefficient to regulate to all pixels in this zone, is easy to make the colourity in this regional colourity and neighbouring region again to form deviation.Therefore, above-mentioned steps is treated control band and is again divided, and after the division, all pixels share a colourity penalty coefficient in the same film micro area.In a single day above-mentioned predetermined slant, spacing and the direction that increases progressively can be arbitrarily, but decide, the division of film micro area should be followed predetermined gradient, spacing and increase progressively direction in each zone to be regulated.Increase progressively direction according to the colourity penalty coefficient film micro area is numbered the 1st film micro area, the 2nd film micro area ... the s film micro area.Like this, the colourity penalty coefficient of the first film micro area is minimum, obtains the colourity penalty coefficient of other film micro areas according to the relation of colourity penalty coefficient between the colourity penalty coefficient of minimum and film micro area, and the formula that adopts is to get by the experiment of limited number of time.When as shown in Figure 8, screen is divided into 48 parts, and when zone to be regulated was divided into 5 parts, the value of d was 0.001.
Colourity penalty coefficient except each pixel in extra-regional other zones to be regulated on step T4, the screen is defaulted as 1.
Step T5, according to the colourity penalty coefficient of each pixel, regulate the colourity of described white bitmap, whether view screen colourity is even, if inhomogeneous, adjust the colourity penalty coefficient of pixel in the first film micro area, recomputate the colourity penalty coefficient of pixel in other film micro areas, the colourity of again regulating described white bitmap is until screen colourity is even.
Obtain the colourity penalty coefficient of each pixel under three kinds of colors on the screen according to above method.
Above-described embodiment of the present invention does not consist of the restriction to protection domain of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.