JPH03208468A - Picture binarizing system - Google Patents

Picture binarizing system

Info

Publication number
JPH03208468A
JPH03208468A JP2003875A JP387590A JPH03208468A JP H03208468 A JPH03208468 A JP H03208468A JP 2003875 A JP2003875 A JP 2003875A JP 387590 A JP387590 A JP 387590A JP H03208468 A JPH03208468 A JP H03208468A
Authority
JP
Japan
Prior art keywords
peak value
shading
image signal
shading waveform
waveform
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.)
Granted
Application number
JP2003875A
Other languages
Japanese (ja)
Other versions
JP2991734B2 (en
Inventor
Mitsuhiro Nakajima
中島 光洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mutoh Industries Ltd
Original Assignee
Mutoh Industries Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Mutoh Industries Ltd filed Critical Mutoh Industries Ltd
Priority to JP2003875A priority Critical patent/JP2991734B2/en
Publication of JPH03208468A publication Critical patent/JPH03208468A/en
Application granted granted Critical
Publication of JP2991734B2 publication Critical patent/JP2991734B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To attain binarization with a proper threshold level by correcting a shading waveform obtained through the read of a white reference plate based on the peak value and an original peak value, correcting a picture signal according to the corrected shading waveform and applying binarization to the result. CONSTITUTION:A picture signal Vin is read sequentially from a picture input circuit 1 and D/A conversion is implemented at a specified sampling period by an A/D converter 6. In this case, a shading waveform VS1 is given to a reference voltage terminal of the A/D converter 6. The shading waveform VS1 is obtained by applying A/D conversion to a shading waveform VS read from a shading memory 7 based on a reference voltage being an original peak value VP and is the result of amplitude correction to the shading waveform VS by VP/VSP. Thus, the A/D-converted picture signal Vin is subject to shading correction and is a signal with a maximum amplitude where the dynamic range whose peak value reaches a full range is secured.

Description

【発明の詳細な説明】 〔産業上の利用分野] 本発明は、イメージスキャナ及び図形読取り装置等の画
像入力手段における画像2値化方式に関わり、特にシェ
ーディング補正処理を伴う画像2値化方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image binarization method in image input means such as an image scanner and a figure reading device, and particularly relates to an image binarization method involving shading correction processing. .

[従来の技術] 従来、画像信号を2値化する場合、例えば原稿レベルの
ピーク値を抵抗分割してスレッショルドレベルを決定し
たり、原稿レベルのピーク値に基づきFET等のゲイン
をコントロールすることにより画像信号のレベルを所定
のスレッショルドレベルに合わせることがなされている
[Prior Art] Conventionally, when converting an image signal into a binary image signal, for example, the peak value of the original level is divided by resistance to determine a threshold level, or the gain of an FET, etc. is controlled based on the peak value of the original level. The level of the image signal is adjusted to a predetermined threshold level.

しかし、これらの画像2値化方式では、イメージセンサ
の感度及び光源の出力等のバラツキに起因したシェーデ
ィングの影響を排除することができない。
However, these image binarization methods cannot eliminate the influence of shading caused by variations in the sensitivity of the image sensor, the output of the light source, and the like.

一方、白基準板を読み取った信号に基づいて画像信号の
シェーディング補正を行なうことは、従来から行なわれ
ているが、画像信号を2値化する場合、白基準板のレベ
ルと原稿のレベルとが相違して最適なスレッショルドレ
ベルを決定するのが難しい。
On the other hand, shading correction of image signals based on signals read from a white reference plate has been conventionally performed, but when converting image signals into binary values, the level of the white reference plate and the level of the original are different. Therefore, it is difficult to determine the optimal threshold level.

そこで、例えば前画素レベル及び前スレッシロ)Lt 
Pレベル等ヲ参照して現スレッショルドレベルをカウン
タ等によってダイナミックに変化させる方式、現画素の
周囲のnXn画素の多値データを参照して−aX/Wi
n演算又はテーブル等によりスレッショルドを決定する
方式、及び原稿レベルのピーク値に追従するピークフォ
ロワ回路の放電時定数の調整によりシェーディング補正
機能を付加した方式等も知られている。
Therefore, for example, the previous pixel level and the previous threshold) Lt
A method in which the current threshold level is dynamically changed by a counter etc. by referring to the P level, etc. -aX/Wi
Also known are a method in which the threshold is determined by n calculation or a table, and a method in which a shading correction function is added by adjusting the discharge time constant of a peak follower circuit that follows the peak value of the document level.

