JPH0336880A - Binarizing processing method - Google Patents

Binarizing processing method

Info

Publication number
JPH0336880A
JPH0336880A JP1171422A JP17142289A JPH0336880A JP H0336880 A JPH0336880 A JP H0336880A JP 1171422 A JP1171422 A JP 1171422A JP 17142289 A JP17142289 A JP 17142289A JP H0336880 A JPH0336880 A JP H0336880A
Authority
JP
Japan
Prior art keywords
circuit
threshold level
value
picture
comparator circuit
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
Application number
JP1171422A
Other languages
Japanese (ja)
Inventor
Harukazu Matsushita
松下 晴計
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP1171422A priority Critical patent/JPH0336880A/en
Publication of JPH0336880A publication Critical patent/JPH0336880A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To improve the quality of a read picture by revising a threshold level for binarization for a high spatial frequency and a low spatial frequency. CONSTITUTION:Bit dispersion of a picture signal read by an image sensor 20 is corrected by a shading correction circuit 23 via an amplifier 21 and an A/D converter 22. The picture data is transferred to shift register 25 and a difference between the maximum value and the minimum value is decided by a maximum value decision circuit 26, a minimum value decision circuit 27 and a subtraction circuit 28. Then a comparator circuit 29 compares a threshold level of 4 picture elements included in a window with a parameter (t) given externally and in the case of <t, a Ta given externally as a threshold level T is used for the output to the comparator circuit 32. On the other hand, in the case of >=t, a value of T=a is outputted to the comparator circuit 32. The threshold level T and the picture data stored in the register 25 are compared and a binarized output result is obtained from the comparator circuit 32.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画像読み取り装置における二値化処理方法に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a binarization processing method in an image reading device.

〔従来の技術〕[Conventional technology]

従来ファクシミリやスキャナなどの画像入力装置におい
て、原稿の漬液信号から2値の画像データを得る為に、
固定しきい値法、フローティングしきい値法等が用いら
れてきた。
Conventionally, in image input devices such as facsimiles and scanners, in order to obtain binary image data from the immersion liquid signal of the document,
Fixed threshold methods, floating threshold methods, etc. have been used.

前者は電気信号に変換された画像信号に対して固定しき
い値を設定し、例えばそのしきい値よりも画像信号が大
きければ1、小さければ0を割り当てる。この場合、新
聞などの背景が白くない原稿に対して画質が劣化する為
、背景の濃度をしきい値にフィードバックする方法が考
案され実用化されている。これをフローティングしきい
値法と呼んでいる。
In the former case, a fixed threshold value is set for the image signal converted into an electrical signal, and for example, if the image signal is larger than the threshold value, 1 is assigned, and if it is smaller than the threshold value, 0 is assigned. In this case, the image quality deteriorates for originals with non-white backgrounds, such as newspapers, so a method has been devised and put into practical use that feeds back the density of the background to the threshold value. This is called the floating threshold method.

〔発明が解決しようとする疎題〕[The problem that the invention attempts to solve]

