Differentiate the method for image dynamic range
Technical field
The present invention relates to a kind of method of differentiating the image dynamic range, particularly a kind of overlapping area of utilizing pixel corresponding brightness value to distribute is differentiated the method for image dynamic range.
Background technology
Optical scanner is used for pick-up image and digitized image.For instance, optical scanner is the most normal is used to capture literal or other image of printing or being printed on the paper of plane.Then picked image be digitized and be stored or further by the character recognition software processes to produce the literal of ASCII ASCII.Typical optical scanner comprises a light source, be linearly aligned photoelectricity sensing component (being generally Charged Coupled Device CCD, CMOS transistor CMOS and CIS), an analogue amplifier (Analog Amplifier), an analog-digital converter, a control unit (Controller) and memory subassembly.
The photoelectricity sensing component comprises and is linearly aligned Charged Coupled Device CCD in a large number.The light signal of the single pixel of each Charged Coupled Device CCD fechtable image.The Charged Coupled Device CCD of one permutation is the light signal of a column of pixels of fechtable image then.By sweeping away whole part of file, Charged Coupled Device CCD can receive the image light signal of whole part of file.
The process that reflection self-scanning file or the light signal that penetrates the self-scanning file convert digital signal to comprises three steps.At first, each photoelectricity sensing component can convert received light signal to electric charge, and the quantity of electric charge depends on the time of light intensity and exposure.The electric charge that next photoelectricity sensing component is produced can convert aanalogvoltage to by analogue amplifier.Last aanalogvoltage can simulated the digital quantizer digitlization, handles and is stored in the memory subassembly so that carry out digitized video.
The image that scanner produces an object or a checking list (Test Chart) has a plurality of density unit, and all there is the distribution of a pixel corresponding brightness value each density unit.Being distributed with of one pixel corresponding brightness value of each density unit is partly overlapping, so that may make the density unit be difficult to differentiate.Be to decide the density cells D traditionally with standard deviation
nWith D
N+1Whether distinguishable, promptly work as D
N-1/ 4S
n>D
N+1+ 1/4S
N+1The time, the density cells D
nWith D
N+1For distinguishable.But decide the whether distinguishable shortcoming that still has of density unit with the standard difference of two squares.For example, when barrier was on object or checking list image, the image that the method for the standard difference of two squares is subjected to barrier easily disturbed.
Therefore the method that is necessary very much to propose a kind of resolution image dynamic range of novelty overcomes the shortcoming of conventional method, and the present invention just can satisfy this demand.
Summary of the invention
A purpose of the present invention is for providing a kind of method of differentiating the image dynamic range, and the method can keep electronics and light path are caused in the scanner real noise and can get rid of again and be scanned the image incidental information that foreign material caused on the object.
In order to reach above-mentioned purpose, the present invention proposes a kind of method of differentiating the image dynamic range, and the method for this resolution image dynamic range comprises following steps.At first compare the image density cells D
N-1With D
nIn have the same brightness value pixel count.Then calculate and get the image density cells D
N-1With D
nIn have the same brightness value the less person of pixel count.Then with each brightness value image density cells D
N-1With D
nThe less person of pixel count add up and image density cells D relatively
N-1With D
nThe ratio R and a specification value R of the less person of pixel count sum and total pixel number
sWhen this above-mentioned ratio R less than this specification value R
sThe time, the image density cells D
N-1With D
nFor distinguishable.Be not less than this specification value R and work as this above-mentioned ratio R
sThe time, the image density cells D
N-1With D
nFor differentiating.
Whether differentiate the pixel corresponding brightness value distribution overlapping area that the image dynamic range can also the image density unit decides the image density unit distinguishable.At first must provide the image density cells D
N-1With D
nPixel corresponding brightness value distribute, calculate as the density cells D
N-1With D
nPixel corresponding brightness the value overlapping area and the comparison image density cells D that distribute
N-1With D
nPixel corresponding brightness the value overlapping area and the specification value that distribute.When this above-mentioned overlapping area during less than this specification value, the image density cells D
N-1With D
nFor distinguishable.And when this above-mentioned overlapping area is not less than this specification value, the image density cells D
N-1With D
nFor differentiating.
The simple declaration of above-mentioned relevant invention and following detailed description only are example and unrestricted.Other equivalence that does not break away from spirit of the present invention changes or modifies within the scope of the claims of the present invention that all should be included in.
Description of drawings
Fig. 1 shows the distribution map of pixel corresponding brightness value in the image of an object or a checking list;
Fig. 2 shows the flow chart of a preferred embodiment of the present invention.
Symbol description among the figure
102 compare the image density cells D
N-1With D
nIn have the same brightness value pixel count
104 calculate and get the image density cells D
N-1With D
nIn have the same brightness value the less person of pixel count
106 with each brightness value image density cells D
N-1With D
nThe less person of pixel count add up
108 compare the image density cells D
N-1With D
nThe ratio R and a specification value R of the less person of pixel count sum and total pixel number
s
Whether 110 decision R are less than R
s
112 if R less than R
s, image density cells D then
N-1With D
nFor distinguishable
114 if R is not less than R
s, image density cells D then
nWith D
N+1For differentiating.
Embodiment
In this mandatory declaration is that the method for resolution image dynamic range described below only comprises necessary assembly and step.The present invention simultaneously can implement by various existing softwares and hardware, only mentions at this and understands System Operation mode required for the present invention.Below accompanying drawing according to the present invention is described in detail, please notes that icon is simple form.
With reference to shown in Figure 1, show the distribution map of pixel corresponding brightness value in the image of an object or a checking list (Test Chart).The image density cells D
N-1, D
nWith D
N+1The partly distribution of overlapping pixel corresponding brightness value is separately arranged respectively.The image density cells D
N-1The brightness value that is distributed in of pixel corresponding brightness value be that 1 pixel was only arranged in 3 o'clock, and be to have in 6 o'clock to surpass 8000 pixels at most at brightness value, its maximum brightness value that is distributed in of its pixel corresponding brightness value is that 186 pixels were then arranged in 8 o'clock.And the image density cells D
N-1The pixel brightness value of most of pixel then between brightness value 4 between the brightness value 8.And the image density cells D
nThe brightness value that is distributed in of pixel corresponding brightness value be that 21 pixels were only arranged in 4 o'clock, and be to have in 7 o'clock to surpass 6500 pixels at most at brightness value, its maximum brightness value that is distributed in of its pixel corresponding brightness value is that 15 pixels were then arranged in 9 o'clock.And the image density cells D
nThe pixel brightness value of most of pixel then between brightness value 5 between the brightness value 8.And the image density cells D
N+1The brightness value that is distributed in of pixel corresponding brightness value be that 1 pixel was only arranged in 4 o'clock, and be to have in 8 o'clock to surpass 6500 pixels at most at brightness value, its maximum brightness value that is distributed in of its pixel corresponding brightness value is that 15 pixels were then arranged in 10 o'clock.And the image density cells D
N+1The pixel brightness value of most of pixel then between brightness value 6 between the brightness value 9.Because image density cells D
N-1, D
nWith D
N+1The distribution of pixel corresponding brightness value partly overlapping each other, so image density cells D
N-1, Dn and D
N+1Between whether can differentiate and depend on the image density cells D
N-1, D
nWith D
N+1Between the overlapping area of distribution of pixel corresponding brightness value.When the image density cells D
N-1, D
nWith D
N+1Between the overlapping area of distribution of pixel corresponding brightness value when big more, the image density cells D
N-1, D
nWith D
N+1Between just difficult more resolution.By comparing and calculating the pixel count that the image density unit has the same brightness value, whether distinguishablely can determine between the image density unit.Setting the overlapping area critical value that the pixel corresponding brightness value of an image density unit distributes, can this critical value be an image distinguishable standard whether of an object or a checking list.
Table one show image density cells D
N-1, D
nWith D
N+1Between the distribution of pixel corresponding brightness value, and image density cells D
N-1, D
nWith D
N+1Between the comparison and the result of calculation of the overlapping area that distributes of the pixel corresponding brightness value of image density unit.By comparing and calculating the pixel count that adjacent two image density unit have the same brightness value, can draw the total pixel number that makes adjacent two image density unit differentiate with same brightness value.As shown in Table 1, by calculating and adding up the less person of pixel count that adjacent two image density unit have the same brightness value, can get the overlapping area that adjacent two image density unit pixel corresponding brightness values distribute.In Table 1, if the overlapping area critical value that the pixel corresponding brightness value of setting of image density unit distributes is 7500, that is the overlapping area that distributes when pixel corresponding brightness value can't differentiate the image density unit during greater than this value, be standard with this critical value 7500 then, the image density cells D
N-1With D
nFor can not differentiating, and D
nWith D
N+1For distinguishable.Whether decision image density unit distinguishable also can be the ratio of total pixel number and all pixel counts in the overlapping area that pixel corresponding brightness value distributes.For instance, this critical value is 7500/13926 or 0.5386.The image density cells D
N-1With D
nBetween overlapping area in the ratio of total pixel number and all pixel counts be 9700/13926 or 0.6966, so image density cells D
N-1With D
nFor not differentiating.The image density cells D
nWith D
N+1Between overlapping area in the ratio of total pixel number and all pixel counts be 7407/13926 or 0.5319, so image density cells D
nWith D
N+1For distinguishable.
Brightness value |
D
n-1Pixel count
|
D
nPixel count
|
D
n+1Pixel count
|
Min(D
n-1∶D
n)
|
Min(D
n∶D
n+1)
|
3 |
1 |
0 |
0 |
0 |
0 |
4 |
219 |
21 |
1 |
21 |
1 |
5 |
1965 |
454 |
8 |
454 |
8 |
6 |
8134 |
5618 |
639 |
5618 |
639 |
7 |
3421 |
6784 |
5710 |
3421 |
5710 |
8 |
186 |
1034 |
6655 |
186 |
1034 |
9 |
0 |
15 |
910 |
0 |
15 |
10 |
0 |
0 |
3 |
0 |
0 |
Amount to |
13926 |
13926 |
13926 |
9700 |
7407 |
Table one
Fig. 2 shows the flow chart of a preferred embodiment of the present invention.The image density unit can following steps be differentiated.At first in step 102, compare the image density cells D
N-1With D
nIn have the same brightness value pixel count.Then in step 104, calculate and get the image density cells D
N-1With D
nIn have the same brightness value the less person of pixel count.Then in step 106, with each brightness value image density cells D
N-1With D
nThe less person of pixel count add up.Then in step 108, compare the image density cells D
N-1With D
nThe ratio R and a specification value R of the less person of pixel count sum and total pixel number
sThen in step 110, whether R is less than R in decision
sThen in step 112, if R is less than R
s, image density cells D then
N-1With D
nFor distinguishable.Then in step 114, if R is not less than R
s, image density cells D then
nWith D
N+1For differentiating.
Above-mentioned relevant detailed description of the invention only is an example and unrestricted.Other equivalence that does not break away from spirit of the present invention changes or modifies within the scope of the claims of the present invention that all should be included in.