JPH0477879A - Method for binarizing picture - Google Patents

Method for binarizing picture

Info

Publication number
JPH0477879A
JPH0477879A JP2186852A JP18685290A JPH0477879A JP H0477879 A JPH0477879 A JP H0477879A JP 2186852 A JP2186852 A JP 2186852A JP 18685290 A JP18685290 A JP 18685290A JP H0477879 A JPH0477879 A JP H0477879A
Authority
JP
Japan
Prior art keywords
window
image
density
histogram
sal
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
JP2186852A
Other languages
Japanese (ja)
Inventor
Minoru Ito
稔 伊藤
Toshibumi Watanabe
俊文 渡辺
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2186852A priority Critical patent/JPH0477879A/en
Priority to US07/728,587 priority patent/US5506917A/en
Priority to KR1019910012077A priority patent/KR940007873B1/en
Publication of JPH0477879A publication Critical patent/JPH0477879A/en
Priority to US08/551,811 priority patent/US5555318A/en
Pending legal-status Critical Current

Links

Landscapes

  • Preparing Plates And Mask In Photomechanical Process (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

PURPOSE:To calculate an exact binarized threshold value by avoiding dependency to a pattern area distribution proportion not with the density histogram of the picture whole face but with the difference of the histogram of a local area. CONSTITUTION:An SAL and an SAH are the areas of an area AL and an area AH respectively, a window is scanned within a picture, when average density or a sum within the window is high, the SAH is larger than the SAL and when it is low, the SAL is relatively larger than the SAH. Then, when the value of the SAL when the SAL is larger is defined as an SALP and the value of the SAL when the SAH is larger is defined as an SALq, a difference of a density histogram DELTAf becomes '0' when SALq=SALq, since SALpnot equal to SALq can be conditioned easily by window scanning, the value of (x) to be DELTAf=0 becomes x=(dL+dH)/2 and an exact threshold value can be selected. Thus, an exact binarized threshold value can be calculated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、パターンの照合、パターン検査等における画
像処理工程において、濃淡画像を2値化パターンに変換
する画像2値化方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image binarization method for converting a grayscale image into a binarization pattern in an image processing process for pattern matching, pattern inspection, etc.

(従来技術〕 従来、電子計算機(コンピュータ)等によるパターン照
合、パターン検査における2値化方法に関し、製部分布
に基づく方法として、Pタイル法及びモード法がある。
(Prior Art) Conventionally, regarding the binarization method for pattern matching and pattern inspection using an electronic computer, etc., there are the P-tile method and the mode method as methods based on the production distribution.

Pタイル法は、入力画像の濃度分布を用いて濃度の低い
方から順に求めた累積濃度分布がある与えられた割合P
になる濃度を算出し、この濃度値をしきい値とする方法
である。
The P tile method uses the density distribution of the input image to calculate a given percentage P that has a cumulative density distribution obtained in descending order of density.
In this method, the density is calculated and this density value is used as the threshold value.

モード法は、濃度分布が双峰性を示すことを前提に、濃
度分布の谷を見つけてしきい値とする方法である。
The modal method is a method of finding a valley in the concentration distribution and using it as a threshold, on the premise that the concentration distribution exhibits bimodality.

また、2値化の方法として、判別分析法がある。Further, as a method of binarization, there is a discriminant analysis method.

この方法は、濃度分布がある値で2分した時の分離度を
計算し、この分離度が最大となる時の値をしきい値とす
るものである。
This method calculates the degree of separation when the concentration distribution is divided into two by a certain value, and sets the value at which this degree of separation is maximum as the threshold value.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、前記従来のPタイル法では、割合Pが既
知であることが前提条件であり、一般の2値化法として
利用できず、パターン照合検査でもそれは利用できない
。比較する基準パターンがあって、入力画像と基準パタ
ーンとの位置関係が既知であり、かつ、入カバターンに
欠陥もしくは過剰パターンが全く存在しない場合に限ら
れるという問題があった。
However, in the conventional P-tile method, it is a prerequisite that the ratio P is known, and it cannot be used as a general binarization method, nor can it be used in a pattern matching test. There is a problem that this method is limited to cases where there is a reference pattern to be compared, the positional relationship between the input image and the reference pattern is known, and there are no defects or redundant patterns in the input cover pattern.

また、前記従来のモード法では、パターン部分と背景と
が同様の濃度分布形状をもち、かつ、夫々が占める面積
がほぼ等しい場合にはしきい値が求まるが、面積比が1
=1からはずれるにつれ、濃度分布の谷の位置が、面積
が小さい濃度側にシフトしていき、やがて谷が消滅して
しまう。つまり、前記の特別の条件を除き、正しいしき
い値が得られないという問題があった。
In addition, in the conventional mode method, the threshold value can be found when the pattern portion and the background have similar density distribution shapes and the areas occupied by each are approximately equal; however, when the area ratio is 1
As it deviates from =1, the position of the valley in the concentration distribution shifts toward the concentration side with a smaller area, and the valley eventually disappears. In other words, there is a problem that a correct threshold value cannot be obtained except under the above-mentioned special conditions.

また、前記従来の判別分析法では、例えば、パターン部
の面積が小さい場合には分離が悪くなり、モード法と同
様、不正なしきい値を出力することが多発するという問
題があった。
Further, in the conventional discriminant analysis method, for example, when the area of the pattern portion is small, separation becomes poor, and as with the mode method, there is a problem in that incorrect threshold values are frequently output.

本発明の目的は、濃度分布への依存性の小さい画像2値
化方法を提供することにある。
An object of the present invention is to provide an image binarization method that is less dependent on density distribution.

本発明の前記ならびにその他の目的と新規な特徴は1本
明細書の記述及び添付図面によって明らかになるであろ
う。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

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

前述した目的を達成するために、本発明は、画像2値化
方法において、入力濃淡画像」二で小サイズの窓を走査
し、該窓内の画像領域の平均値もしくは総和を窓内画像
の濃度レベルとして算出し、濃度レベルが最大もしくは
予め指定した限界値より大となる窓内画像の濃度ヒスト
グラムと、濃度レベルが最小もしくは予め指定した第2
の限界値以下どなる窓内画像の濃度ヒストグラムとの差
分を計算し、該差分ヒストグラムのゼロクロス点をしき
い値として入力画像を2値化することを最も主要な特徴
とする。
In order to achieve the above-mentioned object, the present invention provides an image binarization method in which a small-sized window is scanned with an input grayscale image, and the average value or sum of the image area within the window is calculated as the average value or sum of the image area within the window. The density histogram of the image within the window is calculated as a density level, and the density level is the maximum or larger than a pre-specified limit value, and the second density level is the minimum density level or a pre-specified limit value.
The most important feature is to calculate the difference between the density histogram of the image within the window that is less than the limit value of , and to binarize the input image using the zero-crossing point of the difference histogram as a threshold.

〔作 用〕[For production]

前述した手段によれば、窓を画像内で走査しながら、窓
に含まれる画素の平均値又は総和を窓内画像の濃度レベ
ルとして求め、濃度レベルが大の時と小の時の窓内画像
の濃度ヒストグラムの差分をとった差分ヒストグラムの
セロクロス点を2値化のためのしきい値とするので、パ
ターン面積分布割合への依存性を回避し、正しい2値化
しきい値を算出することができる。
According to the above-mentioned means, while scanning the window within the image, the average value or sum of pixels included in the window is determined as the density level of the image within the window, and the image within the window is determined when the density level is high and when the density level is low. Since the cello-crossing point of the difference histogram obtained by taking the difference between the density histograms is used as the threshold for binarization, it is possible to avoid dependence on the pattern area distribution ratio and calculate the correct binarization threshold. can.

すなわち、パターンが小さく、かつ、その分布割合が小
さくても、或いはパターン部が殆ど全面を占めても、雑
音に左右されずにパターン部分のみの濃度ヒストグラム
と背景部分のみの濃度ヒス1〜グラムに分離抽出した差
分ヒス1−グラムを得るようにしたので、差分ヒストグ
ラムのゼロクロス点をしきい値とすることができる。そ
れは、パターン面積割合に依存しない。唯一の例外は、
全面が背景のみである場合、又は全面がパターン部であ
る場合であるが、その時は、差分ヒストグラムは面積が
ゼロとなり、この例外に属することを容易に判別できる
。従来の方法では、この判別ができないため、しきい値
の正誤判定が容易でなかったのに対し、本発明では、こ
の判定を容易にすることができる。
In other words, even if the pattern is small and its distribution ratio is small, or even if the pattern portion occupies almost the entire surface, the density histogram of only the pattern portion and the density histogram of only the background portion can be divided into 1 to gram without being affected by noise. Since the separated and extracted difference histogram 1-gram is obtained, the zero crossing point of the difference histogram can be used as a threshold value. It does not depend on pattern area percentage. The only exception is
In cases where the entire surface is only the background or the entire surface is a pattern portion, the area of the difference histogram is zero in that case, and it can be easily determined that the object belongs to this exception. In the conventional method, this determination cannot be made, so it is not easy to determine whether the threshold value is correct or incorrect, whereas the present invention can make this determination easy.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面を用いて具体的に説明する
Embodiments of the present invention will be specifically described below with reference to the drawings.

本発明の画像2値化方法は、コンピュータ、各種画像処
理装置、符号化器等の装置によって実施することができ
るが、ここではコンピュータを使用する。
Although the image binarization method of the present invention can be implemented by devices such as computers, various image processing devices, and encoders, a computer is used here.

なお、実施例を説明するための全図において、同一機能
を有するものは同一符号を付け、その繰り返しの説明は
省略する。
In addition, in all the figures for explaining the embodiment, parts having the same functions are given the same reference numerals, and repeated explanations thereof will be omitted.

第1A図乃至第1C図は、本発明の画像2値化方法の原
理を説明するための図である。
1A to 1C are diagrams for explaining the principle of the image binarization method of the present invention.

第i−A図は窓]0の例を示す図であり、窓10の形状
には特別な制約はない。この窓10の面積を、SAとす
る。
FIG. i-A is a diagram showing an example of the window 10, and there are no special restrictions on the shape of the window 10. Let the area of this window 10 be SA.

第1B図は窓10の濃度領域を示す図であり、その窓1
0が2値化の高い濃度レベルの++ 1 ++の領域H
の部分とを兼ねている領域をAHとし、110 ++の
領域りの部分とを兼ねている領域をA Lとする。
FIG. 1B is a diagram showing the concentration region of the window 10, and the window 1
++ 1 ++ area H where 0 is a high density level of binarization
The area that also serves as the 110++ area is designated as AH, and the area that also serves as the 110++ area is designated as AL.

第1C図は窓10の領域りの部分の濃度ヒストグラム1
と領域Hの部分の濃度ヒストグラム2とを示したもので
あり、領域りでは、平均レベルdLを中心とし、分散σ
2の広がらりをもつガウス分布をもち、また、領域Hで
は平均レベルd、を中心とし分散σ2の広がりをもつガ
ウス分布をもつものとする。
Figure 1C shows the density histogram 1 of the area around the window 10.
and the density histogram 2 of the area H, where the area is centered at the average level dL and the variance σ
It is assumed that the region H has a Gaussian distribution with a spread of σ2, and the area H has a Gaussian distribution with a spread of variance σ2 centered at the average level d.

この分布は、夫々 。−(x−dL)2/a2−(x−dH)2/σ2で表
わされる。
This distribution is, respectively. -(x-dL)2/a2-(x-dH)2/σ2.

さて、第1B図に示した様に、窓内に領域りと領域Hが
含まれる場合は、窓内の濃度ヒストグラムfは、 f= s AL。−(x−dL)2/σ2+5A)le
−(x−d、)2/σ2但し、S AL、 S AHは
、夫々領域AL、領域AHの面積である。
Now, as shown in FIG. 1B, if the window includes area H and area H, the density histogram f within the window is f=sAL. -(x-dL)2/σ2+5A)le
-(x-d,)2/σ2 However, S AL and S AH are the areas of the area AL and the area AH, respectively.

窓を画像内で走査し、窓内の平均濃度又は総和が高いと
きは、SA1.lがSALに比べて大きく、それが低い
ときはSALが5A14に比べ相対的に大きい。
When the window is scanned in the image and the average density or summation within the window is high, SA1. l is large compared to SAL, and when it is low, SAL is relatively large compared to 5A14.

そこで、S ALが大きいときのSALの値をSALい
とし、SAHが大きいときのSALの値をS ALqと
すれば、濃度ヒストグラムの差分Δfは、Δf=sAL
pe−(x−dL)”’      −(X−dH)2
102+(SA  SAL、) e 3AL、e−(x−dL)”/σ2−(x−dl、)”
/σ2+(SA  5AL−) e =(SAL−5AL9)(e−(x−dL)”/σ2−
(X−dJ2/ff”)−〇 △fは、S ALp” S ALQの時にパ0′″とな
るが、窓走査により5ALp≠5ALqを容易に条件付
けることができるため、Δf=oとなるXの値は、x=
 (dL+dn)/2となる。すなわち、正しいしきい
値を選択することができる。
Therefore, if the value of SAL when SAL is large is SAL, and the value of SAL when SAH is large is SALq, then the difference Δf in the density histogram is Δf=sAL
pe-(x-dL)''-(X-dH)2
102+(SA SAL,) e 3AL, e-(x-dL)"/σ2-(x-dl,)"
/σ2+(SA 5AL-) e = (SAL-5AL9)(e-(x-dL)"/σ2-
(X-dJ2/ff")-〇△f becomes pa0'' when S ALp" S ALQ, but since 5ALp≠5ALq can be easily conditioned by window scanning, Δf=o. The value of X is x=
(dL+dn)/2. That is, the correct threshold value can be selected.

第2A図乃至第2C図は、第1A図乃至第1C図で説明
した本発明の画像2値化方法の原理における濃度ヒスト
グラムを示した図である。第2A図はSALが大きい時
の窓内ヒス1〜グラム、第2B図はSAHが大きい時の
窓内ヒストグラムであり、第2C図は差分ヒストグラム
である。第2C図では、正と負の面積は必ず同じとなり
、そのゼロクロス点がΔf=oとなる正しいしきい値で
ある。
FIGS. 2A to 2C are diagrams showing density histograms based on the principle of the image binarization method of the present invention explained in FIGS. 1A to 1C. FIG. 2A is a histogram within a window of 1 to gram when SAL is large, FIG. 2B is a histogram within a window when SAH is large, and FIG. 2C is a difference histogram. In FIG. 2C, the positive and negative areas are always the same, and the zero crossing point is the correct threshold at which Δf=o.

このゼロクロス点の検出精度が雑音により低い可能性が
ある時は、正と負の重心をゼロクロス点としても良い。
If there is a possibility that the detection accuracy of this zero-crossing point is low due to noise, the center of gravity of the positive and negative points may be set as the zero-crossing point.

ゼロクロス点は、1Δf[の面積が大きい方が検出精度
が高くなる。従って、ヒストグラム差分Δfを求める際
の2つの窓の位置は、夫々の窓内画像濃度が最大の時と
最小の時であるとするのが理想的である。但し、実験に
よれば、SAL又はSAHが大きくなる位置において、
夫々SAの半分以上占めていれば、ゼロクロス点の算出
は容易である。
As for the zero cross point, the detection accuracy becomes higher when the area of 1Δf[ is larger. Therefore, ideally, the positions of the two windows when calculating the histogram difference Δf are set to be when the image density within each window is maximum and minimum. However, according to experiments, at the position where SAL or SAH becomes large,
If each of them occupies more than half of the SA, it is easy to calculate the zero-crossing point.

[実施例1] 第3図は、本発明の画像2値化方法の実施例1のフロー
チャートを示したものである。
[Example 1] FIG. 3 shows a flowchart of Example 1 of the image binarization method of the present invention.

本実施例〕の画像2値化方法は、まず、画像を入力しく
ステップ1.01)、予め設定したサイズ形状の窓を画
像内で移動しくステップ]02)、窓内平均値を算出す
る(103)。窓を画像内相定範囲で走査しステップ1
02と103を繰り返す。ステップ104では、走査が
終了したかどうかチエツクしている。走査が終了したな
らば、ステップ103で求めた窓内平均値が最大又は最
小どなる窓の位置を検索しくステップ105)、夫々の
位置での窓内画像の濃度ヒストグラムを算出しくステッ
プ106)、ヒストグラムの差分を割算する(ステップ
1o7)。
The image binarization method of this embodiment first involves inputting an image (Step 1.01), moving a window of a preset size and shape within the image (Step 02), and calculating the average value within the window (Step 02). 103). Step 1: Scan the window in a fixed range within the image.
Repeat steps 02 and 103. In step 104, a check is made to see if the scan is complete. When the scanning is completed, search for the position of the window where the average value within the window obtained in step 103 is the maximum or minimum (step 105), calculate the density histogram of the image within the window at each position (step 106), and calculate the histogram. Divide the difference between (step 1o7).

次に、差分ヒストグラムのゼロクロス点を計算しくステ
ップ108)、その値をしきい値として2値化して(ス
テップ109)、2値画像を出力する(ステップ110
)。
Next, the zero-crossing point of the difference histogram is calculated (step 108), the value is binarized using the threshold value (step 109), and a binary image is output (step 110).
).

[実施例2] 第4図は、窓を全面走査せず、走査途中でしきい値算出
が可能となった時点で走査を中止することにより、処理
時間の短縮を図った実施例2のフローチャートを示した
図である。
[Embodiment 2] FIG. 4 is a flowchart of Embodiment 2 in which the processing time is shortened by not scanning the entire window, but by stopping scanning when threshold calculation becomes possible during scanning. FIG.

本実施例2の画像の2値化方法は、画像入力しくステッ
プ201)、窓を移動しくステップ202)、窓内平均
値を算出しくステップ203)、平均値がパターン過大
領域すなわち領域A、 Hが大とする限界値th+より
大きければ(ステップ204)、この窓の位置を記録し
くステップ205)、さもなくばパターンの少ない領域
すなわち領域ALが大とする限界値thLより小さけれ
ば(ステップ206)、この窓の位置を記録しくステッ
プ207)、さもなくば窓を移動しくステップ202)
、」1記の処理を繰り返す。
The image binarization method of the second embodiment includes inputting the image in step 201), moving the window in step 202), calculating the average value within the window in step 203), and determining the average value in areas where the pattern is excessive, that is, areas A and H. If it is larger than the large limit value th+ (step 204), record the position of this window (step 205); otherwise, if the area with few patterns, that is, the area AL, is smaller than the large limit value thL (step 206). , record the position of this window (step 207), otherwise move the window (step 202)
,'' repeat the process described in 1.

