JPH05161005A - Envelope signal correction method for picture reader - Google Patents
Envelope signal correction method for picture readerInfo
- Publication number
- JPH05161005A JPH05161005A JP3075147A JP7514791A JPH05161005A JP H05161005 A JPH05161005 A JP H05161005A JP 3075147 A JP3075147 A JP 3075147A JP 7514791 A JP7514791 A JP 7514791A JP H05161005 A JPH05161005 A JP H05161005A
- Authority
- JP
- Japan
- Prior art keywords
- envelope signal
- signal
- correction
- pixel
- pixels
- 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.)
- Pending
Links
- 238000012937 correction Methods 0.000 title claims abstract description 64
- 238000000034 method Methods 0.000 title claims description 52
- 238000012545 processing Methods 0.000 claims abstract description 31
- 238000012935 Averaging Methods 0.000 claims description 22
- 239000000428 dust Substances 0.000 claims description 8
- 238000003705 background correction Methods 0.000 abstract description 21
- 238000006243 chemical reaction Methods 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 7
- 238000010606 normalization Methods 0.000 description 5
- 230000006866 deterioration Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
Landscapes
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は画像読取装置の包絡線信
号(読取基準信号)補正方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an envelope signal (reading reference signal) correction method for an image reading apparatus.
【0002】[0002]
【従来の技術】イメージスキャナ装置や電子黒板装置や
ファクシミリ装置やデジタルコピー装置等の画像読取装
置においては、例えば1次元CCDセンサでなる光電変
換部によって、原稿の主走査方向についての画像信号を
取出している。同一色の原稿を1ライン分読み取ったと
しても、CCDセンサから出力される1ライン分の画像
信号は変動している。これは、原稿を照射する光源の光
量が主走査方向でばらつくことがあり、また、CCDセ
ンサに結像させる光学系の主走査方向についての特性の
ばらつきなどのためである。2. Description of the Related Art In an image reading device such as an image scanner device, an electronic blackboard device, a facsimile device, a digital copying device, etc., an image signal in the main scanning direction of an original is picked up by a photoelectric conversion section composed of, for example, a one-dimensional CCD sensor. ing. Even if the same color original is read for one line, the image signal for one line output from the CCD sensor varies. This is because the light amount of the light source that irradiates the original may vary in the main scanning direction, and the characteristics of the optical system that forms an image on the CCD sensor in the main scanning direction may vary.
【0003】そこで、例えば基準白地を読み取った際の
主走査方向の画像信号を読取基準信号(以下、包絡線信
号と呼ぶ)として記憶しておき、原稿を読み取った際の
画像信号をこの包絡線信号を基に補正して処理すること
が行われている。例えば、包絡線信号を、原稿からの画
像信号をアナログ/デジタル変換する際の基準レベルと
したりしている。Therefore, for example, an image signal in the main scanning direction when a reference white background is read is stored as a read reference signal (hereinafter referred to as an envelope signal), and an image signal when a document is read is stored in the envelope. Correction and processing are performed based on the signal. For example, the envelope signal is used as a reference level when analog / digital converting an image signal from a document.
【0004】このように基準として用いられる包絡線信
号自体が誤っているものであれば、原稿からの読取り画
像信号の処理精度を低下させる。そこで、従来、各種の
画像読取装置には、イメージセンサから得られた包絡線
信号を補正してそれに含まれているノイズ成分等を軽減
させる包絡線信号補正回路が設けられている。If the envelope signal itself used as the reference is erroneous in this way, the processing accuracy of the image signal read from the original document is deteriorated. Therefore, conventionally, various image reading apparatuses are provided with an envelope signal correction circuit that corrects an envelope signal obtained from an image sensor to reduce noise components and the like contained in the envelope signal.
【0005】図2は、従来のこの種の包絡線信号補正回
路を示すブロック図である。FIG. 2 is a block diagram showing a conventional envelope signal correction circuit of this type.
【0006】この図2に示す補正回路は、例えば基準白
地を読み取った際の包絡線信号を、複数用いて最終的な
補正後包絡線信号を得るものであり、1次元CCDセン
サ1、増幅器2、アナログ/デジタルコンバータ3、ラ
ッチ回路4、マグニチュードコンパレータ5、包絡線信
号メモリ6及び制御回路7から構成されている。The correction circuit shown in FIG. 2 obtains a final corrected envelope signal by using a plurality of envelope signals when a reference white background is read, for example, and the one-dimensional CCD sensor 1 and the amplifier 2 are provided. , Analog / digital converter 3, latch circuit 4, magnitude comparator 5, envelope signal memory 6 and control circuit 7.
【0007】基準白地から読み取られ、CCDセンサ1
によって光電変換された後、増幅器2及びアナログ/デ
ジタルコンバータ3を順次介してデジタル信号に変換さ
れた最初のラインの包絡線信号は、制御回路7の制御下
でラッチ回路4をそのまま介して包絡線信号メモリ6に
与えられて記憶される。CCD sensor 1 read from a reference white background
The envelope signal of the first line, which is photoelectrically converted by the amplifier 2 and then converted into a digital signal through the analog / digital converter 3 in sequence, is controlled by the control circuit 7 and then the envelope circuit via the latch circuit 4 as it is. It is given to the signal memory 6 and stored.
【0008】アナログ/デジタルコンバータ3から出力
された次のラインについてのデジタル包絡線信号は、制
御回路7の制御下で、画素単位に次のように処理され
る。すなわち、その画素信号はラッチ回路4に与えられ
てラッチされると共に、マグニチュードコンパレータ5
に与えられて包絡線信号メモリ6から読み出された主走
査方向が同一位置の画素信号と大小比較され、この際の
包絡線信号の画素値が大きい場合には、これがラッチ回
路4から包絡線信号メモリ6に与えられてその位置の値
と置き換えられる。The digital envelope signal for the next line output from the analog / digital converter 3 is processed as follows in pixel units under the control of the control circuit 7. That is, the pixel signal is given to the latch circuit 4 and latched, and at the same time, the magnitude comparator 5
Is compared with the pixel signal at the same position in the main scanning direction read from the envelope signal memory 6 and the pixel value of the envelope signal at this time is large, this is detected from the latch circuit 4 by the envelope signal. It is given to the signal memory 6 and replaced with the value at that position.
【0009】このような次のラインのデジタル包絡線信
号についての画素単位の処理が全て終了した時点では、
最初のライン及び次のラインの2ライン分の包絡線信号
の対応画素値のうち大きい画素値が包絡線信号メモリ6
の各画素エリアに格納される。At the time when all the pixel-by-pixel processing for the digital envelope signal of the next line is completed,
Of the corresponding pixel values of the envelope signals for the two lines of the first line and the next line, the larger pixel value is the envelope signal memory 6
Are stored in each pixel area of.
【0010】その後のラインからの包絡線信号について
も、上述と同様な処理が実行され、結局、包絡線信号メ
モリ6の各画素エリアには、全ての包絡線信号の中で最
も大きい画素値が格納され、この格納内容が最終的な補
正後包絡線信号となる。With respect to the envelope signal from the subsequent line, the same processing as described above is executed, and as a result, each pixel area of the envelope signal memory 6 has the largest pixel value of all envelope signals. It is stored, and this stored content becomes the final corrected envelope signal.
【0011】この従来回路では、基準白地にごみや汚れ
があっても、複数ラインからの包絡線信号の中には、基
準白地に対する本来の大きい値が含まれていることを前
提としている。In this conventional circuit, it is premised that the envelope signal from a plurality of lines includes an originally large value for the reference white background even if the reference white background has dust or dirt.
【0012】[0012]
【発明が解決しようとする課題】しかしながら、上述し
た包絡線信号補正回路では、基準白地の複数ラインをC
CDセンサで読み、最も大きい値を白レベルとして包絡
線信号を決定する方式であるため、多少のごみや汚れに
ついては補正できるが、ごみや汚れが全ラインに亘る場
合には、このごみや汚れによって包絡線信号レベルが落
ち込み、本来あるべき包絡線信号と異なってしまうとい
う問題点があった。However, in the envelope signal correction circuit described above, a plurality of lines of the reference white background are C
Since it is a method of reading with a CD sensor and determining the envelope signal with the maximum value as the white level, some dust and dirt can be corrected, but when dust and dirt spread over the entire line, this dust and dirt can be corrected. This causes a problem that the envelope signal level drops and the envelope signal is different from what it should be.
【0013】これを避けようとすると、基準白地を読み
取るライン数を多くすることを要し、処理時間がかかる
ものとなる。また、原稿の一部領域を基準白地としてい
る場合には、ライン数が多くなることは問題が大きい。In order to avoid this, it is necessary to increase the number of lines for reading the reference white background, which results in a long processing time. Further, when a partial white area of the document is used as a reference white background, the increase in the number of lines is a serious problem.
【0014】基準白地レベルが最も大きくなるべきもの
ではあるが、実際上、包絡線信号の決定時に外来ノイズ
により基準の白地レベルより高いレベルが発生すること
がある。従来の回路では、このノイズによる高いレベル
をそのまま補正後包絡線信号に含めてメモリに記憶して
おり、問題が多い。Although the reference white background level should be the highest, in practice, a level higher than the reference white background level may occur due to external noise when the envelope signal is determined. In the conventional circuit, the high level due to this noise is included in the corrected envelope signal as it is and stored in the memory, which is problematic.
【0015】さらに、従来回路では、基準白地の複数ラ
インを読み取り、主走査方向の同一位置の画素のうち最
も大きいレベルを白レベルとしてメモリに残すために、
その比較等をハードウエア構成によって行なっており、
そのため、ハードウエア構成が複雑になり、高価になる
という問題点があった。Further, in the conventional circuit, in order to read a plurality of lines of the reference white background and leave the highest level among the pixels at the same position in the main scanning direction as the white level in the memory,
The comparison is done by the hardware configuration,
Therefore, there is a problem that the hardware configuration becomes complicated and expensive.
【0016】本発明は、以上の点を考慮してなされたも
のであり、基準領域にごみや汚れがあっても、また読み
取り包絡線信号にノイズが混入していても、良好な包絡
線信号を得ることができる、しかも全体構成の小形化も
可能な画像読取装置の包絡線信号補正方法を提供しよう
とするものである。The present invention has been made in consideration of the above points, and a good envelope signal can be obtained even if the reference area is dusty or dirty, and noise is mixed in the read envelope signal. It is an object of the present invention to provide an envelope signal correction method for an image reading apparatus, which is capable of obtaining the above-mentioned characteristics and which is capable of downsizing the entire structure.
【0017】[0017]
【課題を解決するための手段】本発明は、同一色でなる
基準領域を主走査方向に読み取って得た画像信号を包絡
線信号として記憶し、その後、この包絡線信号を上記基
準領域におけるごみや汚れによるレベルの落込みや外来
ノイズによるレベル変動を除去するように補正し、原稿
を読み取って得た画像信号を補正後包絡線信号に基づい
て補正する画像読取装置に関するものであり、読取動作
で得られた包絡線信号から最終的な補正後包絡線信号を
得る方法に特徴を有するものである。According to the present invention, an image signal obtained by reading a reference area of the same color in the main scanning direction is stored as an envelope signal, and then the envelope signal is trashed in the reference area. The present invention relates to an image reading apparatus that corrects a level drop due to dirt and dirt and a level fluctuation due to external noise, and corrects an image signal obtained by reading a document based on a corrected envelope signal. The method is characterized by a method for obtaining a final corrected envelope signal from the envelope signal obtained in (1).
【0018】すなわち、補正後包絡線信号の値を求めよ
うとしている現在対象となっている画素を中心とした、
所定画素数ずつ離間している読取動作による包絡線信号
の複数の画素の値を取出し、これらの画素値を重み付け
平均して現在対象となっている補正後包絡線信号の画素
値を得て、読取動作による包絡線信号から補正後包絡線
信号を得るようにしたことを特徴とする。That is, centering on the currently targeted pixel for which the value of the corrected envelope signal is to be obtained,
The values of a plurality of pixels of the envelope signal by the reading operation, which are separated by a predetermined number of pixels, are taken out, and these pixel values are weighted and averaged to obtain the pixel value of the corrected envelope signal which is the current target, It is characterized in that a corrected envelope signal is obtained from the envelope signal by the reading operation.
【0019】なお、所定画素数ずつ離間している読取動
作による包絡線信号の複数の画素の値を取出し、これら
の画素値を平均してその複数の画素の中間に位置する画
素の値を求め、かかる処理を上記包絡線信号の全範囲に
対して実行して上記包絡線信号に対する1回目の補正を
行ない、この1回目の補正方法と同一の方法を、繰返し
実行することで、上述した重付け平均処理を実行した最
終的な補正後包絡線信号を得るようにすることが好まし
い。The values of a plurality of pixels of the envelope signal obtained by the reading operation, which are separated by a predetermined number of pixels, are taken out, and these pixel values are averaged to obtain the value of the pixel located in the middle of the plurality of pixels. By performing this processing for the entire range of the envelope signal to perform the first correction on the envelope signal, and repeatedly executing the same method as the first correction method, It is preferable to obtain the final corrected envelope signal after performing the weighted averaging process.
【0020】[0020]
【作用】基準領域を主走査方向に読み取って得た包絡線
信号には、基準領域におけるごみや汚れによるレベルの
落込みや外来ノイズによるレベル変動が含まれている。The envelope signal obtained by reading the reference area in the main scanning direction contains a level drop due to dust and dirt in the reference area and a level fluctuation due to external noise.
【0021】本発明のように、読取動作にかかる包絡線
信号の複数の画素の値を取出し、これらの画素値を重み
付け平均すれば、これによってレベルの落込みや突起を
除去することができ、良好な補正後包絡線信号を得るこ
とができる。As in the present invention, if the values of a plurality of pixels of the envelope signal related to the reading operation are extracted and these pixel values are weighted and averaged, it is possible to remove the level drop and the protrusion. A good corrected envelope signal can be obtained.
【0022】このような補正方法を多くの場合ソフトウ
ェアによって実行するので、所定画素数ずつ離間してい
る読取動作による包絡線信号の複数の画素の値を取出
し、これらの画素値を平均してその複数の画素の中間に
位置する画素の値を求め、かかる処理を上記包絡線信号
の全範囲に対して実行して上記包絡線信号に対する1回
目の補正を行ない、この1回目の補正方法と同一の方法
を、繰返し実行することで、上述の重付け平均処理を実
行するようにして、ソフトウェアの変更の容易性やメモ
リ容量の削減を計るようにすることが好ましい。Since such a correction method is often executed by software, the values of a plurality of pixels of the envelope signal due to the reading operation, which are separated by a predetermined number of pixels, are taken out, and these pixel values are averaged to obtain the value. The value of a pixel located in the middle of a plurality of pixels is obtained, and such processing is executed for the entire range of the envelope signal to perform the first correction on the envelope signal, which is the same as the first correction method. It is preferable that the above method is repeatedly executed to execute the above-mentioned weighted averaging process so that the software can be easily changed and the memory capacity can be reduced.
【0023】[0023]
【実施例】以下、本発明の実施例を図面を参照しながら
詳述する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0024】まず、本発明の第1実施例について説明す
る。First, a first embodiment of the present invention will be described.
【0025】図1は第1実施例による包絡線信号の補正
方法を示すフローチャート、図3はこの実施例にかかる
画像読取装置の入力部周りの構成を示すブロック図であ
る。FIG. 1 is a flow chart showing a method of correcting an envelope signal according to the first embodiment, and FIG. 3 is a block diagram showing a configuration around an input section of an image reading apparatus according to this embodiment.
【0026】図3において、例えば白地でなる基準領域
(以下、「基準白地」と呼ぶ)10は、図示しない原稿
が載置される透光性のプラテン面12の副走査方向(Y
方向)の読取開始位置に近接した外部に主走査方向(X
方向)に延びて設けられている。この基準白地10の主
走査方向の長さは、プラテン面12の主走査方向の読取
最大可能範囲XR をカバーし、それより長く選定されて
いる。なお、プラテン面12は、主走査方向にも読取最
大可能範囲XR より少し広い範囲XW 、副走査方向にも
読取最大可能範囲YR より少し広い範囲YW だけ開口し
ているものである。In FIG. 3, a reference area 10 formed of, for example, a white background (hereinafter referred to as “reference white background”) 10 is a sub-scanning direction (Y) of a translucent platen surface 12 on which an original document (not shown) is placed.
Main scanning direction (X
Direction). The length of the reference white background 10 in the main scanning direction covers the maximum scannable range XR of the platen surface 12 in the main scanning direction, and is selected longer than that. The platen surface 12 is opened in the main scanning direction by a range XW slightly wider than the maximum readable range XR and in the sub-scanning direction by a range YW slightly wider than the maximum readable range YR.
【0027】読取光学系(スキャナ)11は、主走査方
向に伸びる1次元イメージセンサとしてのCCDセンサ
11bと、プラテン面12に載置されている原稿や基準
白地10からの読取画像をこのCCDセンサ11bに結
像させる対物レンズ11aとを含んで構成されている。
このスキャナ11は、基準白地10の読取時には所定位
置に固定されて読取動作を実行し、原稿の読取時には図
示しないモータ等によって副走査方向に順次走行されな
がら読取動作を繰返し実行する。The reading optical system (scanner) 11 is a CCD sensor 11b as a one-dimensional image sensor extending in the main scanning direction, and an image read from a document placed on the platen surface 12 or a reference white background 10 by this CCD sensor. The objective lens 11a for forming an image on 11b is included.
The scanner 11 is fixed to a predetermined position to perform the reading operation when reading the reference white background 10, and repeatedly performs the reading operation while sequentially traveling in the sub scanning direction by a motor or the like (not shown) when reading the document.
【0028】制御回路22は例えばマイクロプロセッサ
等で構成されていて当該画像読取装置全体を制御するも
のである。制御回路22は、図示しないパルスジェネレ
ータを制御してスキャナ11に対してシフトパルスSH
及び制御クロックCLを与える。スキャナ11はこれら
信号に基づいて他の各部動作と同期して読取動作を実行
し、CCDセンサ11bによって光電変換した読取画像
信号を増幅器13に出力する。増幅器13はスキャナ1
1から出力された画像信号を一定レベルまで増幅して正
規化回路14に出力する。The control circuit 22 is composed of, for example, a microprocessor and controls the entire image reading apparatus. The control circuit 22 controls a pulse generator (not shown) to shift pulse SH to the scanner 11.
And a control clock CL. Based on these signals, the scanner 11 executes a reading operation in synchronization with the operation of each of the other parts, and outputs a read image signal photoelectrically converted by the CCD sensor 11b to the amplifier 13. The amplifier 13 is the scanner 1
The image signal output from 1 is amplified to a certain level and output to the normalization circuit 14.
【0029】この正規化回路14は、図示しない光源の
照射ムラや対物レンズ11aによる周辺光量劣化特性等
の読取光学系特性を補正するための回路である。すなわ
ち、基準白地10からの読取画像信号を読取光学系特性
を示す包絡線信号として格納しておき、原稿からの読取
画像信号をこの包絡線信号を利用して補正して読取光学
系特性のばらつきによる影響を取り除くものである。な
お、読取光学系特性のばらつきによる影響を取り除くた
めに利用される包絡線信号としては、基準白地から読み
取られた包絡線信号をそのまま用いるのではなく、それ
を補正して用いるようになされている。The normalizing circuit 14 is a circuit for correcting reading optical system characteristics such as irradiation unevenness of a light source (not shown) and peripheral light amount deterioration characteristics due to the objective lens 11a. That is, the read image signal from the reference white background 10 is stored as an envelope signal indicating the characteristics of the reading optical system, and the read image signal from the document is corrected by using this envelope signal to vary the characteristics of the reading optical system. The effect of is removed. The envelope signal read from the reference white background is not used as an envelope signal used to remove the influence of variations in the characteristics of the reading optical system, but is used after being corrected. ..
【0030】正規化回路14は、アナログ/デジタル変
換部(A/D変換部)15、ラッチ部16、デジタル/
アナログ変換部(D/A変換部)17、アナログスイッ
チ18、シェーディング補正メモリ19、カウンタ20
及びセレクタ21から構成されている。制御回路22
も、この正規化回路14の一部を構成するものとなって
いる。The normalization circuit 14 includes an analog / digital converter (A / D converter) 15, a latch 16, and a digital / digital converter.
Analog converter (D / A converter) 17, analog switch 18, shading correction memory 19, counter 20
And a selector 21. Control circuit 22
Also constitutes a part of the normalization circuit 14.
【0031】A/D変換部15は、増幅器13からのア
ナログ画像信号をアナログ基準電圧Vref を基準として
デジタル画像信号に変換するものであり、得られたデジ
タル画像信号をデータ線15aに出力する。基準白地1
0を読み取ったアナログ画像信号に対しては、固定値V
P のアナログ基準電圧Vref がA/D変換部15に与え
られ、入力されたアナログ画像信号に比例したデジタル
画像信号(包絡線信号)が出力される。他方、原稿を読
み取ったアナログ画像信号に対しては、包絡線信号に応
じたアナログ基準電圧Vref がA/D変換部15に与え
られ、アナログ画像信号に含まれている読取光学系特性
のばらつきによる影響を取り除いたデジタル画像信号を
出力する。The A / D converter 15 converts the analog image signal from the amplifier 13 into a digital image signal with the analog reference voltage Vref as a reference, and outputs the obtained digital image signal to the data line 15a. Standard white background 1
For analog image signals that read 0, a fixed value V
The analog reference voltage Vref of P is given to the A / D converter 15, and a digital image signal (envelope signal) proportional to the input analog image signal is output. On the other hand, with respect to the analog image signal obtained by reading the original, the analog reference voltage Vref corresponding to the envelope signal is given to the A / D conversion unit 15, which causes a variation in the characteristics of the reading optical system included in the analog image signal. The digital image signal without the influence is output.
【0032】原稿読取時にA/D変換部15から出力さ
れたデジタル画像信号は、正規化回路14の次段回路た
る画像処理部23に与えられ、各種の処理が施される。
この画像処理部23には、制御回路22から制御信号が
与えられ、また図示しないパルスジェネレータからシフ
トパルスSH及び制御クロックCLが与えられ、他の各
部と同期しながら所定の処理を実行する。例えば、入力
されたデジタル画像信号に対して、2値化やハーフトー
ン化や多値化や拡大・縮小化等の処理を行なう。The digital image signal output from the A / D conversion unit 15 at the time of reading the original is given to the image processing unit 23, which is the next stage circuit of the normalization circuit 14, and is subjected to various processes.
The image processing unit 23 receives a control signal from the control circuit 22 and a shift pulse SH and a control clock CL from a pulse generator (not shown), and executes a predetermined process in synchronization with other units. For example, processing such as binarization, halftone conversion, multi-value conversion, enlargement / reduction, etc. is performed on the input digital image signal.
【0033】ラッチ部16は、制御回路22の制御下で
データ線15aのデジタル画像信号を後述するシェーデ
ィング補正メモリ19のデータバス線19aへラッチ出
力するものである。このラッチ部16が機能するのは基
準白地10からの読取動作中であり、すなわち、ラッチ
部16はデジタル画像信号が包絡線信号のときに機能す
るものである。The latch section 16 latches and outputs the digital image signal of the data line 15a to the data bus line 19a of the shading correction memory 19, which will be described later, under the control of the control circuit 22. The latch unit 16 functions during the reading operation from the reference white background 10, that is, the latch unit 16 functions when the digital image signal is an envelope signal.
【0034】シェーディング補正メモリ19は、包絡線
信号を記憶するものである。シェーディング補正メモリ
19は、基準白地10からの読取動作中には、制御回路
22の制御下でデータバス線19aを介して与えられた
包絡線信号の書込み動作を実行する。後述する包絡線信
号の補正動作時(図1参照)には、データバス線19a
に対して包絡線信号を出力したり、データバス線19a
上の包絡線信号を書込んだりする。原稿からの読取動作
中には、記憶している包絡線信号を繰返し出力したりす
る。The shading correction memory 19 stores the envelope signal. The shading correction memory 19 executes the writing operation of the envelope signal given via the data bus line 19 a under the control of the control circuit 22 during the reading operation from the reference white background 10. During the envelope signal correction operation described later (see FIG. 1), the data bus line 19a
The envelope signal to the data bus line 19a
Write the envelope signal above. During the reading operation from the original, the stored envelope signal is repeatedly output.
【0035】カウンタ20は、1インクリメント構成の
アップカウンタでなり、シフトパルスSH及び制御クロ
ックCLに基づいて、シェーディング補正メモリ19に
対するアドレスを発生するものであり、発生したアドレ
スをアドレスバス線20aに出力する。基準白地10か
らの読取動作中には、この出力アドレスがシェーディン
グ補正メモリ19に対する書込みアドレスとなり、原稿
からの読取動作中には、この出力アドレスがシェーディ
ング補正メモリ19に対する読出しアドレスとなる。The counter 20 is an up-counter having a 1-increment structure and generates an address for the shading correction memory 19 based on the shift pulse SH and the control clock CL, and outputs the generated address to the address bus line 20a. To do. During the read operation from the reference white background 10, this output address becomes the write address for the shading correction memory 19, and during the read operation from the original, this output address becomes the read address for the shading correction memory 19.
【0036】セレクタ21には、カウンタ20からのア
ドレスバス線20aに加えて制御回路22からのアドレ
スバス線22aが接続されており、制御信号線22bを
介した制御回路22からの制御信号に基づき、いずれか
のアドレスを選択し、シェーディング補正メモリ19に
対するアドレスバス線19bに出力する。基準白地10
からの読取動作中及び原稿からの読取動作中には、カウ
ンタ20からのアドレスを選択し、後述する包絡線信号
の補正動作中には、制御回路22からのアドレスを選択
する。In addition to the address bus line 20a from the counter 20, an address bus line 22a from the control circuit 22 is connected to the selector 21, and based on the control signal from the control circuit 22 via the control signal line 22b. , Any address is selected and output to the address bus line 19b for the shading correction memory 19. Standard white background 10
The address from the counter 20 is selected during the reading operation from the document and the reading operation from the document, and the address from the control circuit 22 is selected during the envelope signal correcting operation described later.
【0037】D/A変換部17は、シェーディング補正
メモリ19からデータバス線19aに出力されたデジタ
ル包絡線信号をアナログ信号に変換してアナログスイッ
チ18に出力するものである。この変換は、原稿からの
読取動作中に有効に機能する。The D / A converter 17 converts the digital envelope signal output from the shading correction memory 19 to the data bus line 19a into an analog signal and outputs the analog signal to the analog switch 18. This conversion works effectively during the reading operation from the original.
【0038】アナログスイッチ18は、制御回路22か
らの制御信号に基づいて、基準白地10からの読取動作
中には固定電圧VP を選択し、原稿からの読取動作中に
はD/A変換部17からのアナログ包絡線信号を選択し
てA/D変換部15に基準電圧Vref として与えるもの
である。The analog switch 18 selects the fixed voltage VP during the reading operation from the reference white background 10 based on the control signal from the control circuit 22, and the D / A converter 17 during the reading operation from the original. The analog envelope signal from is selected and given to the A / D converter 15 as the reference voltage Vref.
【0039】なお、制御回路22は、上述した各種の制
御動作を実行すると共に、この実施例の場合、包絡線信
号の補正動作も実行するものである。The control circuit 22 executes the above-mentioned various control operations and, in the case of this embodiment, also performs the envelope signal correction operation.
【0040】次に、図3に示す構成を有する画像読取装
置の基本的な動作を、図4の各部タイミングチャートを
も用いて説明する。Next, the basic operation of the image reading apparatus having the configuration shown in FIG. 3 will be described with reference to the timing chart of each part of FIG.
【0041】制御回路22は、まず図示しないモータ駆
動回路を介して図示しないモータを駆動して、スキャナ
11を基準白地10を読み取る位置に移動させる。その
後、制御回路22は、アナログスイッチ18を制御して
一定電圧VP がA/D変換部15のアナログ基準電圧V
ref となるようにし、また、セレクタ21を制御してカ
ウンタ20からのアドレスがシェーディング補正メモリ
19に与えられるようにする。この状態で、スキャナ1
1の読取開始のタイミングを図るために、図示しないタ
イミングジェネレータからシフトパルスSH(図4
(A))及び主走査方向の制御クロックCL(図4
(B))を出力させる。これらシフトパルスSH及び制
御クロックCLは同期のタイミングをとるためカウンタ
20等にも与えられる。スキャナ11にシフトパルスS
Hが入力されるとスキャナ11のCCDセンサ11bは
シフトパルスSHの時点から時間T0後に、制御クロッ
クCLにタイミングを合わせてC0 個の全画素からの画
像信号を増幅器13にシリアルに出力する。なお、時間
T0 及び画素数C0 はCCDセンサ11bの特性によっ
て決まる。The control circuit 22 first drives a motor (not shown) via a motor drive circuit (not shown) to move the scanner 11 to a position where the reference white background 10 is read. After that, the control circuit 22 controls the analog switch 18 so that the constant voltage VP is the analog reference voltage V of the A / D converter 15.
In addition, the selector 21 is controlled so that the address from the counter 20 is given to the shading correction memory 19. In this state, the scanner 1
In order to set the timing of starting reading of No. 1, a shift pulse SH (see FIG.
(A)) and a control clock CL in the main scanning direction (see FIG. 4).
(B)) is output. The shift pulse SH and the control clock CL are also given to the counter 20 and the like in order to synchronize the timing. Shift pulse S to the scanner 11
When H is input, the CCD sensor 11b of the scanner 11 serially outputs the image signals from all the C0 pixels to the amplifier 13 at time T0 from the time of the shift pulse SH, in synchronization with the control clock CL. The time T0 and the number of pixels C0 are determined by the characteristics of the CCD sensor 11b.
【0042】この基準白地10を読み取って得たアナロ
グ画像信号(包絡線信号)は、増幅器13を介して増幅
された後、固定電圧VP であるアナログ基準電圧Vref
を基準としてA/D変換部15によってデジタル包絡線
信号に変換される。デジタル包絡線信号は、ラッチ部1
6を経てシェーディング補正メモリ19に与えられて記
憶される。An analog image signal (envelope signal) obtained by reading the reference white background 10 is amplified by an amplifier 13 and then fixed at an analog reference voltage Vref which is a fixed voltage VP.
Is converted into a digital envelope signal by the A / D conversion unit 15. The digital envelope signal is sent to the latch unit 1
It is given to the shading correction memory 19 via 6 and stored.
【0043】A/D変換部15が固定電圧VP のアナロ
グ基準電圧Vref を基準にしているので、アナログ包絡
線信号の波形形状はデジタル包絡線信号でも維持され
る。すなわち、ごみや汚れやノイズ等によってアナログ
包絡線信号に落込み信号や突起信号が混入されている
と、デジタル包絡線信号にも図4(C)に示すようにそ
れらの不要な信号が混入される。Since the A / D converter 15 uses the analog reference voltage Vref of the fixed voltage VP as a reference, the waveform shape of the analog envelope signal is maintained even in the digital envelope signal. That is, if a drop signal or a protrusion signal is mixed in the analog envelope signal due to dust, dirt, noise, or the like, unnecessary signals are mixed in the digital envelope signal as shown in FIG. 4C. It
【0044】なお、光源の照射むらや対物レンズ11b
の周辺光量の劣化特性のために、同一色の基準白地10
を読み取っていても、多くの場合、包絡線信号は、主走
査方向の中央部からのレベルが大きく、それより遠くな
るに従いレベルが小さい緩やかな山形形状を有するもの
となっている。The irradiation unevenness of the light source and the objective lens 11b
Due to the deterioration characteristics of the peripheral light amount of the
However, in many cases, the envelope signal has a gentle mountain shape in which the level from the central portion in the main scanning direction is large and the level becomes smaller as the distance from the central portion increases.
【0045】このような包絡線信号の格納動作が終了す
ると、制御回路22は包絡線信号の補正動作を実行す
る。すなわち、格納された包絡線信号が落込み信号や突
起信号を含んでいても、それを、図4(D)に示すよう
な本来あるべき包絡線信号形状に近付けるように補正し
てシェーディング補正メモリ19に再格納する。かかる
補正動作は、図1に示すようにソフトウェア的に実行さ
れるものであり、その詳細は後述する。なお、この補正
動作時のメモリ19に対するアドレスは、制御回路22
が発生し、セレクタ21で選択されてメモリ19に与え
られるようになされている。When the envelope signal storing operation as described above is completed, the control circuit 22 executes the envelope signal correcting operation. That is, even if the stored envelope signal includes a drop signal or a protrusion signal, the shading correction memory is corrected by correcting it so as to approximate the original envelope signal shape as shown in FIG. 4D. Store again in 19. The correction operation is executed by software as shown in FIG. 1, and its details will be described later. The address for the memory 19 during this correction operation is the control circuit 22.
Occurs, is selected by the selector 21 and is given to the memory 19.
【0046】制御回路22は、このような包絡線信号の
補正動作の終了後に原稿の読み取り動作を実行する。こ
のときには、制御回路22は、シフトパルスSHや制御
クロックCLを出力させる前に、アナログスイッチ18
をD/A変換部17からの補正後のアナログ包絡線信号
を選択する状態にさせると共に、セレクタ21をカウン
タ20からのアドレスを選択する状態にさせる。このよ
うな状態でスキャナ11で読み取られた原稿からの画像
信号も増幅器13を介して増幅された後にA/D変換部
15に与えられる。このときには、A/D変換部15に
は、補正後包絡線信号がアナログ基準電圧Vref として
与えられているので、この包絡線信号を基準として読み
取られた画像信号をアナログ/デジタル変換し、光源の
照射むらや対物レンズ11bの周辺光量の劣化特性によ
る画像信号の変動を補正して、すなわち同一の白レベル
を基準とした画像信号に変換して画像処理部23に出力
する。The control circuit 22 executes the reading operation of the document after the correction operation of the envelope signal is completed. At this time, the control circuit 22 outputs the shift pulse SH and the control clock CL before outputting the analog switch 18
To select the corrected analog envelope signal from the D / A converter 17, and set the selector 21 to select the address from the counter 20. The image signal from the original read by the scanner 11 in such a state is also amplified by the amplifier 13 and then given to the A / D converter 15. At this time, since the corrected envelope signal is given as the analog reference voltage Vref to the A / D conversion unit 15, the image signal read with this envelope signal as a reference is subjected to analog / digital conversion to obtain the light source of the light source. The fluctuation of the image signal due to the irradiation unevenness and the deterioration characteristic of the peripheral light amount of the objective lens 11b is corrected, that is, converted into the image signal with the same white level as a reference and output to the image processing unit 23.
【0047】次に、包絡線信号の補正動作(補正処理)
を詳述する。なお、この補正動作は、上述したように制
御回路22がメモリ19より包絡線信号を取出し、それ
を補正した後書込むことを繰返すことで実行される。Next, the correction operation of the envelope signal (correction processing)
Will be described in detail. It should be noted that this correction operation is executed by the control circuit 22 retrieving the envelope signal from the memory 19, correcting it, and then writing it, as described above.
【0048】まず、図5を用いて、この実施例による補
正原理を説明する。図5において、Dj (j=0、1、
…、N、…i+N、…)はシェーディング補正メモリ1
9の番地(画素順序に対応している)jに書込まれた補
正前の包絡線信号のデジタル値(画素値)である。今、
補正対象の画素位置をi+Nとすると、制御回路22
は、原理的には、次式に従う平均処理によって補正デジ
タル値D’i+N を求める。First, the correction principle according to this embodiment will be described with reference to FIG. In FIG. 5, Dj (j = 0, 1,
..., N, ... i + N, ...) is the shading correction memory 1
It is the digital value (pixel value) of the envelope signal before correction written in the address 9 (corresponding to the pixel order). now,
If the pixel position to be corrected is i + N, the control circuit 22
In principle, calculates the corrected digital value D'i + N by the averaging process according to the following equation.
【0049】[0049]
【数1】 [Equation 1]
【0050】実際上は、メモリ19からデジタル値Di
、Di+N 及びDi+2Nを読出してこの(1) 式を実行し、
得られた補正デジタル値D’i+N をデジタル値Di+N が
格納されていたメモリ19の番地に再格納することにな
る。In practice, the digital value Di from the memory 19 is
, Di + N and Di + 2N are read, and this equation (1) is executed,
The obtained corrected digital value D'i + N is stored again in the address of the memory 19 where the digital value Di + N was stored.
【0051】このような平均化処理を、少なくとも主走
査方向の読取可能最大範囲XR 内の全画素について補正
デジタル値が得られるように行なう。Such an averaging process is performed so that corrected digital values can be obtained for at least all the pixels within the maximum readable range XR in the main scanning direction.
【0052】このような平均処理によると、図5から明
らかなように、落込み信号や突起信号部分が平均化され
て補正後のデジタル包絡線信号においてはその落込み量
や突起量が小さくなる。According to such an averaging process, as is apparent from FIG. 5, the drop signal and the projection signal portion are averaged, and the drop amount and the projection amount are small in the corrected digital envelope signal. ..
【0053】図6は、図4(C)に示す包絡線信号を補
正した補正後の包絡線信号を示すものである。図6
(A)は、上記(1) 式による補正演算を1回実行した結
果を示すものである。補正によって落込み量及び突起量
は小さくはなるが、まだまだその量は大きい。そこで、
この実施例の場合、(1) 式に従う補正演算を複数回繰返
すこととした。図6(B)は(1) 式による補正演算を2
回繰返した結果を示し、図6(C)は(1) 式による補正
演算を3回繰返した結果を示している。このように(1)
式による補正演算を複数回繰返すことによって、本来の
包絡線信号の形状に近付けることができる。FIG. 6 shows a corrected envelope signal obtained by correcting the envelope signal shown in FIG. 4 (C). Figure 6
(A) shows the result of executing the correction calculation once by the above equation (1). The correction reduces the drop amount and the protrusion amount, but the amount is still large. Therefore,
In the case of this embodiment, the correction calculation according to the equation (1) is repeated a plurality of times. FIG. 6B shows the correction calculation by the equation (1)
FIG. 6C shows the result of repeating the correction calculation by the equation (1) three times. Like this (1)
By repeating the correction calculation by the formula a plurality of times, the shape of the original envelope signal can be approximated.
【0054】なお、平均化処理に供する画素を規定する
Nは、補正効果を考慮して選定すべきものであり、ま
た、読取可能最大範囲XR 内の全画素について正しい補
正デジタル値が得られるように選定する必要がある。左
端の画素D0 、D1 …DN-1 及び右端のN画素は補正さ
れないが、一般に、画素読取装置はCCDセンサ11b
の総画素C0 を全て使うものでなく両端の画素はカット
される。従って、Nの値はこのカット画素数に応じて選
定する必要があり、このように選定すると(1) 式が適用
されない画素があっても問題が生じることはない。ま
た、このNの値や補正計算回数は基準白板10のごみや
汚れによる落ち込み量と突起量により経験的に決められ
るべきものである。It should be noted that N that defines the pixels to be subjected to the averaging process should be selected in consideration of the correction effect, and that correct correction digital values can be obtained for all the pixels within the maximum readable range XR. It is necessary to select it. The pixels D0, D1 ... DN-1 at the left end and the N pixels at the right end are not corrected, but in general, the pixel reading device has a CCD sensor 11b.
Not using all the total pixels C0 of the above, but the pixels at both ends are cut. Therefore, it is necessary to select the value of N according to the number of cut pixels, and if it is selected in this way, no problem will occur even if there is a pixel to which the equation (1) is not applied. Further, the value of N and the number of correction calculations should be empirically determined by the amount of drop and the amount of protrusion of the reference white plate 10 due to dust or dirt.
【0055】なお、上記原理説明では、説明の簡単化を
期して3画素を平均化する例を示したが、奇数画素数な
ら更に多い画素数を用いても良く、M画素を利用するも
のとして(1) 式を一般化して表すと、次式に示すように
なる。In the above description of the principle, an example in which three pixels are averaged has been shown for the sake of simplification of description, but a larger number of pixels may be used if the number of pixels is an odd number, and it is assumed that M pixels are used. The generalized expression of equation (1) is as shown in the following equation.
【0056】[0056]
【数2】 [Equation 2]
【0057】次に、この(2) 式に示す補正演算をL回繰
返す際の制御回路22による補正処理を、図1を用いて
説明する。Next, the correction process by the control circuit 22 when the correction calculation shown in the equation (2) is repeated L times will be described with reference to FIG.
【0058】なお、図1において、hは(2) 式の演算の
現在の繰返し回数を示すパラメータ、iは平均演算に供
する最も若い番地の画素を示すパラメータ、rは総和パ
ラメータ、mは平均演算に供する何番目の画素かを示す
パラメータ、d’は平均値パラメータであり、各パラメ
ータh、i、r、m、d’は制御回路22内部のレジス
タに格納されるものである。また、Mは平均演算に用い
る画素数、Lは(2) 式の演算繰返し回数、Nは平均演算
に用いる最も近接している画素間の距離(画素数表
示)、C0 は最終番地を示し、これら固定データは制御
回路22内のデータメモリに予め格納されている。 制
御回路22は、まず、パラメータh、i、r及びmをこ
の順序で初期化する(ステップ50〜53)。すなわ
ち、パラメータh、i及びrをそれぞれ0に、パラメー
タmを1にする。In FIG. 1, h is a parameter indicating the current number of iterations of the operation of equation (2), i is a parameter indicating the pixel of the youngest address to be used in the average calculation, r is a summation parameter, and m is the average calculation. , D'is an average value parameter, and each parameter h, i, r, m, d'is stored in a register inside the control circuit 22. Further, M is the number of pixels used for the average calculation, L is the number of times the calculation of formula (2) is repeated, N is the distance between the closest pixels used for the average calculation (pixel number display), C0 is the final address, These fixed data are stored in advance in the data memory in the control circuit 22. The control circuit 22 first initializes the parameters h, i, r, and m in this order (steps 50 to 53). That is, the parameters h, i, and r are each set to 0, and the parameter m is set to 1.
【0059】次いで、制御回路22は、現在のパラメー
タi、mと常数Nとからi+(m−1)Nの計算を行な
い、この値i+(m−1)Nで指定されるシェーディン
グ補正メモリ19の画素データDi+(m-1)Nを読み出す
(ステップ54)。その後、総和パラメータrに読出し
た画素データDi+(m-1)Nを加え、その加算値を新たな総
和パラメータrにしてレジスタに格納する(ステップ5
5)。次に、パラメータmを1インクリメントした後、
パラメータmが固定値M+1より小さいことを確認して
上述のステップ54に戻る(ステップ56、57)。Next, the control circuit 22 calculates i + (m-1) N from the current parameters i and m and the constant N, and the shading correction memory 19 specified by this value i + (m-1) N. The pixel data Di + (m-1) N is read out (step 54). After that, the read pixel data Di + (m-1) N is added to the total sum parameter r, and the added value is stored in the register as a new total sum parameter r (step 5).
5). Next, after incrementing the parameter m by 1,
After confirming that the parameter m is smaller than the fixed value M + 1, the process returns to the above step 54 (steps 56 and 57).
【0060】このようなステップ54〜57でなる処理
ループを、パラメータmが固定値Mに等しくなってステ
ップ57で肯定結果が得られるまで繰返す。ステップ5
7で肯定結果が得られた時点においては、総和パラメー
タrの内容は、画素iを最初の画素としその後N画素ず
つ異なる計M個の画素i、i+N、…、i+(M−1)
Nの画素データの総和ΣDi+(m-1)Nとなっている。The processing loop consisting of steps 54 to 57 is repeated until the parameter m becomes equal to the fixed value M and a positive result is obtained in step 57. Step 5
When a positive result is obtained in 7, the content of the summation parameter r has a total of M pixels i, i + N, ..., I + (M−1), in which the pixel i is the first pixel and N pixels are different thereafter.
The sum total of N pixel data is ΣDi + (m-1) N.
【0061】このようにして平均演算に供する総和部分
の演算が終了すると、値i+(M−1)Nと最終画素を
示す値C0 とを大小比較して、(2) 式による今回の演算
が各画素について一巡していないことを確認する(ステ
ップ58)。When the calculation of the summation part to be used for the averaging is completed in this way, the value i + (M-1) N and the value C0 indicating the final pixel are compared in magnitude, and the current calculation by the equation (2) is performed. It is confirmed that one cycle has not been completed for each pixel (step 58).
【0062】そして、総和パラメータrを固定値Mで除
算することで平均値を求め、この平均値r/Mを平均値
パラメータd’のレジスタに格納する(ステップ5
9)。その後、この平均値パラメータd’を、値i+
(M−1)N/2で指定されるシェーディング補正メモ
リ19の番地、すなわち、平均処理に用いた複数画素の
中間位置の画素の番地に書込む(ステップ60)。この
ようにしてステップ52〜60でなるパラメータiを固
定した処理が終了すると、パラメータiを1インクリメ
ントして次の画素を平均演算の開始画素として上述した
ステップ52に戻る(ステップ61)。Then, an average value is obtained by dividing the total sum parameter r by a fixed value M, and this average value r / M is stored in the register of the average value parameter d '(step 5
9). After that, the average value parameter d ′ is set to the value i +
(M-1) Write to the address of the shading correction memory 19 designated by N / 2, that is, the address of the pixel at the intermediate position of the plurality of pixels used for the averaging process (step 60). When the process of fixing the parameter i in steps 52 to 60 is completed in this way, the parameter i is incremented by 1 and the next pixel is set as the start pixel of the average calculation, and the process returns to step 52 described above (step 61).
【0063】ステップ52〜61でなる処理ループを繰
返し実行することで、メモリ19内の包絡線信号に対す
る補正処理が各画素について順次行なわれていき、やが
て(2) 式によるh+1回目の補正演算が終了してステッ
プ58で肯定結果が得られる。By repeatedly executing the processing loop consisting of steps 52 to 61, the correction processing for the envelope signal in the memory 19 is sequentially performed for each pixel, and eventually the (h + 1) th correction calculation by the equation (2) is performed. Upon completion, a positive result is obtained at step 58.
【0064】このときにはパラメータhを1インクリメ
ントしてレジスタに格納し直した後、(2)式による演算
を所定回数であるL回繰返していないことを確認して上
述したステップ51に戻り、次の回数の補正演算を実行
する(ステップ62、63)。At this time, after the parameter h is incremented by 1 and stored again in the register, it is confirmed that the calculation by the equation (2) has not been repeated L times, which is a predetermined number of times, and the process returns to the above-mentioned step 51 to proceed to the next step. The correction calculation of the number of times is executed (steps 62 and 63).
【0065】(2)式による演算を所定回数であるL回繰
返した場合には、ステップ63で肯定結果が得られ、一
連の包絡線信号の補正処理を終了する。When the calculation by the equation (2) is repeated L times which is a predetermined number of times, a positive result is obtained in step 63, and the series of envelope signal correction processing ends.
【0066】なお、この図1に示す処理を実行する場合
には、シェーディング補正メモリ19として主走査方向
の2ライン分の包絡線信号を格納できるものを用意して
おくことを要する。そして、基準白地10からの読取包
絡線信号及び補正が偶数回実行された包絡線信号と、補
正が奇数回実行された包絡線信号との格納エリアを異な
るようにして、補正済み画素値が同一回数の演算に利用
されることを防止することを要する。When executing the processing shown in FIG. 1, it is necessary to prepare a shading correction memory 19 capable of storing envelope signals for two lines in the main scanning direction. Then, the read envelope signal from the reference white background 10 and the envelope signal for which the correction has been executed an even number of times and the envelope signal for which the correction has been executed an odd number are made different in storage area so that the corrected pixel values are the same. It is necessary to prevent it from being used for the calculation of the number of times.
【0067】上述した実施例によれば、複数の画素値の
平均処理によって補正を行なうと共に、平均処理を繰返
すようにしたので、包絡線信号の落ち込みや突起を確実
に補正することができる。According to the above-described embodiment, since the correction is performed by the averaging process of a plurality of pixel values and the averaging process is repeated, it is possible to reliably correct the dip and the protrusion of the envelope signal.
【0068】また、最終的な補正後包絡線信号を得るの
に必要な基準白地10の読取回数は1回(1ライン)で
良く、基準白地10の領域が従来より少なくて良い。Further, the number of times of reading the reference white background 10 required to obtain the final corrected envelope signal may be one (1 line), and the area of the reference white background 10 may be smaller than in the conventional case.
【0069】上述の実施例によれば、最も時間がかかる
基準白地10の読取動作は1ラインについて行なえば良
く、包絡線信号の補正をソフトウェア的に実行している
ので、従来に比して処理時間を短くすることができる。
また、包絡線信号の補正のためのハードウェア構成が少
なくなって装置全体を小形化することができる。According to the above-described embodiment, the reading operation of the reference white background 10 which takes the longest time may be performed for one line, and since the correction of the envelope signal is executed by software, the processing is performed as compared with the conventional method. The time can be shortened.
Further, the hardware configuration for correcting the envelope signal is reduced, and the entire device can be downsized.
【0070】次に本発明の第2実施例を図7及び図8に
基づいて説明する。Next, a second embodiment of the present invention will be described with reference to FIGS. 7 and 8.
【0071】本第2実施例においては制御回路22に図
7及び図8のフローチャートで示す補正処理が格納され
ている。また、この第2実施例においても前記(2) 式に
示す補正演算をL回繰返すものとする。In the second embodiment, the control circuit 22 stores the correction processing shown in the flowcharts of FIGS. 7 and 8. Also in this second embodiment, the correction calculation shown in the equation (2) is repeated L times.
【0072】なお、本実施例において、各パラメータは
前記第1実施例とほぼ同様である。この各パラメータを
概説すると、hは(2) 式の演算の現在の繰返し回数を示
すパラメータ、iは平均演算に供する最も若い番地の画
素を示すパラメータ、mは平均演算に供する何番目の画
素かを示すパラメータ、rは総和Σd(k)のパラメー
タ、kはこれらパラメータの総和Σd(k)を計算する
ためのカウントパラメータ、d′は平均値パラメータで
ある。さらに、本実施例ではパラメータとしてd
(1)、d(2)、…d(M−1)、d(M)を用い
る。これらd(1)、d(2)、…d(M−1)、d
(M)は画素データDi、Di+N、…Di+(M−
2)N、Di+(M−1)Nをそれぞれ格納するための
M個のパラメータである。そして、上記各パラメータは
制御回路22内部のレジスタに格納される。In this embodiment, each parameter is almost the same as that in the first embodiment. Outline of each of these parameters, h is a parameter indicating the current number of iterations of the calculation of equation (2), i is a parameter indicating the pixel of the youngest address to be used in the average calculation, and m is the number of the pixel used in the average calculation. Is a parameter of the total sum Σd (k), k is a count parameter for calculating the total sum Σd (k) of these parameters, and d ′ is an average value parameter. Further, in this embodiment, d is used as a parameter.
(1), d (2), ... d (M−1), d (M) are used. These d (1), d (2), ... d (M-1), d
(M) is the pixel data Di, Di + N, ... Di + (M-
2) M parameters for storing N and Di + (M-1) N, respectively. Then, each of the above parameters is stored in a register inside the control circuit 22.
【0073】また、Mは平均演算に用いる画素数、Lは
(2)式の演算繰り返し回数、Nは平均演算に用いる最も
近接している画素数の距離(画素数表示)、C0は最終
番地を示し、これら固定データも前記第1実施例と同様
に制御回路22内のデータメモリに予め格納されてい
る。Further, M is the number of pixels used for averaging, and L is
Equation (2) is the number of iterations, N is the distance of the closest number of pixels used for averaging (pixel number display), C0 is the final address, and these fixed data are also controlled as in the first embodiment. It is stored in advance in the data memory in the circuit 22.
【0074】図7及び図8において制御回路22は、ま
ず、パラメータh、i及びmをこの順序で初期化する
(ステップ70〜72)。すなわちパラメータh及びi
を0に、パラメータmを1にする。In FIGS. 7 and 8, the control circuit 22 first initializes the parameters h, i and m in this order (steps 70 to 72). That is, the parameters h and i
To 0 and the parameter m to 1.
【0075】次いで、制御回路22は、現在のパラメー
タi、mと常数Nとからi+(m−1)Nの計算を行
い、この値i+(m−1)Nで指定されるシェーディン
グ補正メモリ19の画素データDi+(m−1)Nを読
み出す(ステップ73)。その後、この読み出した画素
データDi+(m−1)Nをパラメータd(m)に設定
する(ステップ74)。次に、パラメータmを1インク
リメントし(ステップ75)、パラメータmが固定値M
より小さいことを確認して(ステップ76)、上述のス
テップ73に戻る。このようなステップ73〜76でな
る処理ループを、パラメータmが固定値Mに等しくなっ
てステップ76で肯定結果が得られるまで繰り返す。ス
テップ76で肯定結果が得られた時点において、(M−
1)個のパラメータd(1)、d(2)、…d(M−
1)が設定され、パラメータmは固定値Mになる。Next, the control circuit 22 calculates i + (m-1) N from the current parameters i and m and the constant N, and the shading correction memory 19 designated by this value i + (m-1) N. The pixel data Di + (m-1) N is read (step 73). Then, the read pixel data Di + (m-1) N is set to the parameter d (m) (step 74). Next, the parameter m is incremented by 1 (step 75), and the parameter m is a fixed value M.
After confirming that it is smaller (step 76), the process returns to step 73 described above. The processing loop including steps 73 to 76 is repeated until the parameter m becomes equal to the fixed value M and a positive result is obtained in step 76. When a positive result is obtained in step 76, (M-
1) number of parameters d (1), d (2), ... d (M-
1) is set, and the parameter m becomes the fixed value M.
【0076】次に制御回路22はi+(m−1)Nで指
定されるシェーディング補正メモリ19の画素データD
i+(m−1)Nを読み出す(ステップ77)。ここで
パラメータxをmに置き換える(ステップ78)。現在
のパラメータmはm=Mとなっているため、読み出され
た画素データはDi+(M−1)Nであり、この画素デ
ータをパラメータd(M)に設定する(ステップ7
9)。ここまでで、パラメータd(1)、d(2)、…
d(M)が全て設定される。Next, the control circuit 22 controls the pixel data D of the shading correction memory 19 designated by i + (m-1) N.
i + (m-1) N is read (step 77). Here, the parameter x is replaced with m (step 78). Since the current parameter m is m = M, the read pixel data is Di + (M-1) N, and this pixel data is set in the parameter d (M) (step 7).
9). Up to this point, the parameters d (1), d (2), ...
All d (M) are set.
【0077】次いで、パラメータk、rをそれぞれ0に
初期化する(ステップ80、81)。さらに、パラメー
タkを1インクリメントし(ステップ82)、総和パラ
メータrに前記各画素データを格納しているパラメータ
d(k)を加え、その加算値を新たな総和パラメータr
にしてレジスタに格納する(ステップ83)。次に、パ
ラメータkが固定値Mより小さいことを確認し(ステッ
プ84)、上述のステップ82に戻る。このようなステ
ップ82〜84でなる処理ループを、パラメータkが固
定値Mに等しくなってステップ84で肯定結果が得られ
るまで繰り返す。ステップ84で肯定結果が得られた時
点において総和パラメータrの内容は、画素iを最初の
画素としてその後N画素ずつ異なる計M個の画素i、i
+N、…、i+(M−1)Nの画素データの総和ΣDi
+(m−1)Nとなっている。Next, the parameters k and r are initialized to 0 (steps 80 and 81). Further, the parameter k is incremented by 1 (step 82), the parameter d (k) storing each pixel data is added to the total sum parameter r, and the added value is added to the new total sum parameter r.
And store in the register (step 83). Next, it is confirmed that the parameter k is smaller than the fixed value M (step 84), and the process returns to step 82 described above. The processing loop including steps 82 to 84 is repeated until the parameter k becomes equal to the fixed value M and a positive result is obtained in step 84. At the time point when a positive result is obtained in step 84, the content of the summation parameter r is such that the pixel i is the first pixel, and the number of pixels is different by N pixels after that.
+ N, ..., i + (M−1) N sum of pixel data ΣDi
It is + (m-1) N.
【0078】このようにして平均演算に供する総和部分
の演算が終了すると、値i+(m−1)Nと最終画素を
示す値C0とを大小比較して、N画素ずつ離れた各画素
の演算が最後まで終了していないことを確認する(ステ
ップ85)。次いで、総和パラメータrを固定値Mで除
算することで平均値を求め、この平均値r/Mを平均値
パラメータd’のレジスタに格納する(ステップ8
6)。その後、この平均値パラメータd’を値i+(m
−1)N/2で指定されるシェーディング補正メモリ1
9の番地、すなわち、平均処理に用いた複数画素の中間
位置の画素の番地に書き込む(ステップ87)。このよ
うにして、ステップ77〜87でなるパラメータi及び
mを固定した処理が終了とすると、パラメータkを0に
初期化する(ステップ88)。次にパラメータkを1イ
ンクリメントし(ステップ89)、パラメータd(k+
1)のレジスタに格納されている画素データを1つ前の
パラメータd(k)のレジスタに移す(ステップ9
0)。kがM−1になっていないことを確認して(ステ
ップ91)、ステップ89に戻る。そして、ステップ8
9〜91でなる処理ループをパラメータkが固定値Mよ
り1少ない値、即ちM−1と等しくなってステップ91
で肯定結果が得られるまで繰り返す。ステップ91で肯
定結果が得られた時点においては、パラメータd
(1)、d(2)、…d(M−1)には画素データDi
+N、Di+2N、…、Di+(M−1)Nが格納され
る。このようにしてステップ77〜91でなるパラメー
タmを固定した処理が終了すると、パラメータmを1イ
ンクリメントし、即ちパラメータmをM+1とし(ステ
ップ92)、パラメータxをx−1、即ちMとして(ス
テップ93)、上述のステップ77に戻る。そして、ス
テップ77でi+(M)N番地の画素データDi+
(M)Nを読出し、パラメータxをmに置き換える(ス
テップ78)。即ち、d(x)をd(M)として、ステ
ップ79でd(M)にDi+(M)Nを格納する。これ
により、パラメータd(1)、d(2)、…d(M)が
すべて設定される。When the calculation of the summation part to be used for the average calculation is completed in this way, the value i + (m-1) N and the value C0 indicating the final pixel are compared in magnitude, and the calculation of each pixel separated by N pixels is performed. It is confirmed that is not completed to the end (step 85). Next, the sum total parameter r is divided by a fixed value M to obtain an average value, and this average value r / M is stored in the register of the average value parameter d ′ (step 8).
6). Then, the average value parameter d ′ is set to the value i + (m
-1) Shading correction memory 1 specified by N / 2
The data is written in the address of 9, that is, the address of the pixel at the intermediate position of the plurality of pixels used for the averaging process (step 87). In this way, when the process of fixing the parameters i and m in steps 77 to 87 ends, the parameter k is initialized to 0 (step 88). Next, the parameter k is incremented by 1 (step 89), and the parameter d (k +
The pixel data stored in the register of 1) is moved to the register of the previous parameter d (k) (step 9).
0). After confirming that k is not M-1 (step 91), the process returns to step 89. And step 8
In the processing loop consisting of 9 to 91, the parameter k becomes 1 less than the fixed value M, that is, equal to M−1.
Repeat until a positive result is obtained with. When a positive result is obtained in step 91, the parameter d
(1), d (2), ... D (M-1) have pixel data Di
+ N, Di + 2N, ..., Di + (M−1) N are stored. When the process of fixing the parameter m in steps 77 to 91 is completed in this way, the parameter m is incremented by 1, that is, the parameter m is set to M + 1 (step 92), and the parameter x is set to x−1, that is, M (step 93) and returns to step 77 above. Then, in step 77, the pixel data Di + of the address i + (M) N
(M) N is read and the parameter x is replaced with m (step 78). That is, d (x) is set to d (M), and Di + (M) N is stored in d (M) in step 79. As a result, all the parameters d (1), d (2), ... D (M) are set.
【0079】そして、ステップ77〜93でなる処理ル
ープを繰り返し実行することで、メモリ19内の包絡線
信号に対する補正処理がN画素間離れた各画素について
順次行われていき、最後まで処理した時点で、ステップ
85によって肯定結果が得られる。このときにはパラメ
ータiを1インクリメントする(ステップ94)。さら
にN回繰り返してi=Nになっていないことを確認して
(ステップ95)、となり合う次の画素を平均演算の開
始画素として上述したステップ72に戻る。そして、ス
テップ72〜95までの処理を繰り返し、ステップ95
で肯定結果が得られた時点で(2)式によるメモリ19内
の包絡線信号に対する全画素のN+1回目の補正演算が
終了する。このときにはパラメータhを1インクリメン
トしてレジスタに格納し直し(ステップ96)、(2)式
による演算を所定回数であるL回繰り返していないこと
を確認して(ステップ97)、上述したステップ71に
戻って次の回の補正演算を実行する。(2)式による演算
を所定回数であるL回繰り返した場合には、ステップ9
7で肯定結果が得られ、一連の包絡線信号の補正処理を
終了する。Then, by repeatedly executing the processing loop consisting of steps 77 to 93, the correction processing for the envelope signal in the memory 19 is sequentially performed for each pixel separated by N pixels, and when the processing is completed to the end. At step 85, a positive result is obtained. At this time, the parameter i is incremented by 1 (step 94). Further, N times is repeated and it is confirmed that i = N is not satisfied (step 95), and the next adjacent pixel is set as the start pixel of the average calculation, and the process returns to step 72 described above. Then, the processing of steps 72 to 95 is repeated, and step 95
When an affirmative result is obtained in (2), the (N + 1) th correction calculation of all pixels for the envelope signal in the memory 19 by the equation (2) ends. At this time, the parameter h is incremented by 1 and stored again in the register (step 96), and it is confirmed that the calculation by the equation (2) is not repeated L times, which is a predetermined number of times (step 97), and the above step 71 is performed. After returning, the correction calculation of the next time is executed. If the calculation by the equation (2) is repeated L times which is a predetermined number of times, step 9
An affirmative result is obtained at 7, and the series of envelope signal correction processing ends.
【0080】これにより、前記第1実施例と同様の作
用、効果を奏する。さらに、本実施例ではステップ89
〜91により1度読み出した画素データをそのまま使用
し、同じ画素データの読出し処理を省略したので、処理
の高速化を図ることができるようになる。As a result, the same operation and effect as those of the first embodiment can be obtained. Further, in this embodiment, step 89
Since the pixel data read once once is used as it is and the reading process of the same pixel data is omitted, the processing speed can be increased.
【0081】なお、上述の第1実施例においては、平均
化処理を繰返して包絡線信号を補正するものを示した
が、平均化処理を繰返すことは重付け平均化処理と等価
であるので、1回の重付け平均化処理によって包絡線信
号を補正するようにしても良い。但し、上記実施例の方
法は、1回の重付け平均化処理に比較して、ソフトウェ
アの変更が容易である、プログラムメモリの必要容量が
少なくて済む、という利点を有する。In the first embodiment described above, the averaging process is repeated to correct the envelope signal. However, since repeating the averaging process is equivalent to the weighted averaging process, The envelope signal may be corrected by performing the weighted averaging process once. However, the method of the above embodiment has the advantages that the software can be changed easily and the required capacity of the program memory can be reduced, as compared with one-time weighted averaging processing.
【0082】また、上述の第1実施例においては、平均
化処理に供する画素数が奇数のものを示したが、平均化
処理に供する画素数が偶数であっても良い。この場合に
は、平均化処理に供する複数の画素として、補正後の画
素位置のものを含めずにしかも補正後の画素位置を中心
とした対称な位置の画素を選定することを要する。In the first embodiment described above, the number of pixels subjected to the averaging process is odd, but the number of pixels subjected to the averaging process may be even. In this case, it is necessary to select, as the plurality of pixels to be subjected to the averaging process, pixels at positions symmetrical with respect to the pixel position after correction without including those at the pixel position after correction.
【0083】さらに、第1及び第2実施例においては、
基準白地10として原稿の空き領域を利用するものであ
っても良い。この場合、従来と異なって、読取ラインが
1ラインであるので、原稿面の有効利用を計ることがで
きる。なお、基準領域は上記実施例のような白地に限定
されるものではない。Furthermore, in the first and second embodiments,
An empty area of the document may be used as the reference white background 10. In this case, unlike the conventional case, since the reading line is one line, the document surface can be effectively used. The reference area is not limited to the white background as in the above embodiment.
【0084】[0084]
【発明の効果】以上のように、本発明によれば、基準領
域を読み取って得た包絡線信号を、その複数の画素の重
付け平均によって補正するようにしたので、基準領域に
ごみや汚れがあっても、また読取り包絡線信号にノイズ
が混入していても、良好な補正後包絡線信号を得ること
ができ、しかも全体構成の小形化を可能とすることがで
きる。As described above, according to the present invention, the envelope signal obtained by reading the reference area is corrected by the weighted average of the plurality of pixels. However, even if noise is mixed in the read envelope signal, a good corrected envelope signal can be obtained, and the overall structure can be downsized.
【図1】本発明の第1実施例による画像読取装置の包絡
線信号補正方法を示すフローチャートである。FIG. 1 is a flowchart showing an envelope signal correction method for an image reading apparatus according to a first embodiment of the present invention.
【図2】従来の包絡線信号補正回路を示すブロック図で
ある。FIG. 2 is a block diagram showing a conventional envelope signal correction circuit.
【図3】本発明の第1実施例にかかる画像読取装置を示
すブロック図である。FIG. 3 is a block diagram showing an image reading apparatus according to the first embodiment of the present invention.
【図4】図3の画像読取装置の動作の説明に供する信号
波形図である。FIG. 4 is a signal waveform diagram for explaining the operation of the image reading apparatus in FIG.
【図5】第1実施例による補正原理を示す説明図であ
る。FIG. 5 is an explanatory diagram showing a correction principle according to the first embodiment.
【図6】第1実施例にかかる補正回数と補正後包絡線信
号との関係を示す説明図である。FIG. 6 is an explanatory diagram showing a relationship between the number of corrections and a corrected envelope signal according to the first embodiment.
【図7】本発明の第2実施例による画像読取装置の包絡
線信号補正方法を示すフローチャート(その1)であ
る。FIG. 7 is a flowchart (No. 1) showing an envelope signal correction method for the image reading apparatus according to the second embodiment of the present invention.
【図8】本発明の第2実施例による画像読取装置の包絡
線信号補正方法を示すフローチャート(その2)であ
る。FIG. 8 is a flowchart (No. 2) showing the envelope signal correction method for the image reading apparatus according to the second embodiment of the present invention.
10…基準白地 11 スキャナ 14 正規化回路 19 シェーディング補正メモリ 22 制御回路。 10 ... Standard white background 11 Scanner 14 Normalization circuit 19 Shading correction memory 22 Control circuit.
Claims (2)
み取って得た画像信号を包絡線信号として記憶し、その
後、この包絡線信号を上記基準領域におけるごみや汚れ
によるレベルの落込みや外来ノイズによるレベル変動を
除去するように補正し、原稿を読み取って得た画像信号
を補正後包絡線信号に基づいて補正する画像読取装置に
おいて、 上記補正後包絡線信号の値を求めようとしている現在対
象となっている画素を中心とした、所定画素数ずつ離間
している上記包絡線信号の複数の画素の値を取出し、こ
れらの画素値を重み付け平均して現在対象となっている
上記補正後包絡線信号の画素値を得て、上記包絡線信号
から補正後包絡線信号を得るようにしたことを特徴とす
る画像読取装置の包絡線信号補正方法。1. An image signal obtained by reading a reference area of the same color in the main scanning direction is stored as an envelope signal, and then the envelope signal is reduced in level due to dust or dirt in the reference area. An image reading apparatus that corrects so as to eliminate level fluctuations due to external noise and corrects an image signal obtained by reading a document based on the corrected envelope signal is trying to obtain the value of the corrected envelope signal. The values of a plurality of pixels of the envelope signal, which are separated from each other by a predetermined number of pixels around the pixel of current interest, are taken out, and these pixel values are weighted and averaged to correct the current objective of correction. An envelope signal correction method for an image reading apparatus, wherein a pixel value of a post-envelope signal is obtained, and a post-correction envelope signal is obtained from the envelope signal.
信号の複数の画素を取出し、これらの画素値を平均して
その複数の画素の中間に位置する画素の値を求め、かか
る処理を上記包絡線信号の全範囲に対して実行して上記
包絡線信号に対する1回目の補正を行ない、この1回目
の補正方法と同一の方法を、繰返し実行することで、上
記重付け平均処理を実行した最終的な上記補正後包絡線
信号を得るようにしたことを特徴とする請求項1に記載
の画像読取装置の包絡線信号補正方法。2. A plurality of pixels of the envelope signal separated by a predetermined number of pixels are taken out, these pixel values are averaged to obtain a value of a pixel located in the middle of the plurality of pixels, and such processing is performed. The weighted averaging process is performed by performing the first correction on the envelope signal by executing it on the entire range of the envelope signal and repeatedly executing the same method as the first correction method. 2. The envelope signal correction method for an image reading apparatus according to claim 1, wherein the final corrected envelope signal is obtained.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3075147A JPH05161005A (en) | 1990-10-19 | 1991-04-08 | Envelope signal correction method for picture reader |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27939790 | 1990-10-19 | ||
| JP2-279397 | 1990-10-19 | ||
| JP3075147A JPH05161005A (en) | 1990-10-19 | 1991-04-08 | Envelope signal correction method for picture reader |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05161005A true JPH05161005A (en) | 1993-06-25 |
Family
ID=26416297
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3075147A Pending JPH05161005A (en) | 1990-10-19 | 1991-04-08 | Envelope signal correction method for picture reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05161005A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9732749B2 (en) | 2009-09-08 | 2017-08-15 | Hugo Vogelsang Maschinenbau Gmbh | Rotary piston pump having converging inlet and outlet openings for conveying a fluid medium containing solids |
-
1991
- 1991-04-08 JP JP3075147A patent/JPH05161005A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9732749B2 (en) | 2009-09-08 | 2017-08-15 | Hugo Vogelsang Maschinenbau Gmbh | Rotary piston pump having converging inlet and outlet openings for conveying a fluid medium containing solids |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0834543B2 (en) | Scanner | |
| JP3664231B2 (en) | Color image processing device | |
| JPH0879529A (en) | Image processing device | |
| JPH08172532A (en) | Image reading apparatus and reading method | |
| JPH0888772A (en) | Image forming device | |
| JPH117524A (en) | Image reading device | |
| US6028966A (en) | Image reading apparatus and method including pre-scanning | |
| JPH05161005A (en) | Envelope signal correction method for picture reader | |
| JP2000069251A (en) | Exposure control device for image reading device | |
| JP2610696B2 (en) | Image signal processing device | |
| US6995802B2 (en) | Image binarization method and binary image creation method | |
| JP3512462B2 (en) | Black isolated point removal device | |
| JP3358133B2 (en) | Image processing device | |
| JPH06197220A (en) | Image reader | |
| JP2673690B2 (en) | Image reading device | |
| JP2672541B2 (en) | Image processing device | |
| JP3615961B2 (en) | Exposure control apparatus for image reading apparatus | |
| JPH06253141A (en) | Picture reader | |
| JP3563996B2 (en) | Exposure control device for image reading device | |
| JP2004289846A (en) | System and method for compensating for noise in a captured image | |
| JPH08251408A (en) | Image processing device | |
| JP2934971B2 (en) | Image binarization processing device | |
| JP4311138B2 (en) | Data processing device for performing multiple data input / output processing | |
| JP2671802B2 (en) | Shading correction method | |
| JPH0575859A (en) | Mtf correction device |