Background technology
All users who used image scanner experience arrive, and when starting scanner, most scanner all needs the action that could be scanned by the user through after one section warm-up period.
It is that (coldcathode fluorescent lamp CCFL) causes by the employed cold cathode fluorescent lamp of general scanner that scanner needs the phenomenon of warm-up period.
See also Fig. 1, Fig. 1 represents the brightness of cold cathode fluorescent lamp and the curve map between the time.Can see that from Fig. 1 when scanner one start, the brightness curve of fluorescent tube is the state that is in slow rising, wait and be after a period of time that for example T1 second, the brightness of fluorescent tube just can tend towards stability.
Under the unsettled situation of lighting tube brightness, scan the image brilliance data that can make image brilliance data that scanning is obtained and lighting tube brightness be obtained when stablizing very big difference is arranged.Briefly, suppose that the image data brightness value that is obtained should be 100 under the stable situation of fluorescent tube, but as yet not the brightness data that situation obtained of warming-up can be lower than 100, for example 70.Therefore most scanner all can be waited for one section warm-up period, just carries out scanning motion after the brightness stability of fluorescent tube by the time, to obtain correct image data.
Yet most user is very dissatisfied for waiting for that warm-up period just can be carried out scan condition, and therefore how allowing the user needn't wait for that warm-up period can scan becomes an important problem.
Known have the scan method of exempting from warming-up is provided.Most of known ways are to use distinctive circuit design to adjust the accurate position of reference voltage of the analog/digital conversion circuit in the scanner to adjust the brightness of image data.
Yet, this kind need increase circuit so that carry out the adjustment of the voltage quasi position of analog/digital converter by the accurate position of the reference voltage of adjusting the analog/digital converter in the scanner with the method for carrying out the signal of video signal compensation in scanner, increased the cost of scanner and the complicacy of scanner circuitry design.
Summary of the invention
Purpose of the present invention is providing a kind of compensation method of digital image data, can allow scanner not need warming-up can carry out scanning motion.
Another object of the present invention is providing a kind of compensation method of digital image data, and this compensation method is to use the software in the computer to carry out to save and carries out the required cost of this compensation.
Image-scanning system of the present invention comprises:
One image scanner in order to a scanned digital image signal to be provided, has:
One fluorescent tube scans the light source of this scanned usefulness in order to this image scanner to be provided;
The one scan assembly;
One color reference zone is in order to provide a Standard Colors;
One output port is in order to export this digital image signal;
One data processing equipment, be connected in this output port of this image scanner, in order to receive and compensate this digital image signal that this image scanner is produced when this lighting tube brightness is inhomogeneous, this data processing equipment uses the brightness data in this color reference zone that this digital image data is compensated.
The preferably, this data processing equipment is a PC, and this compensation is to carry out with the software in the PC.
Embodiment
See also Fig. 2, it is for the preferred embodiment synoptic diagram of image-scanning system of the present invention.Image-scanning system of the present invention comprises an image scanner 200, has one scan assembly 201, one fluorescent tubes 202, one glass platform 203, one color reference zones 204, one output ports 205.Image scanner 200 is to be connected to a data processing equipment 100 via output port 205.
In the present embodiment, color reference zone 204 is microscler informal vouchers that are fixed on the glass platform 203 and are parallel to glass platform 203 sides, and data processing equipment 100 is personal host computers.Certainly, with reference to not necessarily will being arranged on the glass platform 203 of informal voucher 204, also strip not necessarily for example also can stick a white portion at an end of the signal receiving plane of scan components 201, and the image that allows sensing elements in the scan components 201 can detect white portion gets final product.
Be provided with fluorescent tube 202 in the scan components 201 and in order to the sensor of the signal of video signal that produces scanned document, for example charge coupled cell (charge couple device, CCD).
The image data of scanned document is sent to PC 100 via output port 205, and the software in PC carries out the compensation of image brilliance data.
See also Fig. 3, it is the synoptic diagram of the present invention with reference to informal voucher and sweep trace.The step of the software execution compensation method of the present invention in the PC is described by Fig. 3.
When scanner just starts, because the brightness of fluorescent tube is unstable as yet, therefore the brightness value of some sweep trace can be lower than the brightness value that is obtained under the fluorescent tube stable case, the brightness value of the reference informal voucher of supposing when fluorescent tube reaches steady state (SS) to be obtained is 200, following table is illustrated in the brightness value of the reference
informal voucher 204 that a plurality of sweep traces obtain, and each sweep trace is by the luminance data values after compensating:
Scan line position | Brightness value (W) with reference to informal voucher | Gain | Brightness data after the compensation (Data=raw video luminance data values) |
L1 | 101 | G1 | Data L1×G1 |
L2 | 102 | Data L2×G1 |
L3 | 103 | Data L3×G1 |
... | ... | .... |
L32 | 132(W1) | Data L32×G1 |
L33 | 133 | G2 | Data L33×G2 |
L34 | 134 | Data L34×G2 |
... | ... | ... |
L64 | 164(W2) | Data L64×G2 |
L65 | ... | G3 | Data L65×G3 |
... | ... | ... |
L96 | W3 | Data L96×G3 |
L97 | | G4 | Data L97×G4 |
... | ... | ... |
L128 | W4 | Data L128×G4 |
When scan components 201 scans at the first scanning position L1, also scanned with reference to informal voucher 204 simultaneously, because lighting tube brightness is unstable as yet when scanning in the position of sweep trace L1, therefore the brightness value of the reference informal voucher that is obtained at article one sweep trace L1 has only 101, and also can be lower than normal value at the brightness value of the image data that L1 obtained.Because lighting tube brightness can increase in time gradually, so the brightness value that scan reference informal voucher 204 obtains can increase gradually.
The brightness value of the reference informal voucher that the target brightness value T that prestored in PC 100, this target brightness value T are when fluorescent tube reaches steady state (SS) to be obtained is 200 in this example.
In this example, getting L32 is first scanning position, and the brightness value 132 that will be obtained at L32 scan reference informal voucher is as the first reference brightness value W1, and uses target brightness value T (=200) and this first reference brightness value W1 (=132) and produce one first compensating gain value G1.
G1=T/W1=200/132=1.5151 in this example.
Because W1 is the measurement value of the reference informal voucher that obtained when lighting tube brightness is not stablized, the brightness value T of the reference informal voucher that is produced when W1 and fluorescent tube are stablized knows the numerical value G1 that brightness value of image that lighting tube brightness is produced when not stablizing need be compensated.
Then, the digital image data Data L1 * G1-Data L32 * G1 after the original figure image data Datal L1-Data L32 that is multiplied by L1-L32 respectively with G1 can obtain to compensate.By the image data after the compensation just equal fluorescent tube brightness stability situation under the brightness value of image that obtained.
Then, getting L64 is second scanning position, and with the brightness value 164 that obtained at L62 scan reference informal voucher as the second reference brightness value W2, obtain one second compensating gain value G2 according to the first reference brightness value W1 (=132), the first compensating gain value G1 (=1.5151) and the second reference brightness value W2 (=164), wherein:
G2=G1×[W1/W1+ΔW],ΔW=W2-W1
So G2=200/132 * [132/ (132+ (164-132))]=1.2195.
As this first compensating gain value G1 during greater than this second compensating gain value G2 one preset difference value, preset error value in this example is 0.1, then with the second compensating gain value G2 original figure image data is compensated, and calculates one the 3rd compensating gain value G3.In this example, the first compensating gain value G1 (=1.5151) is 0.2956 greater than the second compensating gain value G2 (=1.2195) and its difference value, therefore with the second compensating gain value G2 (=1.2195) the original figure image brilliance data of L33-L64 are compensated, that is make the original figure image brilliance data of L33-L64 be multiplied by G2 respectively and image brilliance data DataL33 * G2-Data L64 * G2 after obtaining to compensate.
What specify is, because it is not very greatly that the brightness value of each bar sweep trace changes, therefore do not need to calculate the yield value of each bar sweep trace, whenever a plurality of sweep traces carry out the calculating of a yield value in practical operation, compensate with the image brilliance data of same gain to these a plurality of sweep traces again.Be that per 32 sweep traces calculate once gain in this example.
Then calculate the 3rd yield value G3, according to same mode, suppose the 3rd yield value G3=1.123, this moment, the 3rd yield value G3 (=1.1234) was less than the second yield value G2 (=1.2195), therefore with the 3rd yield value G3 the raw data brightness value of L65-L96 was compensated.
Calculate the 4th yield value G4 again, suppose the 4th yield value G4=1.1111.Therefore the 4th yield value G4 this moment the 3rd yield value G3 no better than compensates the digitized video brightness data of the later sweep trace of L97-L128 and L128 with the 4th yield value G4.Or can carry out the Pu to the image data after the L128 again and repay.
As the 4th yield value G4 no better than during the 3rd yield value G3, the variation between the brightness value of the brightness value of expression sweep trace image data afterwards and previous sweep trace image data is minimum, and just lighting tube brightness has been reached stable status.Just do not need to carry out the calculating of next yield value this moment again.
What specify is that the preset difference value between two yield values is not to be fixed as 0.1, but variable.This difference size can be built the person of putting for the requirement of image brilliance and different numerical value is arranged by system.
The step of compensation method that comprehensive above explanation can be concluded digital image data of the present invention is as follows:
(1) the computer 100 interior target brightness value T that set with reference to informal voucher;
(2) computer 100 uses are calculated first yield value G1, the wherein G1=T/W1 from the first reference brightness value W1 of the reference informal voucher of scanner 202;
(3) be multiplied by the original figure image brilliance data of sweep trace L1-L32 to obtain the digitized video brightness data of compensation back L1-L32 with the first yield value G1;
(4) computer 100 receptions are calculated next yield value G2 from the second reference brightness value W2 of the reference informal voucher of scanner 202, wherein
G2=G1×[W1/W1+ΔW],ΔW=W2-W1;
(5) if next yield value less than previous yield value and its difference value during greater than a preset difference value, then compensate the original figure image brilliance data of following 32 sweep traces (that is L33-L64) with next yield value, and calculate another new yield value G3, much at one the time, compensate and no longer carry out the calculating of another yield value up to present calculated yield value and previous yield value with the yield value of present calculating.
Comprehensive above description can be understood, and the present invention is by directly carrying out the purpose that luminance compensation is reached in computing at the numerical data of signal of video signal, and the circuit that does not therefore need to increase scanner can be reached the effect of exempting from warming-up scanning.Simultaneously, the present invention can reduce the required cost of compensation by relatively using software to carry out in the acquisition of different scanning position with reference to the mode of the compensating gain value of each sweep trace that brightness data calculated of informal voucher.
Above embodiment only is explanation usefulness of the present invention, and other all should be considered as falling within the scope of the present invention not breaking away from the modification of being made under the mental condition of the present invention.