[発明が解決しようとする課題] しかしながら、これらの方式のうち、前二者は専用LS
I及び周辺タイミング回路が必要になる等、回路が複雑
化し且つ高価になるという欠点があり、後者は時定数の
選択が難しく、複数のピーク値に正確に追従することが
困難である。
[Problem to be solved by the invention] However, among these methods, the first two are dedicated LS
The disadvantage is that the circuit becomes complicated and expensive, such as the need for I and peripheral timing circuits, and in the latter case, it is difficult to select a time constant, and it is difficult to accurately follow a plurality of peak values.

本発明は、かかる問題点に鑑みてなされたちのであって
、シェーディング波形を考慮した適切な2値化処理が可
能で、しかも回路構成が簡単な画像2値化方式を提供す
ることを目的とする。
The present invention has been made in view of such problems, and an object of the present invention is to provide an image binarization method that can perform appropriate binarization processing in consideration of shading waveforms and has a simple circuit configuration. .

[課題を解決するための手段] 本発明に係る画像2値化方式は、白基準板を読取ってシ
ェーディング波形及びそのピーク値を保持したのち、原
稿を読取って画像信号を得ると共に前記画像信号のピー
ク値を保持し、前記シェーディング波形を、前記シェー
ディング波形のピーク値と前記画像信号のピーク値とに
基づいて修正し、この修正されたシェーディング波形で
前記画像信号を補正したのち、前記補正された画像信号
を所定の閾値で2値化することを特徴とする。
[Means for Solving the Problems] The image binarization method according to the present invention reads a white reference plate and holds the shading waveform and its peak value, and then reads the original to obtain an image signal and converts the image signal into holding the peak value, correcting the shading waveform based on the peak value of the shading waveform and the peak value of the image signal, correcting the image signal with this corrected shading waveform, and then correcting the corrected shading waveform. It is characterized in that the image signal is binarized using a predetermined threshold value.

