CN103856682B - image correction method - Google Patents
image correction method Download PDFInfo
- Publication number
- CN103856682B CN103856682B CN201210505022.4A CN201210505022A CN103856682B CN 103856682 B CN103856682 B CN 103856682B CN 201210505022 A CN201210505022 A CN 201210505022A CN 103856682 B CN103856682 B CN 103856682B
- Authority
- CN
- China
- Prior art keywords
- image
- line
- pixel
- scanner
- value
- 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.)
- Expired - Fee Related
Links
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Color Image Communication Systems (AREA)
- Facsimile Scanning Arrangements (AREA)
Abstract
The invention discloses an image correction method applied to a scanner, the scanner comprises a scanner body, a setting unit and a memory storage unit, wherein the setting unit and the memory storage unit are arranged in the scanner body and are electrically connected, a scanning platform is arranged above the scanner body, and the image correction method comprises the following steps: moving a file to be scanned to a scanning platform; initializing parameters before the scanner starts scanning; scanning by a scanner to obtain an image of a line; the setting unit sets a program statement for calculating the values constituting an updated balance table; the memory storage unit divides a plurality of memory positions for storing values of variables required by executing program statements; when the scanned image is enough, the set program is executed in the memory storage unit to obtain the updated balance table, thereby completing the image correction of each line. Therefore, the image correction method can ensure good image effect and effectively reduce the use of the memory storage unit.
Description
Technical field
The present invention relates to a kind of image correcting method, particularly relate to a kind of image correcting method being applied to scanner.
Background technology
Refer to Fig. 1, a kind of existing image correcting method, being applied in scanner (not shown), described scanner generally includes scanner body (not shown), a driving device 10 ', an optical module 20 ', an analog/digital converter 30 ' and a memory storage unit 40 '.Driving device 10 ', optical module 20 ', analog/digital converter 30 ' and memory storage unit 40 ' are electrically connected and are installed in scanner, and this is internal.Wherein, optical module 20 ' can in this internal movement of scanner.This optical module 20 ' includes a light source 201 ', a camera lens 202 ' and an Image Sensor 203 '.Wherein, Image Sensor 203 ' is a charge-coupled image sensor (ChargeCoupledDevice, CCD) or a contact-type image sensor (ContactImageSensor, CIS).Scanner body be provided above one scan platform (not shown).
Generally, the briliancy difference of each position of light source 201 ' own can cause that the phenomenon that brightness unevenness is even occurs in the image that scanner scanning goes out, the image even in order to avoid producing this brightness unevenness, when scanner scanning one file, scanner can utilize described image correcting method to carry out an adjustment of image action.The step of described image correcting method is as described below: first, is moved on the scanning platform of scanner by file to be scanned;Secondly, driving device 10 ' driving optical module 20 ' is mobile is scanned this file.Specifically, light source 201 ' is irradiated on file through scanning platform, now, being irradiated to, through scanning platform, the light reflected on file by light source 201 ' and pass through the correct focal imaging of camera lens 202 ' on Image Sensor 203 ' to form an image, described image is made up of multiple image pixels;Finally, image pixel is converted into digital electric signal via analog/digital converter 30 ';Again, store digital electric signal in memory storage unit 40 ', and utilize interpolation or multiplying method to carry out computing, thus producing a balance sheet (ShadingTable);Finally, scanner utilizes the luminance compensation action of the image that this balance sheet is scanned out.
But, above-mentioned image correcting method is in the process of equilibrium establishment table, the not intended dirty point on file can be subject to or dust is affected, thus obtaining inaccurate balance sheet, and then affect adjustment of image effect, simultaneously, set up in the process of balance sheet in memory storage unit 40 ', reasonably do not divide corresponding interval due to memory storage unit 40 ' and carry out computing, thus memory storage unit 40 ' need to have bigger memory space, causes the adjustment of image cost of scanner to increase.
Summary of the invention
Present invention aims to above-mentioned the deficiencies in the prior art and a kind of image correcting method that may insure that good and effectively minimizing memory storage unit the use of image effect is provided.
For achieving the above object, the present invention provides a kind of image correcting method, it is applied in scanner, this scanner includes scanner body, and be installed in scanner this internal and electrically connect a driving device, an optical module, an analog/digital converter, a first in first out data buffer, a data flow control unit, one unit, a data sorting unit and a memory storage unit are set.Scanner body be provided above one scan platform.This image correcting method comprises the steps: step 1: moved on the scanning platform of scanner by the file that is to be scanned;Step 2: scanner carries out parameter initialization before starting scanning;Step 3: driving device drives optical module to move, and makes scanner start this file is scanned, so that scanner scanning obtains the image of a line, the image of a described line includes the image pixel of multiple corresponding HONGGUANG, blue light and green glow respectively;Step 4: the image pixel of multiple corresponding HONGGUANG, blue light and green glows respectively included by the image of this line is converted to digital electric signal by analog/digital converter, i.e. pixel value, scanner sequentially reads the pixel value of multiple respectively corresponding HONGGUANG, blue light and green glow by first in first out data buffer, and arranges unit and set a program statement in data flow control unit for calculating the numerical value of the balance sheet of composition one renewal;Step 5: the pixel value of multiple corresponding HONGGUANG, blue light and the green glows respectively of the image of this line is classified through data sorting unit, and it is sent in memory storage unit together with the program statement that unit sets is set, and multiple for memory storage dividing elements core positions perform to arrange for storing scanner the value of the variable needed for the program statement that unit sets;Step 6: confirm that whether the image swept is enough, when the image swept is enough, perform step 7, when the image deficiency swept, repeated execution of steps 3, step 4 and step 5, until the image swept is enough;Step 7: scanner performs to arrange the program statement that unit sets in memory storage unit, the balance sheet that the numerical value obtained composition updates;Step 8: scanner utilizes the balance sheet of this renewal to compensate the pixel value of image of every line, carries out the luminance compensation of each image pixel of every line, thus completing the adjustment of image of every line.
In sum, image correcting method of the present invention is by the process setting up the balance sheet updated, scanner performs the core position that the value of the variable needed for arranging the program statement that unit sets is stored in memory storage unit corresponding thereto respectively, so that effectively reduces memory storage unit uses and removes the dirty point on the file on scanner or dust, so that it is guaranteed that image effect is good and reduces the adjustment of image cost of scanner.
Accompanying drawing explanation
Fig. 1 is the local theory diagram of the scanner applied in the embodiment of existing image correcting method.
Fig. 2 is the schematic diagram of the coordinate axes of the scanning platform of the scanner applied in the embodiment of image correcting method of the present invention.
Fig. 3 is the local theory diagram of the scanner applied in the embodiment of image correcting method of the present invention.
Fig. 4 is the flow chart of image correcting method of the present invention.
Fig. 5 be image correcting method of the present invention embodiment in the dividing mode of memory storage unit of scanner of application and scanner perform to arrange the storage state diagram of the value of the variable needed for the program statement that unit sets.
Wherein, description of reference numerals is as follows:
Driving device: 10 optical modules: 20
Light source: 201 camera lenses: 202
Image Sensor: 203 analog/digital converters: 30
First in first out data buffer: 40 data flow control units: 50
Unit is set: 60 data sorting unit: 70
Memory storage unit: 80
Detailed description of the invention
By describing the technology contents of the present invention, structural feature in detail, being realized purpose and effect, below in conjunction with embodiment and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 3, image correcting method of the present invention, be applied in scanner (not shown).Scanner can be an automatic paper feeder formula one-sided and two-sided scanning instrument, one paper feed type one-sided and two-sided scanning instrument or a platform-type single-sweep instrument, in the present embodiment, scanner is platform-type single-sweep instrument, it includes scanner body (not shown), and it is installed in this driving device 10 that is internal and that electrically connect of scanner, one optical module 20, one analog/digital converter 30, one first in first out data buffer 40, one data flow control unit 50, one arranges unit 60, one data sorting unit 70 and a memory storage unit 80, wherein, optical module 20 can in this internal movement of scanner.This optical module 20 includes light source 201, camera lens 202 and an Image Sensor 203.Scanner body be provided above one scan platform (non-label).Wherein, light source 201 can be a cold-cathode tube (ColdCathodeFluorescentLamp, CCFL) or a light emitting diode (LightEmittingDiode, LED).Image Sensor 203 can be a charge-coupled image sensor (ChargeCoupledDevice, CCD) or a contact-type image sensor (ContactImageSensor, CIS).
Referring to Fig. 2 and Fig. 3, after scanner is started shooting, when carrying out the scanning of a file (not shown), the driving device 10 of scanner drives optical module 20 to move longitudinally upward along the coordinate axes of scanning platform, by the k of scanning platform1Position through k2、k3、k4... move to kaPosition, and at optical module 20 from k1Move to kaEach position, all carry out x1、x2、x3、x4... to xfThe transversal scanning in direction, thus obtaining scanner to set the image of the file to sweep.The image of this document is by kth1Bar line is to kthaThe image composition of a bar line of bar line, and kth1Bar line is to kthaThe image of bar line include that the Image Sensor 203 of optical module 20 effectively exports respectively from x1To xfF image pixel.
Refer to Fig. 2, Fig. 3, Fig. 4 and Fig. 5, image correcting method of the present invention, comprise the steps:
The file that one is to be scanned is moved on the scanning platform of scanner by step 1;
Step 2 scanner carries out parameter initialization before starting scanning;
Step 3 driving device 10 drives optical module 20 to move, and makes scanner start this file is scanned, so that scanner scanning obtains the image of a line, the image of a described line includes the image pixel of multiple corresponding HONGGUANG, blue light and green glow respectively;
The image pixel of multiple corresponding HONGGUANG, blue light and green glows respectively included by the image of this line of step 4 is converted to digital electric signal by analog/digital converter 30, i.e. pixel value, scanner sequentially reads the pixel value of multiple respectively corresponding HONGGUANG, blue light and green glow by first in first out data buffer 40, and arranges unit 60 and set a program statement in data flow control unit 50 For calculating numerical value WH (x) of the balance sheet of composition one renewal;
Step 5 by the pixel value of multiple corresponding HONGGUANG, blue light and the green glows respectively of the image of this line through data sorting unit 70 carry out classifying and with the program statement that unit 60 sets is set It is sent to together in memory storage unit 80, and memory storage unit 80 is divided multiple core position performs to arrange the value of variable SUM (x) needed for the program statement that unit 60 sets, Hq (x) and Lp (x) for storing scanner;
Step 6 confirms that whether the image swept is enough, when the image swept is enough, performs step 7, and when the image deficiency swept, repeated execution of steps 3, step 4 and step 5, until the image swept is enough;
Step 7 performs to arrange the program statement that unit 60 sets in memory storage unit 80 The balance sheet that numerical value WH (x) composition obtained updates;
Step 8 scanner utilizes the balance sheet of this renewal to compensate the pixel value of image of every line, carries out the luminance compensation of each image pixel of every line, thus completing the adjustment of image of every line.
Please continue and consult Fig. 2, Fig. 3 and Fig. 4, in described step 2, scanner carries out being described in detail below of parameter initialization: arrange the summation of pixel value that unit 60 sets the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow in data flow control unit 50, namely the initial value of variable SUM (x) is 00000000h, therefore, its program expression is: SUM (x)=00000000h, wherein x=x1, x2......xf;The minimum pixel value that unit 60 sets the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow in data flow control unit 50 is set, namely the initial value of variables L p (x) is FFFFh, therefore, its program expression is: Lp (x)=FFFFh, wherein p=0..m-1;The max pixel value that unit 60 sets the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow in data flow control unit 50 is set, namely the initial value of variable Hq (x) is 0000h, therefore, its program expression is: Hq (x)=0000h, wherein q=0..n-1.
In described step 3, driving device 10 drives optical module 20 to move longitudinally upward, scanner is made to start this file is scanned, specifically, light source 201 sends white light and is irradiated on file through scanning platform, now, it is irradiated to, through scanning platform, the light reflected on file by light source 201 and passes through the correct focal imaging of camera lens 202 on Image Sensor 203, so that scanner scanning obtains the image of a line, because white light is by HONGGUANG, blue light and green glow combine by a certain percentage, so image includes multiple corresponding HONGGUANG respectively, the image pixel of blue light and green glow.
In described step 4, the image pixel of multiple corresponding HONGGUANG, blue light and green glows respectively included by the image of this line is converted to the digital electric signal of hexadecimal representation, i.e. pixel value by analog/digital converter 30;Scanner sequentially reads the pixel value of multiple corresponding HONGGUANG, blue light and green glow respectively by first in first out data buffer 40;Unit 60 is set and in data flow control unit 50, sets a program statement: SUM (x)=SUM (x)+WH_TMPi (x) for updating the summation of the pixel value of the x-th image pixel drawing the image correspondence HONGGUANG of every line, blue light or green glow, the i.e. value of variable SUM (x);Unit 60 is set in data flow control unit 50, sets another program statement: For calculating numerical value WH (x) of the balance sheet of composition one renewal, wherein, WH_TMPi (x) represents the pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, and i starts positive integer incremental gradually and i < 2 from 0k+ m+n, k1, k=k2……ka, m and n is configured by arranging unit 60;K1 represents the image that image is Article 1 line of this line;K represents the image that image is kth bar line of this line;Hq (x) represents the max pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow;Lp (x) represents the minimum pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow;N represents the number of the max pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow;M represents the number of the minimum pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow.
In described step 5, by the pixel value of multiple corresponding HONGGUANG, blue light and the green glows respectively of the image of this line through data sorting unit 70 carry out classifying and with arrange program statement SUM (x)=SUM (x)+WH_TMPi (x) that unit 60 sets withIt is sent to together in memory storage unit 80, if the image of this line is Article 1 line, i.e. kth1The image of bar line, then update pixel value WH_TMPi (x) of the x-th image pixel of image correspondence HONGGUANG, blue light or the green glow that value is this line that draw variable SUM (x), meanwhile, by this Article 1 line, i.e. kth1The minimum pixel value of the x-th image pixel of pixel value WH_TMPi (x) HONGGUANG corresponding to the image of every line of the x-th image pixel of the image correspondence HONGGUANG of bar line, blue light or green glow, blue light or green glow, the i.e. initial value of variables L p (x): FFFFh compares, this Article 1 line, i.e. kth is drawn thus updating1M minimum pixel value of the x-th image pixel of the image correspondence HONGGUANG of bar line, blue light or green glow, i.e. the value of m variables L p (x), and by this Article 1 line, i.e. kth1The max pixel value of the x-th image pixel of pixel value WH_TMPi (x) HONGGUANG corresponding to the image of every line of the x-th image pixel of the image correspondence HONGGUANG of bar line, blue light or green glow, blue light or green glow, the i.e. initial value of variable Hq (x): 0000h compares, this Article 1 line, i.e. kth is drawn thus updating1N max pixel value of the x-th image pixel of the image correspondence HONGGUANG of bar line, blue light or green glow, i.e. the value of n variable Hq (x);If the image that the image of this line is kth bar line, wherein k=k2……ka, then updating the value drawing variable SUM (x) is Article 1 line, namely 1 line of kth is to the image correspondence HONGGUANG of kth bar line, the summation of pixel value WH_TMPi (x) of the x-th image pixel of blue light or green glow, by the image correspondence HONGGUANG of this kth bar line, the corresponding HONGGUANG of the image of-1 line of pixel value WH_TMPi (x) and kth of the x-th image pixel of blue light or green glow, pixel value WH_TMPi (x) of the x-th image pixel of blue light or green glow is compared, thus updating the image correspondence HONGGUANG drawing this kth bar line, n max pixel value of the x-th image pixel of blue light or green glow, the i.e. value of n variable Hq (x) and m minimum pixel value, the i.e. value of m variables L p (x).
The memory storage unit 80 of scanner is divided into interval to q of interval q-1 (Partitionq-1) from interval 0 (Partition0), and each interval is divided into again multiple core position, scanner analysis scans the image obtained, by the image correspondence HONGGUANG of every line, the summation of the pixel value of the x-th image pixel of blue light or green glow, the i.e. value of variable SUM (x), the image correspondence HONGGUANG of every line, m minimum pixel value of the x-th image pixel of blue light or green glow, the i.e. value of variables L p (x) and n max pixel value, namely the core position that the value of variable Hq (x) is stored in memory storage unit 80 corresponding thereto respectively;The summation of the pixel value of the x-th image pixel of the concrete dividing mode of memory storage unit 80 and the image correspondence HONGGUANG of every line, blue light or green glow, the i.e. value of variable SUM (x), m minimum pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, the i.e. value of variables L p (x) and n max pixel value, namely the concrete storage state of the value of variable Hq (x) is as shown in Figure 5.
Wherein, W: represent the word length that length is a hexadecimal representation of core position;
S: represent the summation of the pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, the i.e. value of variable SUM (x);
B: represent length of an interval degree;
Q: represent interval numbering.
In described step 6, confirm that whether the image that sweeps is enough, when the number of all pixels of the image swept is more than or equal to the image pixel number needed for the image swept set by scanner: a*f, and a > m+n need to be met, namely, when the image that sweeps is enough, step 7 is performed;When the number of all pixels of the image swept is less than the image pixel number needed for the image swept set by scanner: a*f, during the image deficiency namely swept, then repeated execution of steps 3, step 4 and step 5, until the number of all pixels of image swept is more than or equal to the image pixel number needed for the image swept set by scanner: a*f, the image namely swept is enough;Wherein, set the image to sweep and be made up of the image of a bar line, and f is the image pixel number of effectively output of Image Sensor 203 of optical module 20.
In described step 7, scanner performs to arrange the program statement that unit 60 sets in memory storage unit 80:Numerical value WH (x) obtained forms the balance sheet (ShadingTable) of a renewal.
In described step 8, scanner utilizes the balance sheet of this renewal to compensate the pixel value of image of every line, carries out the luminance compensation of each image pixel of every line, thus completing the adjustment of image of every line.
Refer to Fig. 2 and Fig. 3, image correcting method of the present invention is set up, by the above step, the balance sheet updated and is carried out the adjustment of image of every line one by one, simultaneously in the process setting up the balance sheet updated, by every line image correspondence HONGGUANG, n the max pixel value Hq (x) of x-th image pixel of blue light or green glow and m minimum pixel value Lp (x) be separately stored in memory storage unit 80, so that the dirty point removed on scanner one blank or dust, so that it is guaranteed that image effect is good.In addition, the memory storage unit 80 of scanner is divided into q district, and each district is divided into again multiple core position, scanner analysis scans the image obtained, summation SUM (x) by the pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, the core position that m minimum pixel value Lp (x) of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow and n max pixel value Hq (x) are stored in memory storage unit 80 corresponding thereto respectively, thus effectively reducing the use of memory storage unit 80.
Refer to Fig. 2 and Fig. 3, more preferably, first in first out data buffer 40, data flow control unit 50 and data sorting unit 70 are integrated in an ASIC (ApplicationSpecificIntegratedCircuit, ASIC), so that scanner simplifies the software control flow on scanner in the process setting up the balance sheet updated.
In sum, image correcting method of the present invention is by the process setting up the balance sheet updated, n the max pixel value by the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, the i.e. value of variable Hq (x) and m minimum pixel value, namely the value of variables L p (x) is separately stored in memory storage unit 80, so that the dirty point on the file removed on scanner or dust, so that it is guaranteed that image effect is good.In addition, scanner analysis scans the image obtained, the summation of the pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, the i.e. value of variable SUM (x), m minimum pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, the i.e. value of variables L p (x) and n max pixel value, namely the core position that the value of variable Hq (x) is stored in memory storage unit 80 corresponding thereto respectively, thus effectively reducing the use of memory storage unit 80, in order to reduce the adjustment of image cost of scanner.
Claims (9)
1. an image correcting method, it is applied in scanner, it is characterized in that: this scanner includes scanner body, and be installed in scanner this internal and electrically connect a driving device, an optical module, an analog/digital converter, a first in first out data buffer, a data flow control unit, one unit, a data sorting unit and a memory storage unit are set, scanner body be provided above one scan platform, this image correcting method comprises the steps:
The file that one is to be scanned is moved on the scanning platform of scanner by step 1;
Step 2 scanner carries out parameter initialization before starting scanning;
Step 3 driving device drives optical module to move, and makes scanner start this file is scanned, so that scanner scanning obtains the image of a line, the image of a described line includes the image pixel of multiple corresponding HONGGUANG, blue light and green glow respectively;
The image pixel of multiple corresponding HONGGUANG, blue light and green glows respectively included by the image of this line of step 4 is converted to digital electric signal by analog/digital converter, i.e. pixel value, scanner sequentially reads the pixel value of multiple respectively corresponding HONGGUANG, blue light and green glow by first in first out data buffer, and arranges unit and set a program statement in data flow control unit for calculating the numerical value of the balance sheet of composition one renewal;
The pixel value of multiple corresponding HONGGUANG, blue light and the green glows respectively of the image of this line is classified by step 5 through data sorting unit, and it is sent in memory storage unit together with the program statement that unit sets is set, and multiple for memory storage dividing elements core positions perform to arrange for storing scanner the value of the variable needed for the program statement that unit sets;
Step 6 confirms that whether the image swept is enough, when the image swept is enough, performs step 7, and when the image deficiency swept, repeated execution of steps 3, step 4 and step 5, until the image swept is enough;
Step 7 scanner performs to arrange the program statement that unit sets in memory storage unit, the balance sheet that the numerical value obtained composition updates;
Step 8 scanner utilizes the balance sheet of this renewal to compensate the pixel value of image of every line, carries out the luminance compensation of each image pixel of every line, thus completing the adjustment of image of every line.
null2. image correcting method as claimed in claim 1,It is characterized in that: in described step 2,Scanner carries out being described in detail below of parameter initialization: arrange the summation of pixel value of x-th image pixel that unit sets the image of every line in data flow control unit,Namely the initial value of variable SUM (x) is 00000000h,Set the minimum pixel value of the x-th image pixel of the image of every line,Namely the initial value of variables L p (x) is FFFFh,Wherein p=0..m-1,Set the max pixel value of the x-th image pixel of the image of every line,Namely the initial value of variable Hq (x) is 0000h,Wherein q=0..n-1,M and n is configured by arranging unit,N represents the image correspondence HONGGUANG of every line、The number of the max pixel value of the x-th image pixel of blue light or green glow;M represents the number of the minimum pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow.
3. image correcting method as claimed in claim 2, it is characterized in that: in described step 4, unit is set in data flow control unit, sets a program statement: SUM (x)=SUM (x)+WH_TMPi (x), for the summation of the pixel value of the x-th image pixel updating the image drawing every line, the i.e. value of variable SUM (x);Unit is set in data flow control unit, sets another program statement:For numerical value WH (x) calculating the balance sheet that composition updates, wherein, WH_TMPi (x) represents the pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, and i starts positive integer incremental gradually and i < 2 from 0k+ m+n, k are configured by arranging unit, and k represents the image that image is kth bar line of this line.
null4. image correcting method as claimed in claim 3,It is characterized in that: in described step 5,Program statement SUM (x)=SUM (the x)+WH_TMPi (x) arranging unit setting is sent in memory storage unit,If the image that the image of this line is Article 1 line,Then update the image correspondence HONGGUANG that value is this line drawing variable SUM (x)、Pixel value WH_TMPi (x) of the x-th image pixel of blue light or green glow,Simultaneously,By the image correspondence HONGGUANG of this Article 1 line、The minimum pixel value of pixel value WH_TMPi (x) of the x-th image pixel of blue light or green glow and the x-th image pixel of image,Namely the initial value of variables L p (x) is compared,Thus updating the image correspondence HONGGUANG drawing this Article 1 line、M minimum pixel value of the x-th image pixel of blue light or green glow,The i.e. value of m variables L p (x),And by the image correspondence HONGGUANG of this Article 1 line、The max pixel value of pixel value WH_TMPi (x) of the x-th image pixel of blue light or green glow and the x-th image pixel of image,Namely the initial value of variable Hq (x) is compared,Thus updating the image correspondence HONGGUANG drawing this Article 1 line、N max pixel value Hq (x) of the x-th image pixel of blue light or green glow,The i.e. value of n variable Hq (x).
null5. image correcting method as claimed in claim 3,It is characterized in that: in described step 5,If the image that the image of this line is kth bar line,Then updating the value drawing variable SUM (x) is the Article 1 line image correspondence HONGGUANG to kth bar line、The summation of pixel value WH_TMPi (x) of the x-th image pixel of blue light or green glow,By the image correspondence HONGGUANG of this kth bar line、The corresponding HONGGUANG of the image of-1 line of pixel value WH_TMPi (x) and kth of the x-th image pixel of blue light or green glow、Pixel value WH_TMPi (x) of the x-th image pixel of blue light or green glow is compared,Thus updating the image correspondence HONGGUANG drawing this kth bar line、N max pixel value of the x-th image pixel of blue light or green glow,The i.e. value of n variable Hq (x) and m minimum pixel value,The i.e. value of m variables L p (x).
6. image correcting method as claimed in claim 3, it is characterised in that: in described step 5, will the program statement that unit sets be setIt is sent in memory storage unit, for the value of variable SUM (x) of summation of the pixel value of the x-th image pixel that would indicate that the image correspondence HONGGUANG of every line, blue light or green glow;And would indicate that the value of the variables L p (x) of m minimum pixel value of the x-th image pixel of the image correspondence HONGGUANG of every line, blue light or green glow, and would indicate that the value of variable Hq (x) of n max pixel value, it is stored in memory storage unit core position corresponding thereto respectively.
7. image correcting method as claimed in claim 3, it is characterized in that: in described step 6, when the number of all pixels of the image swept is more than or equal to the image pixel number needed for the image swept set by scanner: a*f, and a > m+n need to be met, namely, when the image that sweeps is enough, step 7 is performed;When the number of all pixels of the image swept is less than the image pixel number needed for the image swept set by scanner: a*f, during the image deficiency namely swept, then repeated execution of steps 3, step 4 and step 5, until the number of all pixels of image swept is more than or equal to the image pixel number needed for the image swept set by scanner: a*f, the image namely swept is enough;Wherein, set the image to sweep and be made up of the image of a bar line, and the image pixel number of the effectively output of the Image Sensor that f is optical module.
8. image correcting method as claimed in claim 3, it is characterised in that: in described step 7, scanner performs to arrange the program statement that unit sets in memory storage unit: Numerical value WH (x) obtained forms the balance sheet of a renewal.
9. image correcting method as claimed in claim 1, it is characterised in that: described first in first out data buffer, data flow control unit and data sorting unit are integrated in an integrated circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210505022.4A CN103856682B (en) | 2012-11-30 | 2012-11-30 | image correction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210505022.4A CN103856682B (en) | 2012-11-30 | 2012-11-30 | image correction method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103856682A CN103856682A (en) | 2014-06-11 |
CN103856682B true CN103856682B (en) | 2016-07-13 |
Family
ID=50863850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210505022.4A Expired - Fee Related CN103856682B (en) | 2012-11-30 | 2012-11-30 | image correction method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103856682B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1226685A (en) * | 1998-01-28 | 1999-08-25 | 鸿友科技股份有限公司 | Image brightness error compensation method and device |
JP2001347736A (en) * | 2000-06-07 | 2001-12-18 | Canon Inc | Image processing device and image processing method |
JP2004173002A (en) * | 2002-11-20 | 2004-06-17 | Ricoh Co Ltd | Image processor, original document reader, imaging device, and imaging system |
TWI234991B (en) * | 2004-03-02 | 2005-06-21 | Lite On Technology Corp | Method for detecting intensity of an exposure light source to adjust an image signal |
CN1933531A (en) * | 2005-09-16 | 2007-03-21 | 致伸科技股份有限公司 | Image scanner and image data compensation method |
-
2012
- 2012-11-30 CN CN201210505022.4A patent/CN103856682B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1226685A (en) * | 1998-01-28 | 1999-08-25 | 鸿友科技股份有限公司 | Image brightness error compensation method and device |
JP2001347736A (en) * | 2000-06-07 | 2001-12-18 | Canon Inc | Image processing device and image processing method |
JP2004173002A (en) * | 2002-11-20 | 2004-06-17 | Ricoh Co Ltd | Image processor, original document reader, imaging device, and imaging system |
TWI234991B (en) * | 2004-03-02 | 2005-06-21 | Lite On Technology Corp | Method for detecting intensity of an exposure light source to adjust an image signal |
CN1933531A (en) * | 2005-09-16 | 2007-03-21 | 致伸科技股份有限公司 | Image scanner and image data compensation method |
Also Published As
Publication number | Publication date |
---|---|
CN103856682A (en) | 2014-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2014289868B2 (en) | Image compensation correction method and banknote recognition and detection device | |
US9516194B2 (en) | Method for correcting shading and scanner device | |
CN103856682B (en) | image correction method | |
CN1496096A (en) | image reading device | |
US7492488B2 (en) | Image scanning system and method for scanner | |
US20090067009A1 (en) | Image reading apparatus and image process method | |
CN1157930C (en) | Color image scanning device | |
US8462400B2 (en) | Image-reading apparatus, image-reading method and program | |
KR101090059B1 (en) | Image processing apparatus and its shading method | |
TWI510051B (en) | Image correction method | |
CN203225818U (en) | Image processing device capable of scanning two rows of data synchronously | |
JP2014030183A (en) | Image reading device, image forming apparatus including image reading device, and control method of image reading device | |
US7248388B2 (en) | Optical scanner | |
CN108462808A (en) | Photoelectric system of scanner and control method thereof | |
CN1263277C (en) | Calibration method and device for multiple calibration curves | |
US20040184112A1 (en) | Image reading apparatus | |
JP5804873B2 (en) | Image reading apparatus, image forming apparatus, and image reading method | |
US8711451B1 (en) | Image correction method | |
CN1405722A (en) | Scanning method of optical scanner | |
CN207897028U (en) | Photoelectric system of scanner | |
CN102938822A (en) | Scanning copying device and scanning calibration method | |
JP3168021B2 (en) | Image reading device | |
TW511370B (en) | Scanning method of optical scanner | |
US10070011B2 (en) | Image reading apparatus and method providing shading correction | |
JP2671802B2 (en) | Shading correction method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160713 |