第2図に示すように、画像(1m旬は文字や細線のよう
な空間周波数の高い部分aにおいては、空間周波数の低
い部分すに比べてダイナミックレンジが小さくなる。こ
れは読み取り系の空間周波数特性によるもので、従って
イメージセンサの画素密度を上げても単純に解像性能の
向上とはならない。
As shown in Figure 2, the dynamic range of an image (at 1m) is smaller in areas with high spatial frequencies such as letters and thin lines than in areas with low spatial frequencies.This is due to the spatial frequency of the reading system. This is due to the characteristics of the image sensor, so increasing the pixel density of the image sensor does not simply improve the resolution performance.

第2図に示したような画像信号に対して、単純な固定し
きい値や、背景もしくは全体の濃度レベルを検出してし
きい値を決めて二値化を行っても、a部のような空間周
波数の高い部分の画質は向上しない。
Even if the image signal shown in Figure 2 is binarized using a simple fixed threshold value or by determining the threshold value by detecting the background or overall density level, the image signal as shown in part a will not be generated. The image quality of areas with high spatial frequencies does not improve.

本発明はかかる欠点を除去するもので、その目的は、空
間周波数の高い部分と低い部分で2値化の為のしきい値
を変更して、読み取った画像の品質を向上させることに
ある。
The present invention aims to eliminate such drawbacks, and its purpose is to improve the quality of the read image by changing the threshold for binarization between high and low spatial frequency parts.

〔課題を解決するための手段〕[Means to solve the problem]

第2図に示すように、fi!ii (k信IJに対して
窓1を設定し、」二記窓に含まれる画素の最大値と最小
値の差Δを検出して、以下の条件式により2値化の為の
しきい値Tを決定する。
As shown in Figure 2, fi! ii (Set window 1 for k signal IJ, detect the difference Δ between the maximum value and minimum value of pixels included in the window, and set the threshold value for binarization using the following conditional expression. Determine T.

Δ<t ならば T=Ts Δ≧t ならば T=a△ ここで、T−は空間周波数がif’li <ない部分で
適用される固定しきい値である。tは画像信号の域値△
が意味のある信号とし゛C検出ずべきかどうかを決定す
る為のパラメータで、出力信号を0〜1に正規化した時
には0. 1〜0.5の値をとればよい。
If Δ<t then T=Ts If Δ≧t then T=aΔ Here, T- is a fixed threshold value applied where the spatial frequency is not if'li <. t is the threshold value of the image signal △
This is a parameter to determine whether C should be detected as a meaningful signal.When the output signal is normalized to 0 to 1, it is 0. It may take a value of 1 to 0.5.

aは空間周波数が高い部分でのしきい値を決定する係数
で、通常0.5であるが、場合によっては0.25〜0
.75の値をとった方が良好な場合がある。
a is a coefficient that determines the threshold in areas with high spatial frequencies, and is usually 0.5, but in some cases it may be 0.25 to 0.
.. In some cases, a value of 75 is better.

〔実施例〕〔Example〕

第1図に窓に含まれる画素数が4画素の場合の実施例を
示す、イメージセンサ20で読み込んだ画f象信号を、
アンプ21を通してA/Dコンバータ22で8ビツトに
ffi子化する。デジタル信号に変換された画f象信号
はシェーディング補正回路23で光学系やイメージセン
サのビットばらつき等が補正される。24は演算用のメ
モリである。補正された8ビットの両像データは8ビツ
ト4段のシフトレジスタ25に転送され、最大値決定回
路26と最小値決定回路27、及び減算回路28によっ
て上記Δが決定される1次に比較器29により、この窓
に含まれる4画素の域値△と外部から与えるtとを比較
し、もし、△くしであればセレクタ31により、やはり
外部から与えるT・を比較器32への出力とする。逆に
Δ≧tの時にはΔに対して乗算倖30により外部から与
えられたaを乗じた値を比較ia+32へ出力する0以
上のようにして決定したしきい値と、レジスタ25に蓄
えられている画像データを比較して、比較器32により
2値化の出力結果をfV!る。
FIG. 1 shows an example in which the number of pixels included in the window is 4, and the image signal read by the image sensor 20 is
It passes through an amplifier 21 and is converted into an 8-bit ffi by an A/D converter 22. The image f-image signal converted into a digital signal is corrected for bit variations in the optical system and image sensor in a shading correction circuit 23. 24 is a memory for calculation. The corrected 8-bit image data for both images is transferred to a four-stage 8-bit shift register 25, and a primary comparator in which the above-mentioned Δ is determined by a maximum value determining circuit 26, a minimum value determining circuit 27, and a subtracting circuit 28. 29 compares the threshold value △ of the four pixels included in this window with t given from the outside, and if it is a △ comb, the selector 31 outputs T, also given from the outside, to the comparator 32. . On the other hand, when Δ≧t, the value obtained by multiplying Δ by a given from the outside by the multiplier 30 is outputted to the comparison ia+32. The comparator 32 compares the image data and converts the output result of binarization into fV! Ru.

〔発明の効果〕〔Effect of the invention〕

本発明によれば空間周波数の高い画像、すなわち文字や
けい線等の細線の2値化された画像品質が向上する。
According to the present invention, the quality of binarized images of high spatial frequency images, ie, thin lines such as characters and marked lines, is improved.

さらに本発明によれば、読み取り光学系が少々ボケでも
良好な2値化画像を得ることができる。
Furthermore, according to the present invention, a good binarized image can be obtained even if the reading optical system is slightly blurred.

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

第1図は本発明の、実施例を示した回路図。 第2図は本発明を説明する為の画像信号の概念を示す図
。 以  上
FIG. 1 is a circuit diagram showing an embodiment of the present invention. FIG. 2 is a diagram showing the concept of an image signal for explaining the present invention. that's all

Claims (1)

【特許請求の範囲】 (1)画像の濃度信号を二値のデータ列に変換する方法
であって、空間的に連続した画素に対して複数の画素を
見込む窓を設定し、上記窓に含まれる画像データの最大
値と最小値の差Δを検出し、上記Δに対して二値化のた
めの閾値Tを以下の条件で決定することを特徴とした二
値化処理方法。 あらかじめ定めた値t 二値化の固定閾値TO 係数a、としたとき Δ<tならば、T=TO Δ≧tならば、T=a*Δ (2)上記窓に含まれる画素数が2〜32であり、また
上記濃度信号の域値を0〜1に正規化したときに、上記
t、aがそれぞれ 0.1≦t≦0.5 0.25≦a≦0.75 であることを特徴とする請求項1記載の二値化処理方法
[Scope of Claims] (1) A method for converting the density signal of an image into a binary data string, which sets a window that sees a plurality of pixels for spatially continuous pixels, and A binarization processing method characterized by detecting a difference Δ between a maximum value and a minimum value of image data, and determining a threshold T for binarization with respect to the Δ under the following conditions. If the predetermined value t is the fixed threshold value TO for binarization and the coefficient a, then if Δ<t, then T=TO; if Δ≧t, then T=a*Δ (2) The number of pixels included in the above window is 2 ~32, and when the threshold value of the density signal is normalized to 0 to 1, the above t and a are 0.1≦t≦0.5 and 0.25≦a≦0.75, respectively. The binarization processing method according to claim 1, characterized in that:
JP1171422A 1989-07-03 1989-07-03 Binarizing processing method Pending JPH0336880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1171422A JPH0336880A (en) 1989-07-03 1989-07-03 Binarizing processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1171422A JPH0336880A (en) 1989-07-03 1989-07-03 Binarizing processing method

Publications (1)

Publication Number Publication Date
JPH0336880A true JPH0336880A (en) 1991-02-18

Family

ID=15922840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1171422A Pending JPH0336880A (en) 1989-07-03 1989-07-03 Binarizing processing method

Country Status (1)

Country Link
JP (1) JPH0336880A (en)

Similar Documents

Publication Publication Date Title
US4817174A (en) Image processing apparatus
EP0223601B1 (en) Image processing method
JPH05227425A (en) Improvement in automatic image segmentation
US7161626B1 (en) Image reading apparatus
US5055944A (en) Image signal processing apparatus
JPH0336880A (en) Binarizing processing method
JP2521745B2 (en) Image processing device
JPH09212642A (en) Image processor
US6625324B1 (en) Apparatus and method for providing compensation bits for post image processing
JPH0457274B2 (en)
JPH04281671A (en) Picture processor
JP2521744B2 (en) Image processing device
JP3006460B2 (en) Binary image processing device
JP3136671B2 (en) Image reading device
JPS6250013B2 (en)
JPH04270561A (en) Picture processor
JPH07170372A (en) Image reader and facsimile equipment using the same
JP3032238B2 (en) Image processing device
JPS6180964A (en) Picture signal processing method
JPH0494266A (en) Half tone picture processing unit
JPH0575859A (en) Mtf correction device
JPH02305068A (en) Image reader
JPS62165477A (en) Image processor
JPH0554190A (en) Picture processor
JPH04320157A (en) Picture data processor