[作用コ 本発明によれば、原稿の読取りに先立ち、白基準板を読
み取って得られたシェーディング波形を、そのピーク値
と原稿ピーク値とに基づいて修正するので、シェーディ
ング波形を原稿白レベルに適合させることができる。そ
して、この修正されたシェーディング波形によって画像
信号を補正することにより、シェーディングが除去され
ると共に、画像信号の振幅を常に一定の値にすることが
できる。このため、閾値の設定が容易になる。
[Function] According to the present invention, the shading waveform obtained by reading the white reference plate is corrected based on its peak value and the original peak value before reading the original, so that the shading waveform is adjusted to the original white level. can be adapted. By correcting the image signal using this modified shading waveform, shading can be removed and the amplitude of the image signal can always be kept at a constant value. Therefore, it becomes easy to set the threshold value.

また、本発明では、シェーディング波形及び画像信号に
対するゲイン調整がその処理の中心となり、スレッシe
ルドレベル決定のための演算を必要としないため、簡単
な回路で実現することができる。
In addition, in the present invention, gain adjustment for the shading waveform and image signal is the main focus of the processing, and the threshold
Since no calculation is required to determine the field level, it can be implemented with a simple circuit.

なお、原稿ピーク値を複数のサンプルデータに基づいて
決定することにより、原稿の画像パターンによって、万
一、正しい原稿ピーク値が得られなかった場合でも、他
のサンプルデータによって正しい原稿ピーク値を推定す
ることができるので、2値化の信頼性を高めることがで
きる。
By determining the original peak value based on multiple sample data, even if the correct original peak value cannot be obtained due to the image pattern of the original, the correct original peak value can be estimated using other sample data. Therefore, the reliability of binarization can be improved.

また、補正された画像信号を2値化する際に、2つの閾
値で量子化することにより、白画像中の黒の細線、黒画
像中の白の細線、薄い黒及び黒ずんだ白等のレベルを、
前記2つの閾値の内の少なくとも一方で検出することが
できる。そして、その検出結果である量子化パターンと
前画素の量子化パターン及び2値化結果とに基づいて現
画素を2値化することにより、上述した細線等について
も正確に2値化することができる。
In addition, when the corrected image signal is binarized, by quantizing it with two threshold values, the levels of fine black lines in a white image, thin white lines in a black image, pale black, darkened white, etc. of,
At least one of the two threshold values can be detected. Then, by binarizing the current pixel based on the quantization pattern that is the detection result, the quantization pattern of the previous pixel, and the binarization result, it is possible to accurately binarize even the thin lines mentioned above. can.

[実施例コ 以下、添付の図面に基づいて本発明の実施例について説
明する。
[Embodiments] Hereinafter, embodiments of the present invention will be described based on the accompanying drawings.

第1図は、本発明の実施例に係る画像2値化方式を実施
するための画像処理装置の構成を示したブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an image processing apparatus for implementing an image binarization method according to an embodiment of the present invention.

画像入力回路1は、ラインイメージセンサ及び同期信号
発生回路等により構成されたもので、マイクロコンピュ
ータ2によって制御され、原稿3及び白基準板4を読取
り、画像信号vI@を出力する。この画像信号v1は、
増幅器5を介してA/D変換器6に入力されている。A
/D変換器6は、白基準板4の読取り時はシェーディン
グ波形VsをA/D変換し、原稿3の読取り時は画像信
号VlfiをA/D変換する。このA/D変換器8の出
力は、シェーディングメモリ7に供給されている。
The image input circuit 1 is composed of a line image sensor, a synchronization signal generation circuit, etc., and is controlled by a microcomputer 2, reads the original 3 and the white reference plate 4, and outputs an image signal vI@. This image signal v1 is
The signal is input to an A/D converter 6 via an amplifier 5. A
The /D converter 6 A/D converts the shading waveform Vs when reading the white reference plate 4, and A/D converts the image signal Vlfi when reading the original 3. The output of this A/D converter 8 is supplied to a shading memory 7.

シェーディングメモリ7は、シェーディング波形Vsを
保持するもので、データバス1oを介してマイクロコン
ピュータ2とデータの授受が行なえるようになっている
。また、このシェーディングメモリ7の出力は、D/A
変換器11及び増幅器12を介して切替スイッチSwI
のB端子に供給されている。切替スイッチSWIのA端
子には、後述するシェーディング波形Vsのピーク値v
spが与えられるようになっている。切替スイッチSW
Iは、増幅器12の出力とシェーディングピーク値VS
pとを切替えてA/D変換器6の基準電圧端子に供給す
る。
The shading memory 7 holds the shading waveform Vs, and is capable of exchanging data with the microcomputer 2 via the data bus 1o. Moreover, the output of this shading memory 7 is D/A
Changeover switch SwI via converter 11 and amplifier 12
is supplied to the B terminal of The A terminal of the changeover switch SWI receives the peak value v of the shading waveform Vs, which will be described later.
SP is now given. Changeover switch SW
I is the output of the amplifier 12 and the shading peak value VS
p and is supplied to the reference voltage terminal of the A/D converter 6.

一方、増幅器5の出力はピークフォロワ回路13にも供
給されている。ピークフォロワ回路13は、リセット信
号RESによってリセットされたのち、増幅器5の出力
ピーク値を保持する。ピークフォロワ回路13の出力は
切替スイッチS W 2のB端子に供給されている。切
替スイッチsw2のA端子には増幅器5の出力が直接与
えられている。切替スイッチSW2はピークフォロワ回
路13と増幅器5の出力とを選択して、その出力をA/
D変換器14に供給する。A/D変換器14の基準電圧
端子には、シェーディングピーク値V8Pと固定電圧V
。とが切替スイッチsw3で切替えられて選択的に与え
られるようになっている。A/D変換器14の出力はデ
ータバス1oを介してマイクロコンピュータ2に供給さ
れている。
On the other hand, the output of the amplifier 5 is also supplied to the peak follower circuit 13. The peak follower circuit 13 holds the output peak value of the amplifier 5 after being reset by the reset signal RES. The output of the peak follower circuit 13 is supplied to the B terminal of the changeover switch SW2. The output of the amplifier 5 is directly applied to the A terminal of the changeover switch sw2. The changeover switch SW2 selects the output of the peak follower circuit 13 and the output of the amplifier 5, and converts the output to the A/
It is supplied to the D converter 14. The reference voltage terminal of the A/D converter 14 has a shading peak value V8P and a fixed voltage V8P.
. and are selectively provided by being switched by a changeover switch sw3. The output of the A/D converter 14 is supplied to the microcomputer 2 via the data bus 1o.

また、A/D変換器14の出力及びデータバス10上の
データは、D/A変換器15に取り込めるようになって
いる。D/A変換器15は、固定電圧V。を基準電圧と
して入力データをD/A変換し、その出力を増幅器16
を介してD/A変換器11の基準電圧端子に与えるもの
となっている。
Further, the output of the A/D converter 14 and the data on the data bus 10 can be taken into the D/A converter 15. The D/A converter 15 has a fixed voltage V. The input data is D/A converted using the reference voltage, and the output is sent to the amplifier 16.
The voltage is applied to the reference voltage terminal of the D/A converter 11 via.

更に、マイクロコンピュータ2がらデータバス10を介
して与えられるシェーディングピーク値vspのデータ
は、固定電圧Vcを基準電圧とするD/A変換器17に
与えられ、ここでD/A変換されたのち、増幅器18を
介して切替スイッチS W r 、S W3の各A端子
に供給されている。なお、切替スイッチSW1.sw2
.sw3は、夫々マイクロコンピュータ2からの切替信
号CI+C2,C3により切替え制御される。
Furthermore, the data of the shading peak value vsp given from the microcomputer 2 via the data bus 10 is given to the D/A converter 17 which uses the fixed voltage Vc as a reference voltage, and after being D/A converted there, The signal is supplied to each A terminal of the changeover switches S W r and S W3 via the amplifier 18 . Note that the changeover switch SW1. sw2
.. sw3 is switched and controlled by switching signals CI+C2 and C3 from the microcomputer 2, respectively.

また、A/D変換器6の出力は、2つの比較器21.2
2の各一方の端子にも供給されている。
Further, the output of the A/D converter 6 is sent to two comparators 21.2
It is also supplied to one terminal of each of the two terminals.

比較器21.22の他方の端子には、夫々マイクロコン
ピュータ2からスレッショルドレベルTu+TLが与え
られている。比較器21.22の出力はパターン判定回
路23に入力されている。パターン判定回路23は、比
較器21.22の出力と内部に保持された前画素につい
ての上記比較器21.22の出力及び2値化結果とに基
づいて2値化出力を決定し出力する。
A threshold level Tu+TL is applied from the microcomputer 2 to the other terminals of the comparators 21 and 22, respectively. The outputs of the comparators 21 and 22 are input to the pattern determination circuit 23. The pattern determination circuit 23 determines and outputs a binarized output based on the output of the comparator 21.22, the output of the comparator 21.22 for the previous pixel held internally, and the binarization result.

次に上記のように構成された本実施例に係る画像処理装
置の動作について説明する。
Next, the operation of the image processing apparatus according to this embodiment configured as described above will be explained.

画像処理は、白基準板4によるシェーディング波形の取
り込み、用紙搬送前のイニシャライズ、及び画像データ
の2値化の順に行なわれる。
Image processing is performed in the following order: capture of a shading waveform by the white reference plate 4, initialization before conveyance of paper, and binarization of image data.

第2図はシェーディング波形の取り込み処理を示すフロ
ーチャートである。
FIG. 2 is a flowchart showing the shading waveform import process.

先ず、マイクロコンピュータ2は切替スイッチsw2.
sw3を夫々端子Bに接続する(ステップS、)。続い
て、マイクロコンピュータ2がら画像入力回路1に白基
準板4の読取りのためのトリガをかける(ステップ51
2)。これにより、画像入力回路1によって白基準板4
が読み取られ、ピークフォロワ回路工3にシェーディン
グ波形のピーク値VSPが保持される。このピーク値v
spは、A/D変換器14で固定電圧V0を基準電圧と
し”l:A/D変換されたのち、マイクロコンピュータ
2にリードされ(ステップS 13) 、D / A変
換器17にセットされる(ステップs、4)。続いて、
切替スイッチSW1が端子Aに接続され(ステップ51
5)、ピーク値VsPがA/D変換器6の基準電圧とし
て与えられる。
First, the microcomputer 2 selects the changeover switch sw2.
Connect sw3 to terminal B, respectively (step S,). Next, the microcomputer 2 triggers the image input circuit 1 to read the white reference plate 4 (step 51).
2). As a result, the white reference plate 4 is controlled by the image input circuit 1.
is read, and the peak value VSP of the shading waveform is held in the peak follower circuit 3. This peak value v
sp is A/D converted by the A/D converter 14 using the fixed voltage V0 as a reference voltage, and then read by the microcomputer 2 (step S13) and set in the D/A converter 17. (Step s, 4).Subsequently,
Changeover switch SW1 is connected to terminal A (step 51).
5) The peak value VsP is given as the reference voltage of the A/D converter 6.

