The bearing calibration of scan-image
The invention relates to a kind of bearing calibration of scan-image signal, be meant a kind of method of coming the scan-image of correction target figure with the micro-stepping brightness correction parameter of reference pattern especially.
Present device of image scanning is when carrying out the scanning of figure and picture, be to cooperate a travel mechanism to carry out optical scanner to a file to be scanned with the one scan light source, this scanning light source is after predetermined light path mechanism reflection, receive the light source of this scanning again by a condenser lens and an Image sensor apparatus (CCD), so the image of file scan to capture becomes digital image data.
For the travel mechanism that makes device of image scanning moves, generally can adopt stepper motor to be used as driving the power source that travel mechanism moves.The Costco Wholesale of stepper motor can its step number that rotates a circle decide haply, and generally speaking, step number is many more, represents its resolution high more, but its price is also high more.Therefore, when being applied to the equipment of device of image scanning for example, tend to drive this travel mechanism in the mode of 1/2 or 1/4 micro-stepping.
Desirable, the image that scanning obtains through device of image scanning should be in full accord with the image of original, but in the application scenario of reality, often be subjected to all multifactor influences, and the image that makes this scanning obtain can't reach desirable boundary.For example; former stating in the application scenario that stepper motor is used as driving the power source that travel mechanism moves; be regular meeting because this stepper motor when each stepping; travel mechanism's displacement is inconsistent; and making Image sensor apparatus in image brightness value (brightness record value) difference of each regional institute sensing, the image that has so promptly caused scanning to obtain loses the problem of difference.This phenomenon can cause the distortion of each color R, G, B equally in the chromatic image scanning means.
Therefore, main purpose of the present invention provides a kind of bearing calibration of scan-image, and it can be proofreaied and correct the signal of video signal brightness value at device of image scanning when a targeted graphical is carried out image scan.
Another object of the present invention provides a kind of bearing calibration of scan-image, improving in the device of image scanning, and inhomogeneities and unsteadiness that the stepper motor micro-stepping drives, thus effectively promoted the quality of image scan.
Another object of the present invention provides a kind of bearing calibration of scan-image, so that one with stepper motor become drive power source device of image scanning when a targeted graphical is carried out the scanning of image, can be proofreaied and correct the signal of video signal brightness value of each micro-stepping.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of bearing calibration of scan-image, nationality moves the prescan of moving of body and a reference pattern by a device of image scanning, and in order to proofread and correct this device of image scanning obtained signal of video signal when a targeted graphical is scanned, this method comprises the following steps:
(a) preparation one reference pattern;
(b) drive this mobile body with a stepper motor according to predetermined micro-stepping value micro-stepping and move, so that this reference pattern is scanned, and obtain the signal of video signal of this reference pattern by the Image sensor apparatus of this device of image scanning;
(c) according to the calculating of comparing of this reference pattern signal of video signal obtained and a signal of video signal ideal value, to obtain the brightness correction parameter of each micro-stepping;
(d) when carrying out the image scan of targeted graphical, the signal of video signal of each micro-stepping is proofreaied and correct with this brightness correction parameter in the targeted graphical that scanning is obtained.
Wherein, the predetermined micro-stepping value among the step b is 1/4th step values of stepper motor.The brightness correction parameter of each micro-stepping is the desirable brightness value in this micro-stepping and the difference of Image sensor apparatus actual brightness value of obtained signal of video signal when reference pattern is scanned among the step c.Step c comprises that more one is stored in the step of a memory with this brightness correction parameter after obtaining the brightness correction parameter of each micro-stepping.After the steps d, comprise that more one will be somebody's turn to do the step that the targeted graphical signal of video signal after overcorrect is exported.
Described desirable brightness value is the five equilibrium brightness value of reference pattern at mobile body direct of travel.The brightness correction parameter of each micro-stepping comprises the brightness correction parameter of R, G, each color of B.
The bearing calibration of scan-image provided by the present invention, because this method has prepared a reference pattern in advance, and with micro-step drive mode this reference pattern is scanned by stepper motor, obtain the signal of video signal of this reference pattern simultaneously by the Image sensor apparatus of device of image scanning, again according to the calculating of comparing of this reference pattern signal of video signal obtained and a signal of video signal ideal value, to obtain the brightness correction parameter of each micro-stepping, therefore, can be when carrying out the image scan of targeted graphical, the signal of video signal of each micro-stepping is proofreaied and correct with this brightness correction parameter in the targeted graphical that scanning is obtained.Thereby improved the stepper motor micro-stepping drives in the device of image scanning inhomogeneities and unsteadiness, and promoted the quality of image scan effectively.
Relevant detailed description of the present invention and technology contents, conjunction with figs. is described as follows:
Fig. 1 is the normal place point that shows reference pattern used in the present invention and several desirable micro-steppings;
Fig. 2 is when being presented at actual image scan, the true location point of the reference pattern intersection of each micro-stepping;
Fig. 3 is presented at the correction parameter values that each place, micro-stepping boundary produces;
Fig. 4 is a control flow chart of the present invention.
The bearing calibration of scan-image of the present invention is to cooperate a reference pattern with the travel mechanism in the scanning means, this reference pattern is scanned with micro-step drive mode (for example 1/2 micro-stepping or 1/4 micro-stepping) by stepper motor, and obtain the signal of video signal of this reference pattern by the Image sensor apparatus of this device of image scanning.Then according to the calculating of comparing of this reference pattern signal of video signal obtained and a signal of video signal ideal value, to obtain the brightness correction parameter of each micro-stepping.Obtained brightness correction parameter can be stored in the memory of scanning means, when carrying out the image scan of a targeted graphical again, carries out the correction of image according to this in the future.
When the image scan operation of carrying out targeted graphical, by this device of image scanning this targeted graphical is scanned, and obtain the signal of video signal of this reference pattern by the Image sensor apparatus in the device of image scanning.Then, the signal of video signal of each micro-stepping is proofreaied and correct with the brightness correction parameter of correspondence in the targeted graphical that scanning is obtained, and the image after will proofreading and correct is again exported via output device.
Wherein the brightness correction parameter of this each micro-stepping is the desirable brightness value in this micro-stepping and the difference of Image sensor apparatus actual brightness value of obtained signal of video signal when reference pattern is scanned, and this brightness correction parameter comprises the brightness correction parameter of R, G, each color of B, and should the ideal brightness value be the five equilibrium brightness value of reference pattern at mobile body direct of travel.
See also Fig. 1, shown in Figure 2, the modern driving with stepper motor 1/4th micro-steppings is example, its scanning means is when scanning a reference pattern 1, and its desirable step-scan image should (being y direction) has three normal place point X1, X2, X3 in the scanning direction at this reference pattern 1.But when the image scan of reality, because the instability problem of stepper motor when the driving mobile module moves makes that the brightness value of Image sensor apparatus CCD institute's sensing and record is different.According to this characteristic, can find out true location point X1 ', X2 ', X3 ' at the intersection of each micro-stepping.
Therefore,, can obtain the brightness correction parameter of each micro-stepping, consult shown in Figure 3 according to this ideal value and actual scanning result:
The brightness correction parameter C1=X1-X1 ' of first micro-stepping;
The brightness correction parameter C2=X2-X2 ' of second micro-stepping;
The brightness correction parameter C3=X3-X3 ' of the 3rd micro-stepping.
That is, the brightness correction parameter of each micro-stepping is the desirable brightness value in this micro-stepping and the difference of Image sensor apparatus actual brightness value of obtained signal of video signal when reference pattern is scanned, and should the ideal brightness value be the five equilibrium brightness value of reference pattern 1 at mobile body direct of travel.After obtaining the correction parameter of aforesaid each micro-stepping, can when formal document image scanning, proofread and correct the brightness value of each color (RGB) with this correction parameter.
Before not proofreading and correct, a certain color the brightness value of first micro-stepping (promptly 1/4 going on foot) be Yi (Y1, Y2, Y3...Yn), Y1 wherein, Y2, Y3..., Yn represent the brightness value of each scan line, the result after then can obtaining proofreading and correct is Yi (X1-X0-C1)/(X1-X0)
In an embodiment of the present invention, the figure of reference pattern 1 is that an oblique diagonal separates out a black graphics zone and a white graphics field, and the figure that also can adopt other certainly is as reference pattern.
Consult shown in Figure 4, be control flow chart of the present invention, it is at first to prepare a reference pattern (step 100), carry out the generation of the scanner uni correction parameter of this reference pattern then, be to move (step 101 according to the mobile body of predetermined micro-stepping value (for example 1/2 micro-stepping or 1/4 micro-stepping) driven sweep device at this moment with the stepper motor of scanning means, so that this reference pattern is scanned, and obtaining the signal of video signal (step 102) of this reference pattern by the Image sensor apparatus of this device of image scanning, this step also can comprise the step that this signal is stored in the memory of scanning means.
Then in step 103, according to the calculating of comparing of this reference pattern signal of video signal obtained and a signal of video signal ideal value, to obtain the brightness correction parameter of each micro-stepping.Wherein the brightness correction parameter of this each micro-stepping is the desirable brightness value in this micro-stepping and the difference of Image sensor apparatus actual brightness value of obtained signal of video signal when reference pattern is scanned, and this brightness correction parameter comprises the brightness correction parameter of R, G, each color of B, and should the ideal brightness value be the five equilibrium brightness value (among this embodiments be the quartering) of reference pattern at mobile body direct of travel.Obtained brightness correction parameter can be stored in the memory of scanning means, when carrying out the image scan of a targeted graphical again, carries out the correction of image according to this in the future.
When formally carrying out the image scan of targeted graphical (step 104), generally the signal of video signal that can earlier scanning be obtained is stored (step 105) earlier, then in step 106, the signal of video signal of each micro-stepping is proofreaied and correct with the brightness correction parameter of each obtained in the abovementioned steps 103 micro-stepping in the targeted graphical that scanning is obtained.At last, promptly can be exported (step 107) by output device through overcorrect signal of video signal later
Except order execution in step 101 as described above to 103, the present invention also can be directly be stored in the image data of a known reference figure in the computer that (step 108 is summarized the brightness correction parameter of this scanning means of adaptation then in step 103.When formally carrying out the image scan of targeted graphical (step 104), at first signal of video signal is stored (step 105) earlier, then in step 106, the signal of video signal of each micro-stepping is proofreaied and correct with the brightness correction parameter of each obtained in the abovementioned steps 103 micro-stepping in the targeted graphical that scanning is obtained.At last, promptly can be exported (step 107) by output device through overcorrect signal of video signal later.
Wherein the brightness correction parameter of this each micro-stepping is the desirable brightness value in this micro-stepping and the difference of Image sensor apparatus actual brightness value of obtained signal of video signal when reference pattern is scanned, and this brightness correction parameter comprises the brightness correction parameter of R, G, each color of B, and should the ideal brightness value be the five equilibrium brightness value (among this embodiments be the quartering) of reference pattern at mobile body direct of travel.Obtained brightness correction parameter can be stored in the memory of scanning means, when carrying out the image scan of a targeted graphical again, carries out the correction of image according to this in the future.
In sum, the bearing calibration of scan-image provided by the present invention, the true industrial utilization of tool height can reach the effect of expection.