Method by correction data parameter adjustment image
Technical field
The present invention relates to the image capture unit in a kind of scanister, particularly a kind of look declines curve to be reduced in the method for image noise in the scanning process, promptly by the method for correction data parameter adjustment image.
Background technology
Traditional chromatic image reading device is that scanning one is placed in the original copy on the transparent scanning platform that is made of glass plate, wherein use a light source projects light on this original copy face, and by receiving reflected light from the original copy face with the image on the acquisition original copy face.When acquisition one chromatic image, image fetch device resolves to primaries with reflected light, promptly red (R), green (G) and blue (B), and this primaries is directed to a photoelectric commutator, for example a charge-coupled device (CCD) (charge-coupled device) (CCD), to convert the analog signal of this primaries to.The analog signal of this primaries converts digital signal to output through analog-digital converter.
In the above-mentioned image fetch device, because the variation, the light source supply intensity variation that change in voltage caused that produce along with the time from the conversion characteristic of the photoelectric conversion device of the intensity variation of light source, definition pixel, and light causes look distortion (shading distortion) phenomenon that declines through the factors such as intensity variation that cause behind the lens.This kind look distortion phenomenon that declines is meant that an image with same background brightness carries out optical scanning through image fetch device, and during by the photoelectric conversion device pick-up image, the electric signal intensity of photoelectric conversion device output is not unanimity.
The fluctuation of the electric signal of photoelectric conversion device output developed at present and the various looks aberration emendation method that declines, so that can be reduced to minimum.By these bearing calibrations so that image fetch device the acquisition one tool same background brightness (consistent shade) image the time, the electric signal of exportable intensity unanimity.These looks aberration emendation method that declines is called the look bearing calibration (shadingcorrection) that declines.
The look preceding execution of image of bearing calibration that decline at acquisition one original copy, it uses decline correction data and by blocking photoelectric conversion device reference black that line scanning the produced correction data that declines of going forward side by side of the reference white color that captures from a reference white through photoelectric conversion device, and the master copy image that is captured is carried out the look correction that declines.
Generally speaking, a reference white is positioned over the outer ad-hoc location of scanning platform, and this reference white is positioned on the optical approach of the optical system that scan manuscript uses.Before original copy was scanned, this reference white was through scanning and capture its image data by photoelectric conversion device, to obtain the look correction data that declines.According to these a little looks correction data that declines, can proofread and correct the master copy image data that read.
Yet, because reference white is not always to be to be in firm user mode or photoelectric conversion device may capture electronic noise, and make decline correction data and reduce of reference white color with reference to the decline confidence level of correction data of black, therefore, can not all carry out the correction that declines of optimized look at every turn.Thus, promptly can't carry out the correction that declines of suitable look to picked image.
With reference to figure 1, represent the process flow diagram of traditional adjustment of image.According to this process flow diagram, in step 1 scan reference in vain to obtain image data; Step 2 is calculated this image data and can be obtained the look curve that declines; Step 3 according to step 2, can obtain corresponding to the correction data (also can be called look decline correction data) of each sensing component; Step 4 is stored to the look curve that declines to proofread and correct in the internal memory; Step 5 scans file and exposes; Step 6 reads decline curve and correspond to each sensing component of look by proofreading and correct in the internal memory; Step 7 is calculated this look curve that declines; And step 8, the last image data of proofreading and correct of output.
According to above description, only at proofreading and correct via the white data of scan reference, therefore the signal of being exported still has error to exist between the image of original image and output.Therefore, the problem of its noise and value of magnification (gain) still is present in the process of file scan.
Summary of the invention
Fundamental purpose of the present invention is to overcome the deficiencies in the prior art and defective, provides a kind of method in order to improve the image quality of output.
Another purpose of the present invention provides a determination methods to obtain correct location of pixels and output to improve the image output quality.
A further object of the present invention provides a standard value and two adjacent pixels relatively, in order to the location of pixels of judgement image output, and reduces image noise.
According to above-described purpose, the method that the invention provides a kind of judgement is in order to obtain best image output quality, be a kind of method by correction data parameter adjustment image, first scan reference was in vain to obtain an image data before its method was included in scanning document.Then, by calculating look that this image data corresponds to each sensing component with generation decline curve, noise size and brightness data.Then, look is declined curve (or standard value) backfill and inputing in the correction database.Next, utilize the scanister scanning document to obtain another image data and same again, this image data also corresponds to each sensing component, and reads look in the correction database curve that declines simultaneously.Next, utilize a determination methods with the difference between two pixels judging the adjacent position, if difference less than standard value, is then done two pixel values of adjacent position mean value and exported this mean value; Otherwise, with the pixel value output of this position.Export again via the correcting image data behind the aligning step at last.
Description of drawings
Fig. 1 is for using traditional technology, the process flow diagram of each step when the correcting image data;
Fig. 2 is disclosed technology according to the present invention, the process flow diagram of each step when the correcting image data;
Fig. 3 is disclosed technology according to the present invention, utilizes a determination methods to proofread and correct the calcspar of revising data.
Symbol description among the figure
1-8 tradition correcting image process flow diagram
10-19 correcting image data flowchart
20 linear image capture units
21 irradiation scanister
22 arithmetic units
23 conversion equipments
24 application apparatus
25 storage devices
26 apparatus for temporary storage
27 correction computing devices
28 comparison means
29 transmitting devices
30 main frames
31 output units
Embodiment
Some embodiments of the present invention can be described in detail as follows.Yet except describing in detail, the present invention can also be widely implements at other embodiment, and scope of the present invention do not limited, and its scope with claims is as the criterion.
Fig. 2 is that a process flow diagram is used for illustrating the method that discloses the correcting image data according to the present invention.Step 10 is illustrated in before the scanning document, and first scan reference white (white standard plate) is to obtain first image data.Then, utilize a calculation mode to produce look decline curve (shading curve), noise data (noise level) and brightness data (brightness data) in step 11 expression, wherein above-mentioned these data all correspond to each sensing component, and wherein sensing component can be Charged Coupled Device (CCD; Charge-coupled device).Next, step 12 is a principal character step of the present invention, and the look curve that declines is backfilled to and proofreaies and correct in the internal memory (calibration memory) and be stored in the correction database (calibration database).In most preferred embodiment of the present invention, standard value also simultaneously be backfilled to the correction internal memory.Then, step 13 after the look that obtains reference white declines curve, scans file and exposes.Step 14 similarly also can correspond to each sensing component via the resulting image data of scanning document, and reads the curve that declines remarkably by proofreading and correct in the internal memory simultaneously.Step 15 is utilized decline curve and export corresponding correcting image signal of this look of a correction calculation.
Best enforcement in the profit of the present invention, standard value can be tried to achieve by following method: the first, standard value (Standard (I)) can be done setting by the white resulting data of scan reference, and therefore, standard value can be set at constant; The second, standard value can be tried to achieve by the decline standard deviation (meansquare of deviation) of curve of look; Three, standard value can be different along with different location of pixels, so standard value can be redefined for setting value (default) before scanning document; Four, standard value can be by scan reference white after resulting data, for example brightness data or the like inference and getting.
Then, step 16 to step 18 is another key character of the present invention, step 16 utilize a determination methods with the absolute value of judging two pixel Pixel (I) that the position is adjacent and the difference between the Pixel (I+1) whether less than standard value, if difference is less than standard value, promptly | Pixel (I)-Pixel (I+1) |<standard value, because this difference is produced by noise, then with average after two adjacent pixels additions, its mean value is the location of pixels for exporting then, that is (Pixel (I)+Pixel (I+1))/2=PixelOut (I) (step 17); If the difference overgauge value between two pixels of adjacent position then directly should locational this pixel value output, i.e. PixelOut (I)=Pixel (I) (step 18).Via above determination methods, can avoid because noise produces the error on the location of pixels.At last, step 19 will be through the output of the correcting image data after the aligning step, to obtain best image output quality.
With reference to figure 3, represent the calcspar of linear image capture unit 20 image outputs.In calcspar, linear image capture unit 20 utilizes 21 irradiations of irradiation scanister and scan reference to obtain first image data in vain also can produce simultaneously a value of magnification (gain).Then, first image data is sent to conversion equipment (converting means) 23 via the first image data computing being obtained after arithmetic unit (computing means) 22 computings decline curve, noise size and brightness data etc. of look via transmitting the interface, for example, analog digital conversion system (ADC; Analogy digitalconvert system), convert first analog signal to first digital signal.Next, this first digital signal is sent to application apparatus (application means) 24, as uses special integrated circuit (ASIC; Application specific integrated circuit).In using special integrated circuit 24, have many chipsets (chip set) in order to handle the needed function of user.In addition, when if the memory size of scanister can't be handled the lump-sum image data, then first image data partly can be sent in the apparatus for temporary storage 26 and store, up to using after special integrated circuit 24 can handle the untreated data of residue, again with image data by reading out processing in the apparatus for temporary storage 26.Then, first image data being backfilled to storage device (storingmeans) 25 again and storing, can be correction internal memory in the correction database at this storage device 25.
Next, utilize 21 scannings of irradiation scanister and exposure file to obtain second image data again.As the above, same second image data with file is sent to conversion equipment 23, converts second image data to second digital signal by second analog signal.Then, again second digital signal of file is sent to application apparatus 24.Next, be sent to second digital signal of file in the storage device 25 and, and read the look that is stored in the storage device 25 curve that declines simultaneously corresponding on each sensing component.Then, the image signal that utilizes correction computing device 27 to export with calculating in the mode of correction calculation.Then, be one of feature of the present invention, correspond to the pixel of each position on each sensing component by the resulting image data of scanister 21 scan-images, and utilize comparison means 28 to do one with standard value and judge relatively to obtain correct image output data.The output valve of its determination methods decision image.Therefore, can judge the image value of output according to following computer program:
If|Pixel(I)-Pixel(I+1)|<Standard
Then?PixelOut(I)=[Pixel(I)+Pixel(I+1)]/2
Else?PixelOut(I)=Pixel(I)
End
Wherein, Pixel (I) and Pixel (I+1) expression pixels in different positions value.
Therefore, according to above correction calculation, we can obtain the image data of a correct location of pixels.Then, again image data is sent to main frame (host) 30 by transmitting device (interface) 29, wherein transmitting device 29 can be the main frame 30 that parallel serial port (parallel port), universal serial bus (Universal Serial Bus), minicomputer system interface (SCSI, SmallComputer System Interface) or the host-host protocol that utilizes infrared transmission or the like now are sent to image data or signal personal computer.Next, again image data is sent to output unit 31, as screen (monitor), printer (printer) or personal digital assistant (PDA, personal digital assistant) image data with the reading scan object.
According to above description, utilize a determination methods to handle the correcting image data and make the variation of image can not cause ambiguous image data, and utilize average method that the pixel data of two adjacent positions on average can be reduced the signal quality that caused by noise than (S/N ratio).
The above is preferred embodiment of the present invention only, is not in order to limit protection scope of the present invention; All other do not break away from the equivalence of being finished under the disclosed spirit and changes or modification, all should be included in the scope of claims.