Background technology
LCD space light modulator is the spatial light modulation device of a kind of high-contrast, high resolving power, active, codified, at optical field extremely important application is arranged.For example; Utilize LCD space light modulator to carry out real-time, the adjustable light beam spacing shaping of laser beam; Can obtain the light beam of the nearly flat-top light distribution of required form (like geometric configuratioies such as square, circles) easily, have important application prospects in the beam shaping in high power laser system pre-amplifier or oscillator.
LCD space light modulator Gamma curve is meant the curve that the transmitance after laser beam is through LCD space light modulator changes along with the gray-value variation that on LCD space light modulator, writes image (the gray-value variation scope generally is 0~255).Wherein, transmitance is the power of laser beam when passing through power behind the LCD space light modulator and getting into LCD space light modulator divided by laser beam.When test Gamma curve; (RMS is a root mean square to the RMS value of the power of employed incoming laser beam; Be the important evaluation function of beam quality) generally lower; And the power constant of different incoming laser beams constantly, therefore, sometimes can be with the Gamma curve with the power of laser beam after through LCD space light modulator along with the curve that the gray-value variation that on LCD space light modulator, writes image changes is represented.
In general, the original Gamma curve of LCD space light modulator is a sigmoid curve.This sigmoid curve often is difficult to satisfy application need.For example: in the device of high power laser, have more optical element and pre-amplifier before the LCD space light modulator, it is time to time change that light beam incides the distribution of LCD space light modulator Shang Qiang district.When the Gamma curve is nonlinear sigmoid curve; In the bigger zone of nonlinearities change; Be in the zone of 1<k on the Gamma curve<∞ (k is the Gamma slope of a curve); The faint variation that on LCD space light modulator, writes gradation of image all can cause laser transmittance bigger fluctuating to occur, and then causes strong district to drift about in time to compensating back near-field beam degree of modulation influence obviously.And when the Gamma curve is linear change; The strong district of laser changes the influence of compensation not obvious in time; Near-field beam degree of modulation after the compensation is little and the ability long term maintenance is stable; Thereby reach laser beam is carried out spacing shaping effectively, the purpose of this flat top beam of superelevation that output near field degree of modulation is lower.Therefore usually need regulate the Gamma curve shape of LCD space light modulator, make its linearization.
In the prior art, adjust the Gamma curve shape, need LCD space light modulator be connected with computer display card, drive LCD space light modulator with computer display card.The computer display card driver can be regulated brightness, contrast and gray scale for the user provides, the man-machine interface of perhaps brightness, contrast and gamma.Can adjust the Gamma curve shape to a certain extent through this man-machine interface, make its linearization.Yet; Brightness, contrast and gray scale in the man-machine interface of video card driver (perhaps brightness, contrast and gamma) is very complicated with the relation of Gamma curve; Every adjustment once, the transmitance that all need test gray scale between 0~255 changes and then draws the Gamma curve and verify whether it is linear change.This causes Gamma curve linear adjustment process very loaded down with trivial details, consuming time.In addition, above-mentioned Gamma curve adjustment scheme effect is unsatisfactory, can not make the complete linearization of gamma curve.
In sum, currently press for a kind of Gamma of LCD space light modulator fast, accurately curve linear method of adjustment.
Summary of the invention
The purpose of this invention is to provide a kind of Gamma of LCD space light modulator fast, accurately curve linear method of adjustment.
For realizing the foregoing invention purpose, the invention provides a kind of LCD space light modulator Gamma curve linear method of adjustment, comprise the following steps:
1) confirms desired linearizing Gamma curve according to the original Gamma curve discrete point of the LCD space light modulator of surveying;
2) through interpolation the series of discrete point of original Gamma curve is carried out match and obtain original Gamma curve's equation;
3) be spaced apart each performance number Y of 1 for corresponding grey scale value X in the desired linearizing Gamma curve; Obtain the pairing new gray-scale value x of this performance number Y based on the resulting original Gamma curve's equation of match, thereby obtain the corresponding relation of gray-scale value X and new gray-scale value x.
Wherein, The corresponding relation of resulting gray-scale value X of step 3) and new gray-scale value x is write image processing module; Said LCD space light modulator is connected with said image processing module and is driven by this image processing module; When through said image processing module LCD space light modulator being write a certain gray level image, this image processing module replaces with new gray-scale value x with each pixel of this gray level image by old gray-scale value X earlier, and the image that will replace to new gray-scale value again writes LCD space light modulator.
Wherein, said step 2) in, the method for employing Lagrange interpolation is carried out match and is obtained original Gamma curve's equation.
Wherein, in the said step 3), adopt the Bolzano dichotomy to find the solution the pairing new gray-scale value x of performance number Y.
The present invention also provides a kind of test macro that is used for the adjustment of LCD space light modulator Gamma curve linear; Its light path comprises successively: testing light source, reflector group, beam expanding lens group, 1/2 wave plate, first Glan prism, liquid crystal light valve, second Glan prism, lens and power meter.
Wherein, said first Glan prism mechanically becomes 45 ° of angles with liquid crystal light valve, and said second Glan prism mechanically also becomes 45 ° of angles with liquid crystal light valve.
Wherein, said first Glan prism and second Glan prism placement that is orthogonal.
Wherein, place left-handed 45 degree rotors between said first Glan prism and the liquid crystal light valve, place dextrorotation 45 degree rotors between the said liquid crystal light valve and second Glan prism.
With respect to prior art, the present invention has following technique effect:
1, the present invention can accomplish the adjustment of Gamma curve linear fast.
2, Gamma curve linear adjustment result of the present invention is very accurate, and the linearity is high.
Embodiment
The present invention is directed to the method that existing adjustment Gamma curve is linear change wastes time and energy, and the unfavorable present situation of effect has proposed a kind of new Gamma curve method of adjustment.At first treating the LCD space light modulator of adjustment tests; Measuring horizontal ordinate is that gray-scale value, ordinate are the series of discrete point of performance number; Obtain curvilinear equation based on these discrete point matches again; Try to achieve then on this curvilinear equation with target Gamma curve in gray scale be spaced apart 1 the corresponding new gray-scale value of performance number, thereby obtain the corresponding relation of new, old gray-scale value and it deposited in the image processing module.LCD space light modulator is connected with this image processing module and is driven by this image processing module.When LCD space light modulator being write a certain gray level image through said image processing module; This image processing module replaces with new gray-scale value with each gray values of pixel points of this gray level image according to resulting corresponding relation new, old gray-scale value earlier, and the image that will replace to new gray-scale value again writes LCD space light modulator.So in use, Gamma curve (horizontal ordinate is that old gray-scale value, ordinate are performance number) is linear change.
Below in conjunction with specific embodiment the present invention is done description further.
Be the Gamma curve of correcting liquid crystal spatial light modulator, at first need accurately measure original Gamma curve data.For this reason; In one embodiment of the present of invention; Built a LCD space light modulator Gamma curve experimental system; The light path of this experimental system is as shown in Figure 1, comprises
testing light source 1,
reflector group 2, beam expanding
lens group 3,1/2 wave plates 4, first Glan prism 5 (Glan prism is the Glan Taylor prism), left-handed 45 degree rotors 6, liquid crystal light valve 7, dextrorotation 45 degree rotors 8, second Glan prism 9,
lens 10 and power meter 11 successively.Wherein,
reflector group 2 comprises two 45 ° of catoptrons, is used for the later stage collimated light path.It is constant that light path is difficult to accomplish keep for a long time, that is to say that light path possibly change in time, and can accurately regulate with collimated light path this moment through
reflector group 2, thereby guarantee Gamma curve experimental system operate as normal.Beam expanding lens group 3 is used to make light beam to enlarge, because the pixel on the liquid crystal light valve 7 has size, the bigger pixel that effectively utilizes of light beam is many more.When liquid crystal light valve 7 carries out Modulation and Amplitude Modulation; The polarization state of light that requires to get into liquid crystal light valve 7 becomes 45 with liquid crystal molecule; So just require Glan prism and liquid crystal light valve 7 that 45 ° of angles mechanically will be arranged; And liquid crystal light valve 7 mechanically is difficult to into 45 ° of placements, so in the present embodiment, let two Glan prisms become 45 ° of placements.But; In experiment, find; 45 ° of catoptrons that domestic several big optical mirror slip manufacturer is produced are that the light effect of 0 ° and 90 ° entering is better to polarization state only; And, cause the light of back level light path output to use to being that the light that
other angle 0 ° and 90 ° gets into has very serious moving back partially except that polarization state.Therefore, respectively place the quartzy rotor of a piece in liquid crystal light valve 7 front and back in the present embodiment, be respectively left-handed 45 degree rotors 6 and dextrorotation 45 degree rotors 8, the polarization state that gets into 45 ° of catoptrons with assurance is 0 ° or 90 °.The 1053nm single longitudinal mode that testing
light source 1 adopts Beijing GK Laser Technology Co., Ltd. to produce is mixed Yb
3+Fiber laser, linear polarization output power are 22mW (the polarization state degree of stability is less than 1%), working stability in the short time, non-mode competition and mode hopping phenomenon.Laser is by single-mode polarization maintaining fiber output (optical fiber core diameter 6 μ m; NA=0.14); Via getting into beam expanding lens group 3 through
reflector group 2 behind the Throlabs aspheric mirror coupling head 1 ' collimation; Make test hot spot bore be extended to
![Figure BDA0000145788080000051](https://patentimages.storage.***apis.com/53/21/b5/d43ff5ba2704f3/BDA0000145788080000051.png)
; Regulate by 1/2 wave plate 4 subsequently and inject polarization state, cooperate Glan Taylor prism thereafter to play the purpose that dynamic adjustments is injected luminous power.The LCX016AL-6 type LCD space light modulator that liquid crystal light valve to be measured adopts Sony Corporation to produce, its effective working area 26.6mm * 20.0mm (1.3 "), resolution 832 * 624 pixels, WV 15V.Quadrature is placed a pair of extinction ratio greater than 2000: 1 Glan Taylor prism before and after the LCD space light modulator, can guarantee that LCD space light modulator possesses the condition of work of High Extinction Ratio, makes the output image ground unrest little, has higher contrast ratio.Light beam becomes 0 ° of direction through preposition Glan prism rear polarizer attitude, is defined as the p polarized light here, and the p polarized light is through behind left-handed 45 ° of quartzy rotors, and polarization state is counterclockwise rotated 45 ° (being-45 ° of directions shown in Fig. 1).At this moment; Crossing the VGA video line by the computer expert is that 255 832 * 624 resolution format pictures transfer to LCD space light modulator with a width of cloth gray scale, and left-handed 45 ° laser is through behind the liquid crystal molecule, its polarization direction half-twist; Polarization state rotates to be 45 ° of directions (45 ° of directions shown in Fig. 1); Behind 45 ° of rotors of dextrorotation, 45 ° of polarization state laser rotate to be 90 ° of polarization state laser, i.e. s light.Because two Glan prism quadratures are placed, s light can see through fully, after being focused on by positive lens at last, uses Thorlabs company model its output power of power meter test as PM1000, has just accomplished a work testing process.When writing different gray-scale value; The WV that adds on each pixel liquid crystal molecule on the LCD space light modulator is also different, and the pixel of 0~255 gray scale is to 0~90 ° of laser polarization state rotation, and (second Glan prism 9 is a polarization splitting prism to cooperate the second rearmounted Glan prism 9; Can play the effect of analyzing device); Just can realize any control,, test laser power output after the corresponding analyzing of each gray scale through writing 0~255 gray scale picture to the light beam spatial intensity distribution.
In the present embodiment, the RMS value that laser beam gets into the power of LCD space light modulator is 0.041%, and change curve is as shown in Figure 2 in time, can regard constant value as.Therefore, can the Gamma curve be substituted along with on LCD space light modulator, writing the curve that the image of gray-scale value from 0~255 change with the power of laser beam after through LCD space light modulator.Present embodiment is in 0~255 gray-scale value, and 10 gray-scale values in every interval write image on LCD space light modulator, the output of Laser Measurement power.When the wavelength of incident laser was 1053nm, the original Gamma curve of measuring LCD space light modulator through above-mentioned experimental system was as shown in Figure 3.
To original Gamma curvature correction, expect new Gamma curve for through (0,0) with (255, straight line A), as shown in Figure 4, the performance number of A when to be on LCD space light modulator, to write gray scale be 255 image wherein, A=2.02mW in the present embodiment.Make the Gamma curve become the straight line through (0,0) and (255,20.21), concrete steps are following:
Step 1, the performance number under the different gray-scale values that write on the LCD space light modulator that will record, promptly horizontal ordinate is that gray-scale value, ordinate are the point that is interrupted of performance number, fits to continuous curve.
Suppose that function y=f (x) is at N+1 point (x
0, y
0) ..., (x
N, y
N) value located is known, its intermediate value x
kGo up distribution at interval [a, b], and satisfy: a≤x
0<x
1<...<x
N≤b, and y
k=f (x
k), then can construct this N+1 of mistake N order polynomial P (x) that puts.French mathematician Joseph Louis Lagrange has been derived the polynomial expression that is called as the Lagrange interpolation:
L wherein
N, kFor based on node:
Lagrange coefficient polynomial expression.Yi Zhi, (an x-x
k) and (x
k-x
k) do not occur at the right-hand member of formula (2).
Can introduce the multiplier mark of (2) formula, be written as:
With (3) substitution (1) formula, can know point (x
j, y
j) polynomial curve y=P
N(x) be:
P
N(x
j)=y
0L
N,0(x
j)+…+y
jL
N,j(x
j)+…+y
NL
N,N(x
j) (4)
Utilize formula (2), (4) to use the Lagrange interpolation horizontal ordinate to be obtained the algebraic equation of Gamma curve as the discrete point match of performance number as gray-scale value, ordinate.According to the equation that match is come out, any performance number on interval [0, A] all can be tried to achieve and its corresponding gray.
Step 2, confirm desired linearizing Gamma curve according to the original Gamma curve discrete point of LCD space light modulator of actual measurement.Fig. 4 shows the Gamma curve that is linear change desired in the present embodiment, and its function expression is:
Y=kX (5)
Wherein
is 0.0079; Y represents power, and X represents gray-scale value.If gray-scale value be spaced apart 1, can try to achieve X easily by formula (5) and go up the corresponding performance number Y of these 256 gray-scale values in [0,255].What need explanation is that the execution sequence of the
step 1 in the present embodiment,
step 2 can exchange.
Step 3, performance number Y is updated to polynomial curve y=P
N(x) be Y=P
N(x), utilize bohr difference promise (Bolzano) dichotomy to try to achieve at curve Y=P
N(x) go up the new gray-scale value x corresponding with Y.Wherein Bolzano dichotomy solution procedure is following: make f (x)=P
N(x)-and Y, because the root x of Equation f (x)=0 makes a=0, b=255, then f (a)=P on [0,255] interval
N(a)-and Y, f (b)=P
N(b)-Y.A) judge that at first a or b are separating of equation,, then separate and be x=a,, then separate and be x=b in like manner if f (b)<Δ if f (a)<Δ (wherein Δ is a solving precision, is an enough little value, for example can make Δ is 0.5).B) if a, b are not equations root; F (a) f (b)<0 then must be arranged; Make
if f (a) f (c)<0 makes b=c; If f (b) f (c)<0 makes a=c.Repeat a), b) till obtaining equation root x.It should be noted that because gray-scale value is an integer, should x be rounded to integer.
Through above-mentioned steps, relying on the Lagrange interpolation is that gray-scale value, ordinate are after the discrete point match of performance number obtains curvilinear equation with horizontal ordinate, utilize the Bolzano dichotomy can try to achieve gray scale among Fig. 4 at interval X be 1 the corresponding new gray-scale value x of performance number Y.In the present embodiment, old gray-scale value X is deposited in the image processing module with the corresponding relation of new gray-scale value x.LCD space light modulator is connected with this image processing module and is driven by this image processing module.When LCD space light modulator being write a certain gray level image through said image processing module; This image processing module replaces with new gray-scale value with each pixel of this gray level image by old gray-scale value earlier, and the image that will replace to new gray-scale value again writes LCD space light modulator.So in use, Gamma curve (horizontal ordinate is that old gray-scale value, ordinate are performance number) is linear change.Utilize aforesaid experimental system, the Gamma curve that remeasures LCD space light modulator is as shown in Figure 5, can see that the Gamma curve that makes new advances is a straight line.
For further verifying the effect of Gamma curve adjustment of the present invention.LCD space light modulator is applied in the beam shaping of large-scale high power laser system; According to classic method adjustment Gamma curve; Compensation back was gathered hot spot and was calculated its near field degree of modulation with CCD at interval in 20 minutes; Similarly; Use the method adjustment Gamma curve of the foregoing description, after compensation, gathered hot spot and calculated its near field degree of modulation with CCD in 20 minutes at interval again, thereby obtain utilizing the described method of classic method and previous embodiment to adjust the time dependent curve of near field degree of modulation of Gamma curve respectively.Fig. 6 shows and finally obtains near field degree of modulation change curve in time; Wherein, Warning triangle and square mark represent to utilize classic method and the described method of previous embodiment to adjust the near-field beam degree of modulation that the Gamma curve obtains respectively; When discovery was adjusted the linear change of Gamma curve relatively good, the near-field beam degree of modulation was little, and stability is high.This is just because of having only when the Gamma curve is linear change, and the strong district of laser changes the influence of compensation not obvious in time, and the faint variation that on LCD space light modulator, writes gradation of image is unlikely to cause laser transmittance bigger fluctuating to occur.
What should explain at last is; Above embodiment is only in order to technical scheme of the present invention to be described but not to its restriction; And on using, can extend to other modification, variation, application and embodiment, think that simultaneously all such modifications, variation, application, embodiment are within the spirit and scope of the present invention.