再びマイクロコンピュータ2がら画像入力回路1にシェ
ーディング波形の読取りのためのトリガをかけ、白基準
板4を読み取り(ステップS to)、A/D変換器6
でA/D変換する。このとき、A/D変換器6の基準電
圧としてシェーディング波形のピーク値V8Pが与えら
れているので、A/D変換出力は、第5図にVsで示す
ように、ピーク値がフルレンジ[例えば8ビツトの場合
には(FF)h]となるダイナミックレンジが確保され
た最大振幅のシェーディング波形データとなる。
The microcomputer 2 again triggers the image input circuit 1 to read the shading waveform, reads the white reference plate 4 (step S to), and then the A/D converter 6
A/D conversion is performed. At this time, since the peak value V8P of the shading waveform is given as the reference voltage of the A/D converter 6, the A/D conversion output has a peak value in the full range [e.g. In the case of bits, the shading waveform data has the maximum amplitude and has a dynamic range of (FF)h].

このデータはシェーディングメモリ7に記憶されると共
に、図示しない他のメモリにもコピーされる(ステップ
517)。また、シェーディングメモリ7はマイクロコ
ンピュータ2からリード/ライトすることも可能である
ため、必要があればデータに補正をかけるようにしても
よい。
This data is stored in the shading memory 7 and also copied to another memory (not shown) (step 517). Further, since the shading memory 7 can be read/written from the microcomputer 2, the data may be corrected if necessary.

続いて、第3図に示す用紙搬送前のイニシャライズ処理
が行なわれる。
Subsequently, the initialization process shown in FIG. 3 before conveying the paper is performed.

即チ、先ずマイクロコンピュータ2は切替スイッチSW
1を端子Bに、また切替スイッチS W 3を端子Aに
接続する(ステップS2.)。次に、D/A変換器15
に原稿ピーク値Vpのイニシャルデータをセットする(
ステップ822)。即ち、1ライン目では原稿ピーク値
Vpがどのような値になるか不明であるため、イニシャ
ルデータとして予め予想される値を使用する。次に、ピ
ークフォロワ回路13をリセットすると共に、切替スイ
ッチS W 51を端子Aにセットする(ステップ52
3)。
First of all, the microcomputer 2 is the selector switch SW.
1 to terminal B, and selector switch S W 3 to terminal A (step S2). Next, the D/A converter 15
Set the initial data of the original peak value Vp in (
step 822). That is, since it is unknown what value the document peak value Vp will be in the first line, a value expected in advance is used as the initial data. Next, the peak follower circuit 13 is reset, and the selector switch SW 51 is set to terminal A (step 52).
3).

次に、画像データの2値化処理が開始される。Next, binarization processing of the image data is started.

この処理のフローチャートを第4図に示す。A flowchart of this process is shown in FIG.

先ず、マイクロコンビニ−タ2からのスタートトリガに
よって用紙の搬送がスタートされる(ステップ831)
。同時に比較器21.22に夫々スレッシeルドレベル
TLI=TLがセットサレる(ステップ532)。
First, conveyance of paper is started by a start trigger from the microconvenitor 2 (step 831).
. At the same time, a threshold level TLI=TL is set in each of the comparators 21 and 22 (step 532).

続いて、画像入力回路1から画像信号V2..が順次読
み込まれ、A/D変換器6において規定のサンプリング
周期でA/D変換が行なわれる(ステップ533)。こ
のとき、A/D変換変換器基準電圧端子にはシェーディ
ング波形v8mが与えられる。
Subsequently, the image input circuit 1 outputs the image signal V2. .. are sequentially read, and A/D conversion is performed in the A/D converter 6 at a prescribed sampling period (step 533). At this time, the shading waveform v8m is applied to the A/D conversion converter reference voltage terminal.

このシェーディング波形VSIは、シェーディングメモ
リ7から読み出されたシェーディング波形vsを、原稿
ピーク値VP(1ライン目ではイニシャルデータ)を基
準電圧として与えてA/D変換することによって求めら
れたもので、第5図にVB2で示すように、シェーディ
ング波形VsをV p / V tapだけ振幅修正し
たものである。したがって、シェーディング波形v、1
mを基準電圧としてA/D変換された画像信号vlイは
、第6図にVlvt8で示すように、シェーディングが
補正され、且つピーク値がフルレンジ[例えば8ビツト
の場合(FF)h ]となるダダイナミックレンが確保
された最大振幅の信号となる。これより、シェーディン
グの影響、並びに白基準板と原稿とのレベル差が排除さ
れ、2値化のスレッシロルドレベルの設定が容易になる
This shading waveform VSI is obtained by A/D converting the shading waveform vs read out from the shading memory 7 using the document peak value VP (initial data in the first line) as a reference voltage. As shown by VB2 in FIG. 5, the shading waveform Vs is modified in amplitude by V p /V tap. Therefore, the shading waveform v,1
The image signal vl, which has been A/D converted using m as the reference voltage, has its shading corrected and the peak value is in the full range [for example, in the case of 8 bits (FF)h], as shown by Vlvt8 in FIG. This results in a signal of maximum amplitude with a guaranteed dynamic range. This eliminates the influence of shading as well as the level difference between the white reference plate and the document, making it easier to set the threshold level for binarization.

次に、この信号は比較器21.22において、第5図に
示すように、2つのスレツシールドレベルTu、Ttに
よって量子化される。パターン判定回路23では、比較
器21.22からの量子化出力が“00”のときは“O
”11”のときは“1”を出力し、“01”のときは、
前画素の量子化パターンを参照し、“00”のとき“1
”“11”のとき“0”01”のとき前画素の2値化デ
ータを夫々2値化データとして出力する。
This signal is then quantized in comparators 21, 22 by two threshold shield levels Tu, Tt, as shown in FIG. In the pattern determination circuit 23, when the quantized output from the comparators 21 and 22 is "00", the output is "O".
When it is “11”, it outputs “1”, and when it is “01”, it outputs “1”.
Refers to the quantization pattern of the previous pixel, and when it is “00”, it is “1”.
When it is "11," when it is "0," and when it is "01," the binarized data of the previous pixel is output as binarized data, respectively.

これにより、第5図に示すように、薄い黒及び黒ずんだ
白、又は白背景中の黒細線及び黒背景中の白細線のよう
に画像信号のレベルが周囲の明度の影響を受は易い場合
でも、正確な2値化を行なうことができ−る(ステップ
833)。
As a result, as shown in Figure 5, when the image signal level is easily affected by the brightness of the surroundings, such as pale black and dark white, or thin black lines on a white background and thin white lines on a black background, However, accurate binarization can be performed (step 833).

1ライン分の2値化が終了したら(ステップ534)、
切替スイッチSW2を端子Bにセットし、ピークフォロ
ワ回路13に保持された原稿レベルのピーク値Vpを、
vspを基準電圧としてサンプリングする(ステップS
 36)。続いてピークフォロワ回路13をリセットす
ると共に、切替スイッチSW2を端子Aにセットする(
ステップ538)。
When the binarization for one line is completed (step 534),
Set the changeover switch SW2 to terminal B, and set the peak value Vp of the document level held in the peak follower circuit 13.
Vsp is sampled as a reference voltage (step S
36). Next, reset the peak follower circuit 13 and set the selector switch SW2 to terminal A (
Step 538).

そして、次のラインの読取りの際に使用される原稿ピー
ク値Vpを決定し、これをD/A変換器15にセットす
る(ステップ537)。これを原稿が全て読み取られる
まで繰り返す(ステップ538)。
Then, the document peak value Vp to be used when reading the next line is determined and set in the D/A converter 15 (step 537). This is repeated until the entire document is read (step 538).

このように、本実施例の回路によれば、A/D変換器6
,14及びD/A変換器11の基準電圧を変えることに
より、シェーディング波形及び画像信号に対するゲイン
調整を行い、画像信号V、□の振幅を正規化しているの
で、周囲の画素を参照してスレッシールドレベルをダイ
ナミックに変動させる従来の方式よりも回路構成が簡単
であり、しかもシェーディングを確実に除去することが
できるという利点がある。
In this way, according to the circuit of this embodiment, the A/D converter 6
, 14 and the D/A converter 11, the gain is adjusted for the shading waveform and the image signal, and the amplitude of the image signal V, □ is normalized. This method has the advantage that the circuit configuration is simpler than the conventional method of dynamically varying the shield level, and shading can be reliably removed.

なお、以上の処理では、原稿ピーク値Vpが得られる位
置に白画素があることを前提としたが、その位置に黒画
素がある場合には、正しい原稿ピーク値Vpを得ること
ができない。したがって、原稿ピーク値Vpは1ライン
のデータだけで決定するのではなく、数ラインのデータ
を参照して決定するのが好ましい。
Note that in the above processing, it is assumed that there is a white pixel at the position where the document peak value Vp is obtained, but if there is a black pixel at that position, the correct document peak value Vp cannot be obtained. Therefore, it is preferable to determine the document peak value Vp by referring to several lines of data, rather than determining it based on only one line of data.

また、原稿ピーク値Vpを決定するため、1ラインの画
像データのうちの複数のデータをサンプリングし、これ
らサンプリングデータを参照して原稿ピーク値Vpを決
定するようにしても良い。
Furthermore, in order to determine the document peak value Vp, a plurality of data of one line of image data may be sampled, and the document peak value Vp may be determined by referring to these sampled data.

この処理を第8図に示す。This process is shown in FIG.

即ち、スタートトリガをかけて用紙の搬送をスタートさ
せたのち(ステップ541)、水平同期信号がON状態
でないときに(ステップS4□)、画像信号Vlt+の
A/D変換及び2値化と同時に、規定時間毎に切替スイ
ッチSW2及びA/D変換器14を介して図示しないメ
モリに画像信号Vlf、k(k=1〜m)をサンプリン
グする(ステップ543)。1ラインのサンプリングが
終了したら(ステップ544)、切替スイッチSW2端
子Bにセットして、ピークフォロワ回路13に保持され
た原稿ピーク値Vpを、vspを基準電圧としてサンプ
リングする(ステップ546)。そして、ピークフォロ
ワ回路13をリセットすると共に、切替スイッチSW2
を端子Aにセットする(ステップ548)。続いて、原
稿ピーク値Vpを次のように決定し、D/A変換器15
にセットする。これを用紙が終了するまで続行する(ス
テップ548)。
That is, after applying the start trigger to start paper conveyance (step 541), when the horizontal synchronization signal is not in the ON state (step S4□), at the same time as the A/D conversion and binarization of the image signal Vlt+, The image signal Vlf,k (k=1 to m) is sampled to a memory (not shown) via the changeover switch SW2 and the A/D converter 14 at regular time intervals (step 543). When the sampling of one line is completed (step 544), the selector switch SW2 terminal B is set to sample the document peak value Vp held in the peak follower circuit 13 using vsp as the reference voltage (step 546). Then, while resetting the peak follower circuit 13, the changeover switch SW2
is set to terminal A (step 548). Subsequently, the document peak value Vp is determined as follows, and the D/A converter 15
Set to . This continues until the paper is finished (step 548).

第7図は原稿ピーク値Vp決定方法の一例を示す図であ
る。
FIG. 7 is a diagram showing an example of a method for determining the document peak value Vp.

先ず、サンプルデータVlnkとこれに対応した位置の
シェーディングデータVskの比の分布を調べる(ステ
ップSI5.)。そして、vP/vspが、第8図に示
すように、Vlに/VElkの値の最も大きなグループ
gに含まれるかどうかを調べ(ステップS5□)、もし
含まれない場合には、グループgの代表値aとVsPと
の積を原稿ピーク値Vpとする(ステップ553)。こ
の処理により、ピークフォロワ回路13に正しい原稿ピ
ーク値Vpが得られない場合でも、支障のない処理を行
なうことができる。
First, the distribution of the ratio between the sample data Vlnk and the shading data Vsk at the corresponding position is examined (step SI5.). Then, as shown in FIG. 8, it is checked whether vP/vsp is included in the group g having the largest value of /VElk in Vl (step S5□), and if it is not included, the group g is The product of the representative value a and VsP is set as the document peak value Vp (step 553). With this process, even if the peak follower circuit 13 cannot obtain the correct document peak value Vp, the process can be performed without any problem.

[発明の効果] 以上述べたように、本発明によれば、白基準板を読み取
って得られたシェーディング波形を、そのピーク値と原
稿ピーク値とに基づき修正し、更に修正されたシェーデ
ィング波形によって画像信号を補正したのちに2値化を
行なうようにしたので、白基準板のレベルと原稿白レベ
ルとの間の不一致が是正されると共に、シェーディング
が除去されて、適切な閾値による2値化を行なうことが
できる。
[Effects of the Invention] As described above, according to the present invention, the shading waveform obtained by reading the white reference plate is corrected based on its peak value and the original peak value, and the shading waveform obtained by reading the white reference plate is corrected based on the corrected shading waveform. Since binarization is performed after correcting the image signal, the discrepancy between the white reference plate level and the document white level is corrected, shading is removed, and binarization is performed using an appropriate threshold. can be done.

また、本発明によれば、シェーディング波形及び画像信
号に対するゲイン調整を中心とした処理が行われるので
、回路構成が簡単であるという利点がある。
Further, according to the present invention, since processing is performed mainly on gain adjustment for shading waveforms and image signals, there is an advantage that the circuit configuration is simple.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の実施例に係る画像処理装置のブロック
図、第2図は同装置におけるシェーディング波形の取込
処理の流れ図、第3図は同装置におけるイニシャライズ
処理の流れ図、第4図は同装置における画像データの2
値化処理の流れ図、第5図は同装置の動作を示す波形図
、第6図及び第7図は原稿ピーク値の決定方法の一例を
示す流れ図、第8図は同決定方法においてサンプリング
されたデータの分布を示すグラフ図である。
FIG. 1 is a block diagram of an image processing device according to an embodiment of the present invention, FIG. 2 is a flowchart of shading waveform capture processing in the same device, FIG. 3 is a flowchart of initialization processing in the same device, and FIG. 2 of the image data in the same device
A flowchart of the value conversion process, FIG. 5 is a waveform diagram showing the operation of the device, FIGS. 6 and 7 are flowcharts showing an example of the method for determining the document peak value, and FIG. 8 is a waveform diagram showing the operation of the device. It is a graph diagram showing distribution of data.

Claims (3)

【特許請求の範囲】[Claims] (1)白基準板を読取ってシェーディング波形及びその
ピーク値を保持したのち、原稿を読取って画像信号を得
ると共に前記画像信号のピーク値を保持し、前記シェー
ディング波形を、前記シェーディング波形のピーク値と
前記画像信号のピーク値とに基づいて修正し、この修正
されたシェーディング波形で前記画像信号を補正したの
ち、前記補正された画像信号を所定の閾値で2値化する
ことを特徴とする画像2値化方式。
(1) After reading the white reference plate and holding the shading waveform and its peak value, reading the original to obtain an image signal and holding the peak value of the image signal, and converting the shading waveform to the peak value of the shading waveform. and a peak value of the image signal, and after correcting the image signal with the corrected shading waveform, the corrected image signal is binarized using a predetermined threshold value. Binarization method.
(2)前記画像信号のピーク値を、前記画像信号の複数
のサンプルデータを参照して決定することを特徴とする
請求項1に記載の画像2値化方式。
(2) The image binarization method according to claim 1, wherein the peak value of the image signal is determined by referring to a plurality of sample data of the image signal.
(3)前記補正された画像信号を2つの閾値で量子化し
、その量子化パターンと前画素の量子化パターン及び2
値化結果とに基づいて現画素を2値化することを特徴と
する請求項1に記載の画像2値化方式。
(3) The corrected image signal is quantized using two threshold values, and the quantization pattern, the quantization pattern of the previous pixel, and the quantization pattern of the previous pixel are
2. The image binarization method according to claim 1, wherein the current pixel is binarized based on the digitization result.
JP2003875A 1990-01-11 1990-01-11 Image binarization method Expired - Lifetime JP2991734B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003875A JP2991734B2 (en) 1990-01-11 1990-01-11 Image binarization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003875A JP2991734B2 (en) 1990-01-11 1990-01-11 Image binarization method

Publications (2)

Publication Number Publication Date
JPH03208468A true JPH03208468A (en) 1991-09-11
JP2991734B2 JP2991734B2 (en) 1999-12-20

Family

ID=11569362

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003875A Expired - Lifetime JP2991734B2 (en) 1990-01-11 1990-01-11 Image binarization method

Country Status (1)

Country Link
JP (1) JP2991734B2 (en)

Also Published As

Publication number Publication date
JP2991734B2 (en) 1999-12-20

Similar Documents

Publication Publication Date Title
US4554583A (en) Shading correction device
JPS58172061A (en) Signal processor
JPS5925267B2 (en) optical character reader
JPH03208468A (en) Picture binarizing system
GB2154827A (en) Method for correcting picture signals in image input equipment
US5453848A (en) Picture processing apparatus
JPS58134370A (en) Method and apparatus for converting analog scanning signal into binary square signal
JPS63287161A (en) Picture reader
KR0138153B1 (en) A shading compensation circuit
JPH04322575A (en) Analog/digital conversion system
JP2675079B2 (en) Binarization processing circuit
JP2698688B2 (en) Light intensity adjustment method
JPS6339140B2 (en)
JPS62195980A (en) Picture reader
JP3130558B2 (en) Image reading method
JP2670075B2 (en) Image full scale determination device
JP3226534B2 (en) Document reading device
JP3245213B2 (en) Image reading device
JPS60232775A (en) Scanning device
JPH0260372A (en) Picture processing device
JPH01137882A (en) Original shifting type optical original reader
JPH06152956A (en) Image reader
JPS59218077A (en) Picture reader
JPH02141065A (en) Original reader
JPH04311158A (en) Image reader