ステップ208は、限界値thHより大の窓の位置が既
に決っているか判断し、決っていればステップ204を
パスする。ステップ209は、限界値thLよりtJs
の窓の位置が既に決っているか判断し、決っていればス
テップ206をパスする。
In step 208, it is determined whether the position of a window larger than the limit value thH has already been determined, and if it has been determined, step 204 is passed. In step 209, tJs is determined from the limit value thL.
It is determined whether the position of the window has already been determined, and if it has been determined, step 206 is passed.

ステップ210は、窓の位置が両者法っているか判断し
、決っている時は、両全位置の濃度ヒストグラムを計算
しくステップ211)、差分ヒストグラムを求め(ステ
ップ212)、ゼロクロス点を計算しくステップ213
)、その点をしきい値として2値化する(ステップ21
4)。
In step 210, it is determined whether the positions of the windows are equal to each other, and when they are determined, the density histograms of both positions are calculated (step 211), the difference histogram is calculated (step 212), and the zero crossing point is calculated (step 211). 213
), and binarize using that point as a threshold (step 21
4).

なお、ステップ211についてステップ204でYES
となった度毎、或いはステップ206でYESとなった
度毎に濃度ヒストグラムを算出して記録しておいても良
い。
Note that regarding step 211, if the answer is YES in step 204,
The density histogram may be calculated and recorded each time , or each time YES is determined in step 206 .

以上の説明かられかるように、本実施例1,2によれば
、画像全面の濃度ヒストグラムを用いず、局部領域の濃
度ヒストグラムの差分を用いているため、パターン面積
分布割合への依存性を回避し、正しい2値化しきい値を
算出することができる。
As can be seen from the above description, according to Examples 1 and 2, the density histogram of the entire image is not used, but the difference between the density histograms of local areas is used, so the dependence on the pattern area distribution ratio is reduced. It is possible to avoid this problem and calculate a correct binarization threshold.

すなわち、パターンが小さく、かつ、その分布割合が小
さくても、或いはパターン部が殆ど全面を占めても、雑
音に左右されずにパターン部分のみの濃度ヒス1〜グラ
ムと背景部分のみの濃度ヒストグラムに分離抽出した差
分ヒストグラムを得るようにしたので、差分ヒストグラ
ムのゼロクロス点をしきい値とすることができる。それ
は、パターン面積割合に依存しない。唯一の例外は、全
面が背景のみである場合、又は全面がパターン部である
場合であるが、その時は、差分ヒストグラムは面積がゼ
ロとなり、この例外に属することを容易に判別できる。
In other words, even if the pattern is small and its distribution ratio is small, or even if the pattern portion occupies almost the entire surface, the density histogram of only the pattern portion and the density histogram of only the background portion can be calculated without being affected by noise. Since a differential histogram is obtained after being separated and extracted, the zero-crossing point of the differential histogram can be used as a threshold value. It does not depend on pattern area percentage. The only exceptions are when the entire surface is only the background or when the entire surface is a pattern part, but in that case, the area of the difference histogram becomes zero, and it can be easily determined that the area belongs to this exception.

従来の方法では、この判別ができないため、しきい値の
正誤判定が容易でなかったのに対し、本発明ではこの判
定が容易であることも重要な効果の1つである。
In the conventional method, this discrimination cannot be made, so it is not easy to judge whether the threshold value is correct or incorrect, but one of the important effects of the present invention is that this judgment is easy.

以上、本発明を実施例にもとづき具体的に説明したが、
本発明は、前記実施例に限定されるものではなく、その
要旨を逸脱しない範囲において種々変更可能であること
は言うまでもない。
The present invention has been specifically explained above based on examples, but
It goes without saying that the present invention is not limited to the embodiments described above, and can be modified in various ways without departing from the spirit thereof.

例えば、本実施例では、窓内濃度レベルとじて窓内平均
値としたが、窓内濃度総和値であっても構わない。また
、ゼロクロス点を求める方法として、ゼロクロス点付近
の差分ヒストグラム波形をデータ処理して求める方法以
外に、差分ヒストグラムの点対称点や重心を算出して求
める方法も可能であることは言うまでもない。
For example, in this embodiment, the in-window density level is the in-window average value, but it may be the in-window density total value. Furthermore, as a method for finding the zero-crossing point, in addition to the method of finding it by data processing the difference histogram waveform near the zero-crossing point, it goes without saying that it is also possible to find it by calculating the points of symmetry or the center of gravity of the difference histogram.

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

以上、説明したように、本発明によれば、画像全面の濃
度ヒストグラムを用いず、局部領域のヒストグラムの差
分を用いているため、パターン面積分布割合への依存性
を回避し、正しい2値化しきい値を算出することができ
る。
As explained above, according to the present invention, the density histogram of the entire image is not used, but the difference between the histograms of local regions is used, thereby avoiding dependence on the pattern area distribution ratio and achieving correct binarization. A threshold value can be calculated.

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

第1A図乃至第1C図は、本発明の画像2値化方法の原
理を説明するための図、 第2A図乃至第2C図は、第1A図乃至第1C図で説明
した本発明の画像2値化方法の原理における濃度ヒスト
グラムを示した図、 第3図は、本発明の画像2値化方法の実施例1のフロー
チャート、 第4図は、窓を全面走査せず、走査途中でしきい値算出
が可能となった時点で走査を中止することにより、処理
時間の短縮を図った実施例2のフローチャートを示した
図である。 図中、1・・・領域りの部分の濃度ヒストグラム、2・
・・領域Hの部分の濃度ヒストグラム、10・・・窓。
FIGS. 1A to 1C are diagrams for explaining the principle of the image binarization method of the present invention, and FIGS. 2A to 2C are images 2 of the present invention explained in FIGS. 1A to 1C. Figure 3 is a flowchart of Embodiment 1 of the image binarization method of the present invention, and Figure 4 is a diagram showing a density histogram based on the principle of the digitization method. FIG. 7 is a diagram showing a flowchart of a second embodiment in which processing time is shortened by stopping scanning at the point when value calculation becomes possible. In the figure, 1... the density histogram of the region, 2...
...Concentration histogram of area H, 10...window.

Claims (1)

【特許請求の範囲】[Claims] (1)入力濃淡画像上で小サイズの窓を走査し、該窓内
の画像領域の平均値もしくは総和を窓内画像の濃度レベ
ルとして算出し、濃度レベルが最大もしくは予め指定し
た限界値より大となる窓内画像の濃度ヒストグラムと、
濃度レベルが最小もしくは予め指定した第2の限界値以
下となる窓内画像の濃度ヒストグラムとの差分を計算し
、該差分ヒストグラムのゼロクロス点をしきい値として
入力画像を2値化することを特徴とする画像2値化方法
(1) Scan a small window on the input grayscale image, calculate the average value or sum of the image area within the window as the density level of the image within the window, and determine whether the density level is the maximum or greater than a pre-specified limit value. The density histogram of the image within the window is
It is characterized by calculating the difference between the density histogram of the image within the window where the density level is the minimum or below a pre-specified second limit value, and binarizing the input image using the zero-crossing point of the difference histogram as a threshold. Image binarization method.
JP2186852A 1990-07-13 1990-07-13 Method for binarizing picture Pending JPH0477879A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2186852A JPH0477879A (en) 1990-07-13 1990-07-13 Method for binarizing picture
US07/728,587 US5506917A (en) 1990-07-13 1991-07-11 Thresholding method for segmenting gray scale image, method for determining background concentration distribution, and image displacement detection method
KR1019910012077A KR940007873B1 (en) 1990-07-13 1991-07-13 Method of determining distribution of backgrounds image connection of grey scale image and for detecting image transfer
US08/551,811 US5555318A (en) 1990-07-13 1995-11-07 Thresholding method for segmenting gray scale image, method for determining background concentration distribution, and image displacement detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2186852A JPH0477879A (en) 1990-07-13 1990-07-13 Method for binarizing picture

Publications (1)

Publication Number Publication Date
JPH0477879A true JPH0477879A (en) 1992-03-11

Family

ID=16195780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2186852A Pending JPH0477879A (en) 1990-07-13 1990-07-13 Method for binarizing picture

Country Status (1)

Country Link
JP (1) JPH0477879A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006138708A (en) * 2004-11-11 2006-06-01 Tokyo Seimitsu Co Ltd Image flaw inspection method, image flaw inspecting device and visual inspection device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006138708A (en) * 2004-11-11 2006-06-01 Tokyo Seimitsu Co Ltd Image flaw inspection method, image flaw inspecting device and visual inspection device

Similar Documents

Publication Publication Date Title
Peli et al. A study of edge detection algorithms
JP5351673B2 (en) Appearance inspection device, appearance inspection method
JP2002133426A (en) Ruled line extracting device for extracting ruled line from multiple image
JP2002208007A (en) Automatic detection of scanned document
JPH03257304A (en) Position recognizing apparatus
US12094183B2 (en) Geometric pattern matching method and device for performing the method
Cardoso et al. A connected path approach for staff detection on a music score
JPH02306386A (en) Character recognizing device
JPH04198741A (en) Shape defect detecting device
JPH0477879A (en) Method for binarizing picture
Guimaraes et al. A new automatic circular decomposition algorithm applied to blood cells image
US7136515B2 (en) Method and apparatus for providing a binary fingerprint image
Short SLEUTH—a fast computer program for automatically detecting particles in electron microscope images
JPH1153539A (en) Circular pattern discriminating method and storage medium
JP3030112B2 (en) Image binarization processing method
JP2001101417A (en) Device, system and method for detecting defect and storage medium
JP2959285B2 (en) Object extraction method
JP2535704Y2 (en) Shading image processing device
JPH0418749B2 (en)
JPH09229642A (en) Method for inspecting appearance of electronic part
JPH0130183B2 (en)
TW309606B (en) Method of defect detection and classification
JPS62147584A (en) Character reader
JP2001357401A (en) Picture processing method
JPS62282379A (en) Graphic recognition device