CN106412380B - A kind of image compensation method and device - Google Patents
A kind of image compensation method and device Download PDFInfo
- Publication number
- CN106412380B CN106412380B CN201610836702.2A CN201610836702A CN106412380B CN 106412380 B CN106412380 B CN 106412380B CN 201610836702 A CN201610836702 A CN 201610836702A CN 106412380 B CN106412380 B CN 106412380B
- Authority
- CN
- China
- Prior art keywords
- window
- signal
- preset parameter
- column
- original signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
- H04N5/21—Circuitry for suppressing or minimising disturbance, e.g. moiré or halo
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the invention discloses a kind of image compensation method and devices, the background value of original signal is calculated by the effective window of determination and useful signal, and then calculate the offset of original signal, it is final to determine and export thermal compensation signal, solving existing technology needs lots of memory to save penalty coefficient, and the technical issues of needing additional temperature sensor, increasing system cost and operation difficulty.The method comprise the steps that the preset parameter according to determined by the original signal of the scan image got, which calculates window, carries out the determination of effective window, and the corresponding useful signal of each effective window is calculated according to determining effective window;The calculating of the corresponding background value of the original signal is carried out according to the calculated useful signal;The calculating that window carries out the background reference values of the original signal is calculated according to the background value and the preset parameter;The corresponding thermal compensation signal of the original signal is determined according to the background reference values and the background value.
Description
Technical field
The present invention relates to field of image processing field more particularly to a kind of image compensation methods and device.
Background technique
The line scan sensors such as CIS (Contact Image Sensor) are in necks such as scanner, intelligent sorting identification instruments
It is very widely used in domain.Under different application scenarios, temperature environment locating for sensor is different, and pushing away with the time
Shifting can cause it is sensor ageing cause its characteristic curve to change, actual signal collected and ideal situation generation it is biggish
Deviation, such as the chip line between senser element.In case of batch in banknote identifying system, can be caused to misidentify phenomenon, greatly
The reliability of system is reduced in degree;If occurring in scanner, it will lead to image fault and can not receive.Thus it is guaranteed that
The signal quality acquired under varying environment is of great significance.
In existing technology, the most commonly used is first pass through in advance calibration paper obtain image different location penalty coefficient, and
Penalty coefficient under the penalty coefficient of different location and different temperatures is saved in memory, first passes through temperature when acquiring signal
Equal sensors obtain current environment, are then compensated according to the penalty coefficient under the different temperatures environment using each position saved
Image, to determine using the penalty coefficient under which kind of temperature environment.
However, existing technology not only needs lots of memory to save these penalty coefficients, and additional temperature is needed to pass
Sensor increases system cost and operation difficulty.
Summary of the invention
The embodiment of the invention provides a kind of image compensation method and devices, are calculated by the effective window of determination and useful signal
The background value of original signal, and then the offset of original signal is calculated, it is final to determine and export thermal compensation signal, it solves existing
Technology need lots of memory to save penalty coefficient, and need additional temperature sensor, increase system cost and operation is difficult
The technical issues of spending.
The embodiment of the invention provides a kind of image compensation methods, comprising:
The determination that window carries out effective window is calculated according to preset parameter determined by the original signal of the scan image got,
And the corresponding useful signal of each effective window is calculated according to determining effective window;
The calculating of the corresponding background value of the original signal is carried out according to the calculated useful signal;
The background reference values of the original signal are carried out according to the information that the background value and the preset parameter calculate window
Calculating;
The corresponding thermal compensation signal of the original signal is determined according to the background reference values and the background value.
Optionally,
The determination that window carries out effective window is calculated according to preset parameter determined by the original signal of the scan image got,
And the corresponding useful signal of each effective window is calculated according to determining effective window specifically:
The original signal of scan image is obtained, creates and initiation parameter calculates window;
The data volume and the data volume for including by all tonal gradations that the parameter calculates window are in the parameter meter
The accounting for calculating window calculates resampling threshold value;
The resampling threshold value is judged, if resampling threshold value, in presetting range, it is to have which, which calculates window,
Window is imitated, is otherwise invalid window;
Determine that signal in effective window in the resampling threshold range is useful signal, otherwise to believe in vain
Number.
Optionally,
The calculating of the corresponding background value of the original signal is carried out according to the calculated useful signal specifically:
Obtain the number of each effective window each column useful signal and the cumulative of each column useful signal and;
The sum for calculating the cumulative sum of same column useful signal in each effective window, then effectively believes divided by same column in each effective window
Number purpose and, by the background value of the Shang dynasty table original signal column.
Optionally,
The background reference values of the original signal are carried out according to the information that the background value and the preset parameter calculate window
Calculating specifically:
Then the background value summation of the original signal each column is calculated to the width of window divided by preset parameter, will
Background reference values of the quotient out as the entire original signal.
Optionally,
The corresponding thermal compensation signal of the original signal is determined according to the background reference values and the background value specifically:
Subtracting original signal each column background value with the background reference values of entire signal indicates the offset of the column;
The offset of each column and all and its same column signal are summed to obtain thermal compensation signal, output saves compensated letter
Number.
The embodiment of the invention provides a kind of image compensation devices, comprising:
Useful signal determination unit, based on the preset parameter according to determined by the original signal of the scan image got
It calculates window and carries out the determination of effective window, and the corresponding useful signal of each effective window is calculated according to determining effective window;
Background value cell, for carrying out the corresponding background value of the original signal according to the calculated useful signal
It calculates;
Reference background value cell carries out the original letter according to the information that the background value and the preset parameter calculate window
Number background reference values calculating;
Thermal compensation signal unit determines the corresponding compensation of the original signal according to the background reference values and the background value
Signal.
Optionally,
The useful signal determination unit includes initialization subelement, resampling threshold calculations subelement, the judgement of effective window
Subelement, useful signal judgment sub-unit;
The initialization subelement creates for obtaining the original signal of scan image and initiation parameter calculates window;
The resampling threshold calculations subelement, the number that all tonal gradations for calculating window by the parameter include
Resampling threshold value is calculated in the accounting that the parameter calculates window according to amount and the data volume;
Effective window judgment sub-unit, for judging the resampling threshold value, if resampling threshold value is preset
In range, then otherwise it is invalid window that it is effective window that the parameter, which calculates window,;
The useful signal judgment sub-unit, for determining the letter in effective window in the resampling threshold range
Number be useful signal, be otherwise invalid signals.
Optionally,
The background value cell includes effect signal computation subunit and background value computation subunit;
The useful signal computation subunit, for obtaining the number of each effective window each column useful signal and often showing
Imitate the cumulative of signal and;
Background value computation subunit adds up the sum of sum for calculating same column useful signal in each effective window, then divided by
The sum of same column useful signal number in each effective window, by the background value of the Shang dynasty table original signal column.
Optionally,
The reference background value cell be specifically used for by the summation of the background value of the original signal each column then divided by
Preset parameter calculates the width of window, using the quotient obtained as the background reference values of the entire original signal.
Optionally,
The thermal compensation signal unit includes compensation value calculation subelement and thermal compensation signal output subelement;
The compensation value calculation subelement, for the background reference values of entire signal to be subtracted original signal each column background value
Indicate the offset of the column;
The thermal compensation signal exports subelement, for summing to obtain the offset of each column and all signals with its same column
Thermal compensation signal, output save compensated signal.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
The background value of original signal is calculated by the effective window of determination and useful signal, and then calculates the compensation of original signal
Value, it is final to determine and export thermal compensation signal, take full advantage of the characteristic and effective image-region data image of line scan sensor
Distribution character does not need the temperature of detection sensor local environment, solves the prior art and lots of memory is needed to save compensation
Coefficient needs additional temperature sensor, increases the technical issues of system cost and operation difficulty, so that the survey of offset
It is fixed not to be influenced by temperature, no matter the undistorted picture signal of high quality can be obtained under high temperature, room temperature, low temperature environment;And
And the calculating by carrying out image compensation value in line computation window, calculating update is high-efficient, adapts to complicated background.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of one embodiment of image compensation method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of second embodiment of image compensation method provided in an embodiment of the present invention;
Fig. 3 is a kind of exemplary schematic diagram of the normal sample of image compensation method provided in an embodiment of the present invention;
Fig. 4 is a kind of exemplary schematic diagram of the exceptional sample of image compensation method provided in an embodiment of the present invention;
Fig. 5 is that a kind of parameter of image compensation method provided in an embodiment of the present invention calculates window schematic diagram;
Fig. 6 is that a kind of estimation intensity profile of image compensation method and reference value comparison provided in an embodiment of the present invention is illustrated
Figure;
Fig. 7 is the sample schematic diagram after the compensating successfully of a kind of image compensation method provided in an embodiment of the present invention;
Fig. 8 is a kind of first implementation of image compensation device based on image compensation method provided in an embodiment of the present invention
The structure chart of example;
Fig. 9 is a kind of second implementation of image compensation device based on image compensation method provided in an embodiment of the present invention
The structure chart of example.
Specific embodiment
The embodiment of the invention provides a kind of image compensation method and devices, are calculated by the effective window of determination and useful signal
The background value of original signal, and then the offset of original signal is calculated, it is final to determine and export thermal compensation signal, it solves existing
Technology need lots of memory to save penalty coefficient, and need additional temperature sensor, increase system cost and operation is difficult
The technical issues of spending.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Fig. 1, Fig. 3 are please referred to Fig. 7, a kind of one embodiment packet of image compensation method provided in an embodiment of the present invention
It includes:
101, window is calculated according to preset parameter determined by the original signal of the scan image got and carries out effective window
It determines, and the corresponding useful signal of each effective window is calculated according to determining effective window;
In the present embodiment, it is necessary first to according to preset parameter meter determined by the original signal of the scan image got
It calculates window and carries out the determination of effective window, and the corresponding useful signal of each effective window is calculated according to determining effective window.
102, the calculating of the corresponding background value of original signal is carried out according to calculated useful signal;
Effective window is carried out really when the preset parameter according to determined by the original signal of the scan image got calculates window
Calmly, it after and calculating the corresponding useful signal of each effective window according to determining effective window, needs according to calculated effective letter
Number carry out the calculating of the corresponding background value of original signal.
103, the calculating of the background reference values of original signal is carried out according to the information that background value and preset parameter calculate window;
After carrying out the calculating of the corresponding background value of original signal according to calculated useful signal, need according to background
Value calculates the calculating that window carries out the background reference values of original signal with preset parameter.
104, the corresponding thermal compensation signal of original signal is determined according to background reference values and background value;
After calculating the calculating for the background reference values that window carries out original signal according to background value and preset parameter, root is needed
The corresponding thermal compensation signal of original signal is determined according to background reference values and background value.
The above is the description carried out to the process of image compensation method, will be carried out below to the process of image compensation method detailed
Thin description please refers to figure Fig. 2 to Fig. 7, a kind of second embodiment packet of image compensation method provided in an embodiment of the present invention
It includes:
201, the original signal of scan image is obtained, creates and initiation parameter calculates window;
In the present embodiment, it is necessary first to obtain the original signal of scan image, create and initiation parameter calculates window.
202, the data volume and data volume for including by all tonal gradations that parameter calculates window calculate accounting for for window in parameter
Than calculating resampling threshold value;
In the original signal for obtaining scan image, after creating simultaneously initiation parameter calculating window, need to calculate by parameter
The data volume and data volume that all tonal gradations of window include calculate resampling threshold value in the accounting that parameter calculates window.
203, counterweight sampling threshold is judged, if resampling threshold value, in presetting range, it is to have which, which calculates window,
Window is imitated, is otherwise invalid window;
The accounting of window is calculated in parameter in all tonal gradations data volume that includes and data volume for calculating window by parameter
After calculating resampling threshold value, counterweight sampling threshold is needed to be judged, if resampling threshold value in presetting range, the ginseng
It is effective window that number, which calculates window, is otherwise invalid window.
204, it determines that the signal in effective window in resampling threshold range is useful signal, is otherwise invalid signals;
Judged in counterweight sampling threshold, if resampling threshold value, in presetting range, it is effective which, which calculates window,
Window, otherwise for invalid window after, it is thus necessary to determine that the signal in effective window in resampling threshold range is useful signal, otherwise for
Invalid signals.
205, obtain the number of each effective window each column useful signal and the cumulative of each column useful signal and;
Signal in the effective window of determination in resampling threshold range is useful signal, otherwise for invalid signals after,
Need to obtain the number of each effective window each column useful signal and the cumulative of each column useful signal and.
206, the sum of the cumulative sum of same column useful signal in each effective window is calculated, is then shown divided by same in each effective window
The sum for imitating signal number, by the background value of the Shang dynasty table original signal column;
In the cumulative of the number and each column useful signal for obtaining each effective window each column useful signal and later, need to count
The sum for calculating the cumulative sum of same column useful signal in each effective window, then divided by same column useful signal number in each effective window
With by the background value of the Shang dynasty table original signal column.
207, then the background value summation of original signal each column is calculated to the width of window divided by preset parameter, by what is obtained
Background reference values of the quotient as entire original signal;
The sum of the cumulative sum of same column useful signal, then effective divided by same column in each effective window in calculating each effective window
The sum of signal number needs to sum the background value of original signal each column after the background value of the Shang dynasty table original signal column
Then the width that window is calculated divided by preset parameter, using the quotient obtained as the background reference values of entire original signal.
208, subtracting original signal each column background value with the background reference values of entire signal indicates the offset of the column;
The width of window, the quotient that will be obtained then are calculated divided by preset parameter in the background value summation by original signal each column
After background reference values as entire original signal, the background reference values of entire signal is needed to subtract original signal each column background
Value indicates the offset of the column.
209, the offset of each column and all and its same column signal are summed to obtain thermal compensation signal, after output saves compensation
Signal;
Indicate the offset of the column subtracting original signal each column background value with the background reference values of entire signal, need by
The offset of each column and all and its same column signal sum to obtain thermal compensation signal, and output saves compensated signal.
It should be noted that according to wide, the high information creating of acquired original scan signal and initiation parameter meter
Calculate window WINi, (i=0,1,2 ... n), and parameter calculates window WINiLocation information include left upper apex Pti(xi,yi),WiAnd Hi,
Parameter as shown in Figure 5 calculates window;
Then calculating parameter calculates window WINiIn all tonal gradations data volume G for includingi,j, (j=0,1,2 ... 255) and
It is in WINiIn shared ratio Ratei,j, in which: Ratei,j=Gi,j/(Wi*Hi).According to Gi,jAnd Ratei,jWeight is calculated
Sampling threshold Ti;For example, in WINiIn, by j=255 from subtracting 1 until cumulative Rate when 0i,jObtain cumulative ratio and Si,1, together
When cumulative (Gi,j*Ratei,j) obtain cumulative gray scale and Si,2, as cumulative ratio and Si,1Meet preset ratio range (being greater than 50%)
Range then stops adding up, and passes through T at this timei=(Si,2/Si,1)-d (d is set as 20 herein) seeks TiIf TiMeet preset ratio range
(100≤Ti≤ 180) it is effective window that, then parameter, which calculates window, and by by window weights omegai1 label is set, if TiIt is unsatisfactory for default ratio
Example range (100≤Ti≤ 180) it is invalid window that, parameter, which calculates window, and by by window weights omegaiSet 0 label;3 as shown in Figure 5
Parameter calculates in window, it is assumed that WIN2Middle grey level histogram black picture element accounts for the 80% of the window, for the first time S2,1When > 50% stopping is cumulative
S2,1Equal to 95%, the T that is calculated2=40, T2Not within a preset range, therefore by ω2It is set to 0.
Each WIN is calculated by formula (1), (2)iIn same column useful signal is cumulative and li,c, (Pti(xi)≤c < Wi), herein
Assuming that parameters calculate the wide W of windowiIt is equal;
Wherein gi,r,cIndicate WINiIn r row c column signal value;δi,r,cThen g when being 1i,r,cFor useful signal value, instead
Then be invalid signals value;li,cIndicate WINiIn c show the cumulative of effect signal value and.
Calculate same column useful signal number in each effective window according to formula (3) and si,c;
The background value that each column useful signal is calculated by formula (4), i.e., with each WINiThe average value of middle each column useful signal is made
It is weighted and averaged for a pixel value, is calculated and represents the background value D that entire image works as forefrontc, it is calculated by formula (5)
Background reference values ref, i.e., with the background value D for representing entire image each columncAveraging obtains background reference values ref, based on formula (6)
Calculation obtains the offset Cs of c column signalc, according to line scan sensor characteristic, all signals of same row are all by same
Sensor dot matrix collects, it is possible to the background value D of each columncDifference between background reference values ref represents whole picture
The noise jamming of the image column all pixels, that is, offset Csc.As shown in fig. 6, the D being calculatedcWaveform and background reference values
Offset Cs is calculated in ref deviationc, ordinate indicates amplitude in Fig. 6, and abscissa indicates column coordinate.
Csc=ref-Dc (6)
Utilize the offset Cs of the every column signal of gainedcIt sums to obtain thermal compensation signal with original signal value, such as formula (7), output
Signal f (r, c) after compensating successfully, g (r, c) is the original signal value of each position in formula.Image after compensation as shown in fig. 7,
The interference such as original exception bright wisp, the filaments of sun, chip line can all be eliminated, and there is no the regions of interference to be unaffected.
F (r, c)=g (r, c)+Csc (7)
Referring to Fig. 8, the embodiment of the invention also provides a kind of one embodiment of image compensation device, comprising:
Useful signal determination unit 301, for the preset ginseng according to determined by the original signal of the scan image got
Number calculates window and carries out the determination of effective window, and calculates the corresponding useful signal of each effective window according to determining effective window;
Background value cell 302, for carrying out the calculating of the corresponding background value of original signal according to calculated useful signal;
Reference background value cell 303 carries out the background of original signal according to the information that background value and preset parameter calculate window
The calculating of reference value;
Thermal compensation signal unit 304 determines the corresponding thermal compensation signal of original signal according to background reference values and background value.
The above is that the unit of paper image compensation device is described in detail, below by the unit to image compensation device
Following subelement is described in detail, referring to Fig. 9, the of a kind of image compensation device provided in the embodiment of the present invention
Two embodiments, comprising:
Useful signal determination unit 401, for the preset ginseng according to determined by the original signal of the scan image got
Number calculates window and carries out the determination of effective window, and calculates the corresponding useful signal of each effective window according to determining effective window;
Background value cell 402, for carrying out the calculating of the corresponding background value of original signal according to calculated useful signal;
Reference background value cell 403 calculates the background reference values that window carries out original signal according to background value and preset parameter
Calculating;
Thermal compensation signal unit 404 determines the corresponding thermal compensation signal of original signal according to background reference values and background value.
Useful signal determination unit 401 include initialization subelement 4011, resampling threshold calculations subelement 4012, effectively
Window judgment sub-unit 4013, useful signal judgment sub-unit 4014;
Subelement 4011 is initialized, for obtaining the original signal of scan image, creates and initiation parameter calculates window;
Resampling threshold calculations subelement 4012, the data volume that all tonal gradations for calculating window by parameter include
And data volume calculates resampling threshold value in the accounting that parameter calculates window;
Effective window judgment sub-unit 4013, is judged for counterweight sampling threshold, if resampling threshold value is in presetting range
Interior, then otherwise it is invalid window that it is effective window that the parameter, which calculates window,;
Useful signal judgment sub-unit 4014, for determining that the signal in effective window in resampling threshold range is effective
Otherwise signal is invalid signals.
Background value cell 402 includes useful signal computation subunit 4021 and background value computation subunit 4022;
Useful signal computation subunit 4021, for obtaining the number of each effective window each column useful signal and often showing
Imitate the cumulative of signal and;
Background value computation subunit 4022, for calculating the sum of the cumulative sum of same column useful signal in each effective window, then
Divided by the sum of same column useful signal number in each effective window, by the background value of the Shang dynasty table original signal column.
Reference background value cell 403 is specifically used for the background value summation by original signal each column then divided by preset parameter
The width for calculating window, using the quotient obtained as the background reference values of entire original signal.
Thermal compensation signal unit 404 includes that compensation value calculation subelement 4041 and thermal compensation signal export subelement 4042;
Compensation value calculation subelement 4041, for the background reference values of entire signal to be subtracted original signal each column background value
Indicate the offset of the column;
Thermal compensation signal exports subelement 4042, for summing to obtain the offset of each column and all signals with its same column
Thermal compensation signal, output save compensated signal.
In the present embodiment, the original signal that subelement 4011 obtains scan image is initialized first, creates and initializes ginseng
Number calculates window, the data volume that then resampling threshold calculations subelement 4012 includes by all tonal gradations that parameter calculates window
And data volume calculates resampling threshold value in the accounting that parameter calculates window, effective window judgment sub-unit 4013 is to resampling threshold later
Value is judged, if resampling threshold value in presetting range, otherwise it is invalid window, in turn that it is effective window which, which calculates window,
Useful signal judgment sub-unit 4014 determines that the signal in effective window in resampling threshold range is useful signal, is otherwise nothing
Imitate signal, later useful signal computation subunit 4021 obtain each effective window each column useful signal number and each column it is effective
Signal cumulative and, background value computation subunit 4022 calculates same column useful signal in each effective window and adds up the sum of sum, then
Divided by the sum of same column useful signal number in each effective window, by the background value of the Shang dynasty table original signal column, background reference values
Then the background value summation of original signal each column is calculated the width of window by unit 403 divided by preset parameter, the quotient obtained is made
For the background reference values of entire original signal, compensation value calculation subelement 4041 is subtracted original with the background reference values of entire signal
Signal each column background value indicates the offset of the column, finally repay signal output subelement 4042 by the offset of each column and it is all with
The signal of its same column sums to obtain thermal compensation signal, and output saves compensated signal.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (6)
1. a kind of image compensation method characterized by comprising
The determination that window carries out effective window, and root are calculated according to preset parameter determined by the original signal of the scan image got
The corresponding useful signal of each effective window is calculated according to determining effective window, and effective window is attached most importance to sampling threshold satisfaction
The preset parameter of preset ratio range calculates window, resampling threshold value Ti=(Si,2/Si,1)-d, wherein Si,1For preset parameter calculating
The data volume G that all tonal gradations include in windowi,jProportion Rate in window is calculated in preset parameteri,jIt is cumulative and, wherein
Ratei,j=Gi,j/(Wi*Hi), WiThe width of window, H are calculated for preset parameteriThe height of window, S are calculated for preset parameteri,2For
(Gi,j*Ratei,j) obtained cumulative gray scale and, d is preset constant, and useful signal is in effective window in resampling threshold range
Signal, i are the serial number that preset parameter calculates window, and j is the numerical value of tonal gradation;
Obtain the number of each effective window each column useful signal and the cumulative of each column useful signal and;
The sum for calculating the cumulative sum of same column useful signal in each effective window, then divided by same column useful signal number in each effective window
Purpose and, by the background value of the Shang dynasty table original signal column, the background value is that same column useful signal is cumulative in each effective window
The sum of sum in each effective window same column useful signal number and ratio;
Then the background value summation of the original signal each column is calculated to the width of window, the quotient that will be obtained divided by preset parameter
Background reference values as the entire original signal, wherein each preset parameter calculates the width W of windowiIt is equal;
The corresponding thermal compensation signal of the original signal is determined according to the background reference values and the background value.
2. image compensation method according to claim 1, which is characterized in that according to the original letter of the scan image got
Preset parameter determined by number calculates window and carries out the determination of effective window, and is calculated and each described have according to determining effective window
Imitate the corresponding useful signal of window specifically:
The original signal for obtaining scan image creates and initializes preset parameter calculating window;
The data volume and the data volume for including by all tonal gradations that the preset parameter calculates window are in the preset ginseng
Number calculates the proportion Rate of windowi,jCalculate resampling threshold value;
The resampling threshold value is judged, if resampling threshold value, in presetting range, it is to have which, which calculates window,
Window is imitated, is otherwise invalid window;
It determines that the signal in effective window in the resampling threshold range is useful signal, is otherwise invalid signals.
3. image compensation method according to claim 1, which is characterized in that according to the background reference values and the background
Value determines the corresponding thermal compensation signal of the original signal specifically:
Subtracting original signal each column background value with the background reference values of the entire original signal indicates the offset of the column;
The offset of each column and all and its same column original signal are summed to obtain thermal compensation signal, output saves compensated letter
Number.
4. a kind of image compensation device characterized by comprising
Useful signal determination unit calculates window for the preset parameter according to determined by the original signal of the scan image got
It carries out the determination of effective window, and the corresponding useful signal of each effective window is calculated according to determining effective window, it is described
Effective window sampling threshold of attaching most importance to meets the preset parameter of preset ratio range and calculates window, resampling threshold value Ti=(Si,2/Si,1)-d,
Wherein Si,1The data volume G that all tonal gradations include in window is calculated for preset parameteri,jInstitute's accounting in window is calculated in preset parameter
Example Ratei,jIt is cumulative and, wherein Ratei,j=Gi,j/(Wi*Hi), WiThe width of window, H are calculated for preset parameteriFor preset parameter
Calculate the height of window, Si,2For (Gi,j*Ratei,j) obtained cumulative gray scale and, d is preset constant, and useful signal is in effective window
Signal in resampling threshold range, i are the serial number that preset parameter calculates window, and j is the numerical value of tonal gradation;
Background value cell includes effect signal computation subunit and background value computation subunit;
The useful signal computation subunit, number and each column for obtaining each effective window each column useful signal are effectively believed
Number it is cumulative and;
The background value computation subunit adds up the sum of sum for calculating same column useful signal in each effective window, then divided by
The sum of same column useful signal number in each effective window, by the background value of the Shang dynasty table original signal column;
Reference background value cell, for then calculating the background value summation of the original signal each column divided by preset parameter
The width of window, using the quotient obtained as the background reference values of the entire original signal, wherein each preset parameter calculates
The width W of windowiIt is equal;
Thermal compensation signal unit determines that the corresponding compensation of the original signal is believed according to the background reference values and the background value
Number.
5. image compensation device according to claim 4, which is characterized in that the useful signal determination unit includes initial
Beggar's unit, resampling threshold calculations subelement, effective window judgment sub-unit, useful signal judgment sub-unit;
The initialization subelement, for obtaining the original signal of scan image, creating and initializing preset parameter calculating window;
The resampling threshold calculations subelement, the number that all tonal gradations for calculating window by the preset parameter include
The proportion Rate of window is calculated in the preset parameter according to amount and the data volumei,jCalculate resampling threshold value;
Effective window judgment sub-unit, for judging the resampling threshold value, if resampling threshold value is in presetting range
Interior, then otherwise it is invalid window that it is effective window that the preset parameter, which calculates window,;
The useful signal judgment sub-unit, for determining that the signal in effective window in the resampling threshold range is
Otherwise useful signal is invalid signals.
6. image compensation device according to claim 4, which is characterized in that the thermal compensation signal unit includes offset meter
Operator unit and thermal compensation signal export subelement;
The compensation value calculation subelement, for the background reference values of the entire original signal to be subtracted original signal each column back
Scape value indicates the offset of the column;
The thermal compensation signal exports subelement, for summing to obtain the offset of each column and all original signals with its same column
Thermal compensation signal, output save compensated signal.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610836702.2A CN106412380B (en) | 2016-09-20 | 2016-09-20 | A kind of image compensation method and device |
PCT/CN2017/071360 WO2018053977A1 (en) | 2016-09-20 | 2017-01-17 | Image compensation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610836702.2A CN106412380B (en) | 2016-09-20 | 2016-09-20 | A kind of image compensation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106412380A CN106412380A (en) | 2017-02-15 |
CN106412380B true CN106412380B (en) | 2019-09-10 |
Family
ID=57997125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610836702.2A Active CN106412380B (en) | 2016-09-20 | 2016-09-20 | A kind of image compensation method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106412380B (en) |
WO (1) | WO2018053977A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106412380B (en) * | 2016-09-20 | 2019-09-10 | 广州广电运通金融电子股份有限公司 | A kind of image compensation method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924855A (en) * | 2010-08-11 | 2010-12-22 | 中科院成都信息技术有限公司 | Method for correcting gray-level linear array scanning image |
CN103108107A (en) * | 2013-03-05 | 2013-05-15 | 广州广电运通金融电子股份有限公司 | Image processing device and image data correcting method thereof |
CN103310528A (en) * | 2013-07-08 | 2013-09-18 | 广州广电运通金融电子股份有限公司 | Image compensation and correction method and banknote detection and identification device |
CN103942761A (en) * | 2014-04-23 | 2014-07-23 | 威海华菱光电股份有限公司 | Image correction method and device |
EP2955909A1 (en) * | 2014-06-11 | 2015-12-16 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100003459A (en) * | 2008-07-01 | 2010-01-11 | 삼성모바일디스플레이주식회사 | Organic light emitting display device and driving method thereof |
JP2010220092A (en) * | 2009-03-18 | 2010-09-30 | Ricoh Co Ltd | Image reader and image forming apparatus |
JP5326920B2 (en) * | 2009-08-07 | 2013-10-30 | 株式会社リコー | Image processing apparatus, image processing method, and computer program |
CN106412380B (en) * | 2016-09-20 | 2019-09-10 | 广州广电运通金融电子股份有限公司 | A kind of image compensation method and device |
-
2016
- 2016-09-20 CN CN201610836702.2A patent/CN106412380B/en active Active
-
2017
- 2017-01-17 WO PCT/CN2017/071360 patent/WO2018053977A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924855A (en) * | 2010-08-11 | 2010-12-22 | 中科院成都信息技术有限公司 | Method for correcting gray-level linear array scanning image |
CN103108107A (en) * | 2013-03-05 | 2013-05-15 | 广州广电运通金融电子股份有限公司 | Image processing device and image data correcting method thereof |
CN103310528A (en) * | 2013-07-08 | 2013-09-18 | 广州广电运通金融电子股份有限公司 | Image compensation and correction method and banknote detection and identification device |
CN103942761A (en) * | 2014-04-23 | 2014-07-23 | 威海华菱光电股份有限公司 | Image correction method and device |
EP2955909A1 (en) * | 2014-06-11 | 2015-12-16 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method |
Also Published As
Publication number | Publication date |
---|---|
WO2018053977A1 (en) | 2018-03-29 |
CN106412380A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109817152A (en) | Screen luminance adjustment method and Related product | |
CN109870461A (en) | A kind of electronic component quality detection system | |
CN110428416B (en) | Liquid level visual detection method and device | |
CN110335246B (en) | License picture definition evaluation method | |
CN109993797A (en) | Door and window method for detecting position and device | |
CN101561932A (en) | Method and device for detecting real-time movement target under dynamic and complicated background | |
US9183671B2 (en) | Method for accelerating Monte Carlo renders | |
CN109685142A (en) | A kind of image matching method and device | |
CN113628234B (en) | Method for detecting salient polarization SAR image change based on comprehensive neighborhood information | |
CN110502949A (en) | A kind of QR code image Fast Blind deblurring method based on adaptive scale control | |
CN116883336A (en) | Image processing method, device, computer equipment and medium | |
CN106412380B (en) | A kind of image compensation method and device | |
CN110473181A (en) | Screen content image based on edge feature information without ginseng quality evaluating method | |
CN110889817B (en) | Image fusion quality evaluation method and device | |
CN108648154A (en) | The filtering evaluation method of phase diagram | |
CN1561092B (en) | Data processing method and apparatus | |
CN103903002A (en) | Environment brightness detection method and system | |
CN110427885A (en) | Detection method, device and the computer readable storage medium of nameplate | |
CN112017163B (en) | Image ambiguity detection method, device, electronic equipment and storage medium | |
CN116740579B (en) | Intelligent collection method for territorial space planning data | |
CN106204531B (en) | A kind of method of noise and marginal point in synchronous sense colors image | |
CN111089586B (en) | All-day star sensor star point extraction method based on multi-frame accumulation algorithm | |
CN113313021A (en) | Deep learning model construction method based on low-quality image recognition | |
CN117333795A (en) | River surface flow velocity measurement method and system based on screening post-treatment | |
CN116091405B (en) | Image processing method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |