JPH05115005A - Method and device for deciding threshold level - Google Patents

Method and device for deciding threshold level

Info

Publication number
JPH05115005A
JPH05115005A JP3301117A JP30111791A JPH05115005A JP H05115005 A JPH05115005 A JP H05115005A JP 3301117 A JP3301117 A JP 3301117A JP 30111791 A JP30111791 A JP 30111791A JP H05115005 A JPH05115005 A JP H05115005A
Authority
JP
Japan
Prior art keywords
points
threshold value
point
interest
density
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
JP3301117A
Other languages
Japanese (ja)
Other versions
JP2843185B2 (en
Inventor
Koichi Sasagawa
耕一 笹川
Takashi Hirai
隆史 平位
Shinichi Kuroda
伸一 黒田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3301117A priority Critical patent/JP2843185B2/en
Publication of JPH05115005A publication Critical patent/JPH05115005A/en
Application granted granted Critical
Publication of JP2843185B2 publication Critical patent/JP2843185B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Complex Calculations (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To reduce the processing time by decreasing number of times of scanning with respect to the decision of a threshold level for binarizing a gradation picture and to reduce the circuit scale. CONSTITUTION:The device is provided with a local data extract section 1 extracting a density G0 of a noted point and densities G1,...,G4 of four points selected not including two points pairs symmetrical to the noted points among the eight neighbouring points, and with five minimum value selection sections 3 each selects and outputs a value Fn (n:0,...,4) which is smaller between the density G0 of the noted point and each of the five densities G0,...,G4, and also with five histogram count section 4 counting simultaneously the incidence occurrence of the output Fn of each selection section 3, and with a threshold level decision section 5 obtaining a total sum A(T) of adjacent numbers and an area S(T) based on a histogram obtained simultaneously each Fn from each histogram count section 4, calculating an average adjacent number R(T) and deciding an optimum threshold level based on a change state of the average adjacent number R(T) with respect to the threshold level Y.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、視覚センサなどにお
いて、画像中の対象物を背景から分離する等のための代
表的な処理である2値化処理に際して、濃淡画像を2値
化するときの最適なしきい値を決定する方法及びその装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is used for binarizing a grayscale image in a binarization process which is a typical process for separating an object in an image from a background in a visual sensor or the like. And an apparatus for determining the optimum threshold value of

【0002】[0002]

【従来の技術】従来、この種のしきい値決定に関して
は、画像の各点の濃度の出現頻度の分布を表わす濃度ヒ
ストグラムに基づく方法が一般的であった。例えば、濃
度ヒストグラムの谷部の位置にしきい値を決定するモー
ド法や、濃度ヒストグラムを2つのクラスに分けたとき
に各クラス内の濃度の分散の和が最小となるようにしき
い値を決定する判別分析法などがある。
2. Description of the Related Art Conventionally, with respect to this kind of threshold value determination, a method based on a density histogram representing a distribution of the appearance frequency of the density of each point of an image has been generally used. For example, a mode method for determining the threshold value at the position of the valley portion of the density histogram, or when the density histogram is divided into two classes, the threshold value is determined so that the sum of the variances of the density in each class is minimized. There is a discriminant analysis method.

【0003】このような濃度ヒストグラムに基づく方法
以外に、しきい値を変えながら2値化したときの各2値
画像から計測した特徴量をもとに、2値化結果の良否を
表わす評価関数を算出した後、しきい値に対する評価関
数の変化状態から判断して、最適なしきい値を決定する
方法がある。この方法は、変化させるしきい値の数に比
例して演算量が増大するという問題があった。本発明者
は既に特願平2−202802号で上記問題を解決する
「しきい値決定装置」を提案している。
In addition to the method based on such a density histogram, an evaluation function representing the quality of the binarization result is obtained based on the feature amount measured from each binary image when binarizing while changing the threshold value. After calculating, there is a method of determining the optimum threshold value by judging from the change state of the evaluation function with respect to the threshold value. This method has a problem that the amount of calculation increases in proportion to the number of threshold values to be changed. The present inventor has already proposed in Japanese Patent Application No. 2-202802 a "threshold value determining device" for solving the above problem.

【0004】本発明はこれの改良に関するものであるの
で、まず前記の先願発明について説明する。最適なしき
い値とは、2値画像上で“1”の連結成分が「まとまっ
た(境界がぎざぎざしていない)」領域として抽出され
る値であると考えられる。いま、2値画像の“1”の点
に関して、その8近傍における“1”の点の数を隣接数
と定義すると、図8に示すように、隣接数は領域の内部
点では8であり、境界点では0〜7の値をとる。そこ
で、2値画像全体に対して隣接数の総和を求め、これを
“1”の点の総数(面積)で割った値を平均隣接数と定
義すれば、領域のまとまりが良いほど領域に占める内部
点の比率が高く、境界点の比率が低くなるので、平均隣
接数は高い値を示すことになる。
Since the present invention relates to an improvement of this, the above-mentioned prior invention will be described first. The optimum threshold value is considered to be a value that is extracted as a region where "1" connected components are "collected (the boundaries are not jagged)" on the binary image. Now, regarding the “1” point of the binary image, if the number of “1” points in the 8 neighborhoods is defined as the number of adjacencies, the number of adjacencies is 8 at the internal points of the region, as shown in FIG. It takes a value of 0 to 7 at the boundary point. Therefore, if the total number of adjacencies is calculated for the entire binary image and this value is divided by the total number (area) of "1" points to define the average number of adjacencies, the better the area cohesion, the more the area occupies the area. Since the ratio of the internal points is high and the ratio of the boundary points is low, the average number of neighbors shows a high value.

【0005】ここで、しきい値Tに対する2値画像にお
ける隣接数の総和をA(T) ,“1”の点の面積をS(T)
で表わすと、平均隣接数R(T) は、
Here, the sum of the numbers of adjacencies in the binary image with respect to the threshold value T is A (T), and the area of the point of "1" is S (T).
When expressed by, the average number of neighbors R (T) is

【0006】[0006]

【数1】 [Equation 1]

【0007】で表わされる。さらに、隣接数がi(i=
0,…,8)である3×3のパターン数をai で表わす
と、隣接数の総和A(T)及び面積S(T)は次のように表現
できる。
It is represented by Furthermore, the number of neighbors is i (i =
If the number of 3 × 3 patterns of 0, ..., 8) is represented by ai, the sum A (T) and the area S (T) of the number of adjacencies can be expressed as follows.

【0008】[0008]

【数2】 [Equation 2]

【0009】[0009]

【数3】 [Equation 3]

【0010】一般に、画像中の対象及び背景が図9のよ
うな濃度分布をもつ場合、しきい値Tに対する平均隣接
数R(T) の変化の様子は図10のようになる。この場
合、平均隣接数が極大となる値をしきい値として2値化
すると、対象がまとまった領域として抽出され、良好な
2値化結果が得られる。
In general, when the object and the background in the image have the density distribution as shown in FIG. 9, the change of the average number of neighbors R (T) with respect to the threshold value T is as shown in FIG. In this case, if the value that maximizes the average number of neighbors is used as the threshold value, the object is extracted as a grouped area, and a good binarization result is obtained.

【0011】前記先願発明の一実施例を図5に示す。図
において、1は濃淡画像から注目点の濃度G0 と、その
8近傍の点の濃度G1 ,…,G8を抽出する局所データ
抽出部、2は前記局所データ抽出部1から出力される9
個の濃度G0 ,…,G8 の中から、選択信号n(n=
0,…,8)に応じて1つを選択する局所データ選択
部、3は前記局所データ選択部2の出力Gn (n=0,
…,8)と前記局所データ抽出部1から出力される注目
点の濃度G0 とを比較して小さい方の値Fn (n=0,
…,8)を出力する最小値選択部、4は前記最小値選択
部3の出力Fn の出現頻度を計数するヒストグラム計数
部、5は前記ヒストグラム計数部4により得られる,F
n に対する9種類のヒストグラムから、しきい値Tで2
値化したときの2値画像における隣接数の総和A(T) と
面積S(T) を求めて、平均隣接数R(T) を算出した後、
しきい値Tに対する平均隣接数R(T) の変化状態に基づ
き最適なしきい値を決定するしきい値決定部である。
FIG. 5 shows an embodiment of the invention of the prior application. In the figure, reference numeral 1 is a local data extraction unit for extracting the density G0 of the point of interest and the densities G1, ..., G8 of the points in the vicinity of the eight from the grayscale image, and 2 is output from the local data extraction unit 1 9
A selection signal n (n = n) from among the individual densities G0, ..., G8
0, ..., 8), one of which is selected by the local data selection unit 3, and 3 is an output Gn (n = 0,
, 8) and the density G0 of the point of interest output from the local data extraction unit 1 are compared, and the smaller value Fn (n = 0,
, 8) for outputting a minimum value selection unit, 4 is a histogram counting unit for counting the appearance frequency of the output Fn of the minimum value selection unit 3, and 5 is obtained by the histogram counting unit 4.
2 from the 9 types of histograms for n
After calculating the sum A (T) and the area S (T) of the number of neighbors in the binarized image and calculating the average number of neighbors R (T),
It is a threshold value determining unit that determines an optimum threshold value based on the change state of the average number of neighbors R (T) with respect to the threshold value T.

【0012】次に、動作について説明する。まず局所デ
ータ抽出部1は、例えば図6のように、9個のラッチ1
1と2個のシフトレジスタ12とから構成され、2値化
すべき濃淡画像から注目点の濃度G0 と、その8近傍の
点の濃度G1 〜G8 を抽出する。次に局所データ選択部
2は、局所データ抽出部1の出力である9個の濃度デー
タG0 ,…,G8 の中から、選択信号n(n=0,…,
8)に応じて1つのデータGn を選択する。次に最小値
選択部3は、局所データ選択部2の出力Gn と、局所デ
ータ抽出部1から送られてくる注目点の濃度G0 とを比
較し、小さい方の値Fn を出力する。いま、Fn をG0
,…,G8 を用いて表わすと、
Next, the operation will be described. First, the local data extraction unit 1 uses nine latches 1 as shown in FIG. 6, for example.
It is composed of one and two shift registers 12, and extracts the density G0 of the point of interest and the densities G1 to G8 of the points in the vicinity of eight from the grayscale image to be binarized. Next, the local data selection unit 2 selects a selection signal n (n = 0, ..., From the nine density data G0, ..., G8 output from the local data extraction unit 1.
Select one data Gn according to 8). Next, the minimum value selection unit 3 compares the output Gn of the local data selection unit 2 with the density G0 of the point of interest sent from the local data extraction unit 1 and outputs the smaller value Fn. Now Fn to G0
, ..., G8,

【0013】[0013]

【数4】 [Equation 4]

【0014】となる。選択信号nを0から8まで変え
て、濃淡画像を9回走査することにより、最小値選択部
3からはFn が出力され、ヒストグラム計数部4がその
出現頻度を計数することによって9種類のヒストグラム
が得られる。
[0014] By changing the selection signal n from 0 to 8 and scanning the grayscale image 9 times, Fn is output from the minimum value selection unit 3, and the histogram counting unit 4 counts the frequency of appearance of the nine types of histograms. Is obtained.

【0015】いま最小値選択処理を行った結果Fn のヒ
ストグラムにおいて、濃度値kをもつ画素数をhn(k)
(k=0,…,N−1;n=0,…,8)で表わす。こ
こでNは濃淡画像を表わす濃度レベルの数である。そこ
で、
In the histogram of the result Fn obtained by performing the minimum value selection process, the number of pixels having the density value k is hn (k).
(K = 0, ..., N-1; n = 0, ..., 8). Here, N is the number of density levels representing a grayscale image. Therefore,

【0016】[0016]

【数5】 [Equation 5]

【0017】となる画素数をHn(T) で表わすと、When the number of pixels is expressed by Hn (T),

【0018】[0018]

【数6】 [Equation 6]

【0019】となる。ここで、最小値選択処理の出力で
あるFn (n=1,…,8)は注目点の濃度G0 と、そ
の8近傍の中の1つの点の濃度Gn (n=1,…,8)
との小さい方の値であるので、Hn(T)(n=1,…,
8)は、濃淡画像をしきい値Tで2値化したとき、注目
点が“1”に,その8近傍の中でGn に対応する点が
“1”に,他の7点が“0”または“1”になる3×3
のパターン数を表わしている。Hn(T)(n=1,…,
8)のそれぞれは、しきい値Tに対する2値画像におい
て隣接数が1から8までの3×3パターン数を含んでお
り、これらを全て加算したものは、隣接数がi(i=
1,…,8)の3×3パターン数ai をそれぞれi回ず
つ加算したものの総和となる。つまり、しきい値Tに対
する2値画像における隣接数の総和A(T) は、
It becomes Here, the output Fn (n = 1, ..., 8) of the minimum value selection process is the density G0 of the point of interest and the density Gn (n = 1, ..., 8) of one of the eight neighboring points.
, Which is the smaller value of Hn (T) (n = 1, ...,
In 8), when the grayscale image is binarized with the threshold value T, the target point is "1", the points corresponding to Gn in the 8 neighborhoods are "1", and the other seven points are "0". 3 or 3 that becomes "or" 1 "
Represents the number of patterns. Hn (T) (n = 1, ...,
Each of 8) includes the number of 3 × 3 patterns in which the number of adjacencies is 1 to 8 in the binary image with respect to the threshold value T, and the sum of all of these results in the number of adjacencies i (i =
1, ..., 8) The total number of 3 × 3 pattern numbers ai added i times. That is, the sum A (T) of the number of adjacencies in the binary image with respect to the threshold T is

【0020】[0020]

【数7】 [Equation 7]

【0021】となる。また、しきい値Tに対する2値画
像における面積S(T) は、F0 =G0のヒストグラムに
おいて、しきい値T以上の画素数そのものであるので、
[0021] Further, the area S (T) in the binary image with respect to the threshold value T is the number of pixels itself equal to or greater than the threshold value T in the histogram of F0 = G0.

【0022】[0022]

【数8】 [Equation 8]

【0023】となる。以上より、隣接数の総和A(T) と
面積S(T)は、最小値選択処理の結果Fn (n=0,
…,8)に対する9種類のヒストグラムから求められ、
これらをもとに平均隣接数R(T) は算出できる。
[0023] From the above, the sum A (T) of the numbers of adjacencies and the area S (T) are calculated as the result Fn (n = 0,
,, 8), which is obtained from nine types of histograms,
The average number of neighbors R (T) can be calculated based on these.

【0024】ところで、上記例では、Fn (n=0,
…,8)のヒストグラムを、選択信号nを0から8まで
変えながら濃淡画像を9回走査して計数する場合につい
て説明したが、図7のように、最小値選択部3及びヒス
トグラム計数部4をそれぞれ9個並列に配置し、各最小
値選択部3の入力として、それぞれ(G0 ,G0 ),
(G1 ,G0 ),…,(G8 ,G0 )を与えることによ
って、Fn (n=0,…,8)に対する9種類のヒスト
グラムが、濃淡画像を1回走査するだけで得られるよう
にすることもできる。この場合、局所データ選択部2は
不要になる。なお、(G0 ,G0 )を2入力とする最小
値選択部3は、G0 をそのままヒストグラム計数部4に
入力することにより省略できることは言うまでもない。
By the way, in the above example, Fn (n = 0,
, 8), the grayscale image is scanned and counted 9 times while changing the selection signal n from 0 to 8, but the minimum value selecting unit 3 and the histogram counting unit 4 are used as shown in FIG. 9 are arranged in parallel, and (G0, G0), and
By giving (G1, G0), ..., (G8, G0), nine kinds of histograms for Fn (n = 0, ..., 8) can be obtained by scanning the grayscale image only once. You can also In this case, the local data selection unit 2 becomes unnecessary. Needless to say, the minimum value selection unit 3 having two inputs (G0, G0) can be omitted by directly inputting G0 to the histogram counting unit 4.

【0025】[0025]

【発明が解決しようとする課題】従来のしきい値決定装
置は以上のように構成されているので、最小値選択部の
出力Fn (n=0,…,8)のヒストグラムを、選択信
号nを0から8まで変えながら濃淡画像を9回走査して
計数する必要があり、処理時間がかかる。また、Fn
(n=0,…,8)に対する9種類のヒストグラムは、
濃淡画像を1回走査するだけで得られるようにすること
もできるが、最小値選択部及びヒストグラム計数部をそ
れぞれ9個並列に配置する必要があり、回路規模が大き
くなるなどの問題点があった。
Since the conventional threshold value determining apparatus is constructed as described above, the histogram of the output Fn (n = 0, ..., 8) of the minimum value selecting section is converted into the selection signal n. It is necessary to scan and count the grayscale image 9 times while changing from 0 to 8, which requires processing time. Also, Fn
The nine types of histograms for (n = 0, ..., 8) are
Although it is possible to obtain the grayscale image by scanning the grayscale image only once, it is necessary to arrange nine minimum value selection units and nine histogram counting units in parallel, which causes a problem such as an increase in circuit scale. It was

【0026】この発明は上記のような問題点を解消する
ためになされたもので、走査回数を少なくして処理時間
を短縮でき、また、回路規模を縮小できるしきい値決定
方法及びその装置を得ることを目的としている。
The present invention has been made in order to solve the above problems, and provides a threshold value determining method and apparatus capable of reducing the number of scans to shorten the processing time and the circuit scale. The purpose is to get.

【0027】[0027]

【課題を解決するための手段】この発明に係るしきい値
決定方法は、濃淡画像から注目点の濃度G0 と、その8
近傍の点のうちで注目点に対して対称な2点を含まない
ように選んだ4点の濃度G1 ,…,G4 を抽出し、抽出
された5点の濃度GO ,…,G4 の中から濃淡画像の1
走査毎に1つずつ選択するとともに、選択された濃度G
n (n=0,…,4)と注目点の濃度G0 のうち小さい
方の値Fn を選択し、濃淡画像を5回走査することによ
り得られる各Fn の出現頻度を計数して5種類のヒスト
グラムを生成し、生成されたヒストグラムに基づき隣接
数の総和A(T) と面積S(T) を求めて平均隣接数R(T)
を算出した後、しきい値Tに対する平均隣接数R(T) の
変化状態に基づき最適なしきい値を決定するようにした
ものである。
According to the threshold value determining method of the present invention, the density G0 of the point of interest from the grayscale image and its
Of the neighboring points, the densities G1, ..., G4 of four points selected so as not to include two points symmetrical with respect to the target point are extracted, and the densities G0, ..., G4 of the five points extracted are extracted. Gray image 1
Select one for each scan and select the selected density G
Of n (n = 0, ..., 4) and the density G0 of the point of interest, the smaller value Fn is selected, and the frequency of appearance of each Fn obtained by scanning the grayscale image five times is counted to determine five types. Generate a histogram, calculate the sum A (T) and the area S (T) of the number of neighbors based on the generated histogram, and calculate the average number of neighbors R (T).
After calculating, the optimum threshold value is determined based on the change state of the average number of neighbors R (T) with respect to the threshold value T.

【0028】また、本願の別の発明に係るしきい値決定
方法は、濃淡画像から注目点の濃度G0 と、その8近傍
の点のうちで注目点に対して対称な2点を含まないよう
に選んだ4点の濃度G1 ,…,G4 を抽出し、抽出され
た5点の濃度GO ,…,G4のそれぞれと注目点の濃度
G0 のうちそれぞれ小さい方の値Fn (n=0,…,
4)を選択し、濃淡画像を1回走査することにより得ら
れる各Fn の出現頻度を計数して5種類のヒストグラム
を生成し、生成されたヒストグラムに基づき隣接数の総
和A(T) と面積S(T) を求めて平均隣接数R(T) を算出
した後、しきい値Tに対する平均隣接数R(T) の変化状
態に基づき最適なしきい値を決定するようにしたもので
ある。
Further, the threshold value determining method according to another invention of the present application does not include the density G0 of the target point from the grayscale image and two points of the eight neighboring points which are symmetrical with respect to the target point. , G4 at the four points selected in step S4 are extracted, and the smaller value Fn (n = 0, ...) Of the respective concentrations G0 ,. ,
4) is selected, the appearance frequency of each Fn obtained by scanning the grayscale image once is counted, and five types of histograms are generated. Based on the generated histograms, the sum A (T) and the area of the adjacent numbers are calculated. After calculating S (T) and calculating the average number of neighbors R (T), the optimum threshold value is determined based on the change state of the average number of neighbors R (T) with respect to the threshold value T.

【0029】一方、この発明に係るしきい値決定装置
は、濃淡画像から注目点の濃度G0 と、その8近傍の点
のうちで注目点に対して対称な2点を含まないように選
んだ4点の濃度G1 ,…,G4 を抽出する抽出部と、前
記抽出部から出力される5点の濃度GO ,…,G4 の中
から選択信号n(n=0,…,4)に応じて1つを選択
して出力する第1の選択部と、前記第1の選択部の出力
Gn と注目点の濃度G0のうち小さい方の値Fn を選択
して出力する第2の選択部と、前記第2の選択部の各出
力Fn の出現頻度を計数するヒストグラム計数部と、前
記ヒストグラム計数部から各Fn に対して得られるヒス
トグラムに基づき隣接数の総和A(T) と面積S(T) を求
めて平均隣接数R(T) を算出した後、しきい値Tに対す
る平均隣接数R(T) の変化状態に基づき最適なしきい値
を決定するしきい値決定部とを備えたものである。
On the other hand, the threshold value determining apparatus according to the present invention is selected so as not to include the density G0 of the point of interest from the grayscale image and two points of the eight neighboring points which are symmetrical with respect to the point of interest. Depending on the selection signal n (n = 0, ..., 4) from the extraction unit for extracting the densities G1, ..., G4 at the four points and the densities GO, ..., G4 at the five points output from the extraction unit. A first selecting section for selecting and outputting one, and a second selecting section for selecting and outputting a smaller value Fn of the output Gn of the first selecting section and the density G0 of the target point, A histogram counter that counts the frequency of appearance of each output Fn of the second selector, and a sum A (T) and an area S (T) of the number of neighbors based on the histogram obtained for each Fn from the histogram counter. After calculating the average number of neighbors R (T), the average number of neighbors R (T) with respect to the threshold T is changed to It is obtained by a threshold value determination unit that determines an optimal threshold Hazuki.

【0030】また、本願の別の発明に係るしきい値決定
装置は、前記抽出部の出力である5点の濃度G0 ,…,
G4 のそれぞれと注目点の濃度G0 のうちそれぞれ小さ
い方の値Fn (n=0,…,4)を選択して出力する選
択部と、前記選択部の各出力Fn の出現頻度を同時に計
数して前記しきい値決定部に与える5個のヒストグラム
計数部を備えたものである。
Also, a threshold value determining device according to another invention of the present application is the density G0 of five points which is the output of the extracting unit ,.
A selection unit that selects and outputs the smaller value Fn (n = 0, ..., 4) of each of G4 and the density G0 of the point of interest, and the appearance frequency of each output Fn of the selection unit is simultaneously counted. The present invention is provided with five histogram counting units which are provided to the threshold value determining unit.

【0031】[0031]

【作用】この発明におけるしきい値決定方法は、濃淡画
像から注目点の濃度G0 と、その8近傍の点のうちで注
目点に対して対称な2点を含まないように選んだ4点の
濃度G1 ,…,G4 を抽出することにより、5種類のヒ
ストグラムから最適なしきい値が決定できるので、濃淡
画像の走査が5回で済む。
In the threshold value determining method of the present invention, the density G0 of the point of interest from the grayscale image and the four points selected so as not to include two points symmetric with respect to the point of interest among the eight neighboring points. By extracting the densities G1, ..., G4, the optimum threshold value can be determined from the five types of histograms, so that the grayscale image can be scanned five times.

【0032】また、別の発明におけるしきい値決定方法
は、前記と同様に抽出された5点の濃度GO ,…,G4
のそれぞれと注目点の濃度G0 のうちそれぞれ小さい方
の値Fn (n=0,…,4)を選択し、濃淡画像を1回
走査することにより得られる各Fn の出現頻度を計数し
て5種類のヒストグラムを生成するので、濃淡画像の走
査が1回で済むとともに、その場合の回路規模を縮小す
ることができる。
A threshold value determining method according to another aspect of the present invention is the same as the above, in which the concentrations of five points GO, ..., G4 are extracted.
, And the density G0 of the point of interest, whichever is smaller, Fn (n = 0, ..., 4) is selected, and the appearance frequency of each Fn obtained by scanning the grayscale image once is counted to obtain 5 Since the types of histograms are generated, it is possible to scan the grayscale image only once, and the circuit scale in that case can be reduced.

【0033】一方、この発明におけるしきい値決定装置
の抽出部は、濃淡画像から注目点の濃度G0 と、その8
近傍の点のうちで注目点に対して対称な2点を含まない
ように選んだ4点の濃度G1 ,…,G4 を抽出し、第1
の選択部は、抽出部から送られてくる5点の濃度GO ,
…,G4 の中から選択信号n(n=0,…,4)に応じ
て1つを選択し、その出力Gnを第2の選択部の一方の
入力とする。
On the other hand, the extraction unit of the threshold value determining device according to the present invention determines the density G0 of the point of interest from the grayscale image and its density.
From the neighboring points, the densities G1, ..., G4 of four points selected so as not to include two points symmetrical with respect to the target point are extracted,
The selection section of the five points of concentration GO, which is sent from the extraction section,
, G4 is selected according to the selection signal n (n = 0, ..., 4), and its output Gn is used as one input of the second selection section.

【0034】また、別の発明におけるしきい値決定装置
では、選択部として前記第2の選択部に相当するものを
5個(4個でもよい)並列に配置し、その入力としてそ
れぞれ(G0 ,G0 ),(G1 ,G0 ),…,(G4 ,
G0 )を与え、その各出力Fn の出現頻度を同時に計数
してしきい値決定部に与える5個のヒストグラム計数部
を備えることによって、濃淡画像を1回走査するだけで
良く、前記第1の選択部は不要となるとともに、選択部
とヒストグラム計数部の回路規模が従来の約半分に縮小
できる。
In the threshold value determining device according to another invention, five (or four) units corresponding to the second selection unit are arranged in parallel as selection units, and (G0, G0), (G1, G0), ..., (G4,
G0) is provided and the frequency of appearance of each output Fn is simultaneously counted and provided to the threshold value determining unit by five histogram counting units, so that the grayscale image need only be scanned once, The selection unit is not necessary, and the circuit scale of the selection unit and the histogram counting unit can be reduced to about half of the conventional one.

【0035】[0035]

【実施例】実施例1.以下、この発明の一実施例を図に
ついて説明する。図1は一実施例の構成を示すブロック
図であり、図において、1は濃淡画像から注目点の濃度
G0 と、その8近傍の点のうちで、注目点に対して対称
な2点を含まないように選んだ4点の濃度G1 ,…,G
4 を抽出する局所データ抽出部、2は前記局所データ抽
出部1から出力される5個の濃度G0 ,…,G4 の中か
ら、選択信号n(n=0,…,4)に応じて1つを選択
する局所データ選択部(第1の選択部)、3は前記局所
データ選択部2の出力Gn (n=0,…,4)と前記局
所データ抽出部1から出力される注目点の濃度G0 とを
比較して小さい方の値Fn (n=0,…,4)を出力す
る最小値選択部(第2の選択部)、4は前記最小値選択
部3の出力Fn の出現頻度を計数するヒストグラム計数
部、5は前記ヒストグラム計数部4により得られる,F
n に対する5種類のヒストグラムから、しきい値Tで2
値化したときの2値画像における隣接数の総和A(T) と
面積S(T) を求めて、平均隣接数R(T) を算出した後、
しきい値Tに対する平均隣接数R(T) の変化状態に基づ
き最適なしきい値を決定するしきい値決定部である。
EXAMPLES Example 1. An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of one embodiment. In the figure, 1 includes a density G0 of a point of interest from a grayscale image and two points in the vicinity of 8 of them, which are symmetrical with respect to the point of interest. 4 points of density G1, ..., G
A local data extraction unit 2 for extracting 4 outputs 1 from the five densities G0, ..., G4 output from the local data extraction unit 1 according to a selection signal n (n = 0, ..., 4). A local data selection unit (first selection unit) 3 for selecting one of the output points Gn (n = 0, ..., 4) of the local data selection unit 2 and the point of interest output from the local data extraction unit 1 A minimum value selection unit (second selection unit) 4 that outputs the smaller value Fn (n = 0, ..., 4) by comparing with the density G0, 4 is the frequency of appearance of the output Fn of the minimum value selection unit 3. Histogram counting section 5 for counting
From the 5 types of histograms for n, the threshold value is 2
After calculating the sum A (T) and the area S (T) of the number of neighbors in the binarized image and calculating the average number of neighbors R (T),
It is a threshold value determining unit that determines an optimum threshold value based on the change state of the average number of neighbors R (T) with respect to the threshold value T.

【0036】次に、動作について説明する。まず局所デ
ータ抽出部1は、例えば図2のように、5個のラッチ1
1と1個のシフトレジスタ12とから構成され、2値化
すべき濃淡画像から注目点の濃度G0 と、その8近傍の
点の濃度のうちで注目点に対して対称な2点を含まない
ように選んだ4点の濃度G1 ,…,G4 を抽出する。次
に局所データ選択部2は、局所データ抽出部1の出力で
ある5個の濃度データG0 ,…,G4 の中から、選択信
号n(n=0,…,4)に応じて1つのデータGn を選
択する。次に最小値選択部3は、局所データ選択部2の
出力Gn と、局所データ抽出部1から送られてくる注目
点の濃度G0 とを比較し、小さい方の値Fn を出力す
る。いま、Fn をG0 ,…,G4 を用いて表わすと、
Next, the operation will be described. First, the local data extraction unit 1 uses, for example, five latches 1 as shown in FIG.
It consists of one and one shift register 12, and the density G0 of the point of interest from the grayscale image to be binarized and the density of the eight neighboring points do not include two points which are symmetrical with respect to the point of interest. The four densities G1, ..., G4 selected for are extracted. Next, the local data selection unit 2 selects one of the five density data G0, ..., G4 output from the local data extraction unit 1 according to the selection signal n (n = 0, ..., 4). Select Gn. Next, the minimum value selection unit 3 compares the output Gn of the local data selection unit 2 with the density G0 of the point of interest sent from the local data extraction unit 1 and outputs the smaller value Fn. Now, when Fn is expressed using G0, ..., G4,

【0037】[0037]

【数9】 [Equation 9]

【0038】となる。選択信号nを0から4まで変え
て、濃淡画像を5回走査することにより、最小値選択部
3からは各Fn が出力され、ヒストグラム計数部4がそ
の出現頻度を計数することによって5種類のヒストグラ
ムが得られる。
[0038] By changing the selection signal n from 0 to 4 and scanning the grayscale image 5 times, each Fn is output from the minimum value selection unit 3, and the histogram counting unit 4 counts the frequency of appearance thereof to obtain 5 types of Fn. A histogram is obtained.

【0039】いま、図3の(a)のように、3×3の局
所領域13とその右に1画素ずれた局所領域14を考え
ると、局所領域13の2点の濃度(G0 ,G1 )と局所
領域14の2点の濃度(G5 ,G0 )は、それぞれ同じ
である。従って、局所領域13のF1 =min(G0 ,
G1 )と局所領域14のF5 =min(G5 ,G0 )と
は同じ値になる。つまり、画像全体でみるとF1 とF5
のヒストグラムは同じになる。
Now, as shown in FIG. 3A, considering a local region 13 of 3 × 3 and a local region 14 shifted by one pixel to the right of the local region 13, the densities (G0, G1) at two points in the local region 13 are considered. And the densities (G5, G0) at the two points in the local region 14 are the same. Therefore, F1 = min (G0, G0,
G1) and F5 = min (G5, G0) of the local area 14 have the same value. In other words, F1 and F5 in the whole image
Will have the same histogram.

【0040】また、図3の(b)のように、3×3の局
所領域13とその右に1画素,下に1画素ずれた局所領
域15を考えると、局所領域13の2点の濃度(G0 ,
G2)と局所領域15の2点の濃度(G6 ,G0 )は、
それぞれ同じである。従って、局所領域13のF2 =m
in(G2 ,G0 )と局所領域15のF6 =min(G
6 ,G0 )とは同じ値になる。つまり、画像全体でみる
と、F2 とF6 のヒストグラムは同じになる。
Further, as shown in FIG. 3B, considering the local region 13 of 3 × 3 and the local region 15 with one pixel to the right and one pixel below, the densities of two points in the local region 13 are considered. (G0,
G2) and the density (G6, G0) at the two points of the local region 15 are
Each is the same. Therefore, F2 = m of the local area 13
in (G2, G0) and F6 = min (G
6 and G0) have the same value. That is, the histograms of F2 and F6 are the same in the whole image.

【0041】同様にして、F3 とF7 のヒストグラム,
F4 とF8 のヒストグラムは同じになる。以上より、F
n のヒストグラムにおいて、濃度値kをもつ画素数hn
(k)には、
Similarly, the histograms of F3 and F7,
The histograms of F4 and F8 are the same. From the above, F
The number of pixels with density value k in the histogram of n hn
(k) is

【0042】[0042]

【数10】 [Equation 10]

【0043】の関係が成立する。また、(5)式を満た
す画素数Hn(T)にも、
The following relationship holds. In addition, the number of pixels Hn (T) that satisfies equation (5)

【0044】[0044]

【数11】 [Equation 11]

【0045】の関係が成立する。そこで、(7)式に
(11)式を適用すると、隣接数の総和A(T)は、
The relationship of is established. Therefore, when the equation (11) is applied to the equation (7), the sum A (T) of the numbers of adjacencies is

【0046】[0046]

【数12】 [Equation 12]

【0047】と表わされる。すなわち、隣接数の総和A
(T)と面積S(T)は、最小値選択処理の結果Fn (n=
0,…,4)に対する5種類のヒストグラムから求めら
れ、これらをもとに平均隣接数R(T)は算出できる。
Is represented by That is, the sum A of the numbers of adjacencies
(T) and area S (T) are the result of the minimum value selection process Fn (n =
0, ..., 4) are obtained from five types of histograms, and the average number of neighbors R (T) can be calculated based on these.

【0048】実施例2.ところで、上記実施例では、F
n (n=0,…,4)のヒストグラムを、選択信号nを
0から4まで変えながら濃淡画像を5回走査して計数す
る場合について説明したが、図4のように、最小値選択
部3及びヒストグラム計数部4をそれぞれ5個並列に配
置し、本願の別発明の選択部30を構成する各最小値選
択部3の入力として、それぞれ(G0 ,G0 ),(G1
,G0 ),…,(G4 ,G0 )を与えることによっ
て、Fn (n=0,…,4)に対する5種類のヒストグ
ラムが、濃淡画像を1回走査するだけで得られるように
することもできる。この場合、局所データ選択部2は不
要になる。なお、(G0 ,G0 )を2入力とする最小値
選択部3は、G0 をそのままヒストグラム計数部4に入
力することにより省略できることは言うまでもない。
Example 2. By the way, in the above embodiment, F
The case where the histogram of n (n = 0, ..., 4) is counted by scanning the grayscale image 5 times while changing the selection signal n from 0 to 4 has been described. However, as shown in FIG. 3 and 5 histogram counting units 4 are arranged in parallel, and (G0, G0), (G1) are input to the respective minimum value selecting units 3 which constitute the selecting unit 30 according to another invention of the present application.
, G0), ..., (G4, G0), five kinds of histograms for Fn (n = 0, ..., 4) can be obtained by scanning the grayscale image only once. .. In this case, the local data selection unit 2 becomes unnecessary. Needless to say, the minimum value selection unit 3 having two inputs (G0, G0) can be omitted by directly inputting G0 to the histogram counting unit 4.

【0049】[0049]

【発明の効果】以上のように、この発明のしきい値決定
方法及びその装置によれば、濃淡画像から注目点の濃度
G0 と、その8近傍の点のうちで注目点に対して対称な
2点を含まないように選んだ4点の濃度G1 ,…,G4
を抽出し、抽出された5点の濃度GO ,…,G4 の中か
ら濃淡画像の1走査毎に1つずつ選択するとともに、選
択された濃度Gn (n=0,…,4)と注目点の濃度G
0 のうち小さい方の値Fn を選択し、濃淡画像を5回走
査することにより得られる各Fn の出現頻度を計数して
5種類のヒストグラムを生成し、このヒストグラムに基
づき最適なしきい値を決定するようにしたので、従来の
ように、濃淡画像を9回走査する必要がなくなって5回
の走査で済み、処理時間が短縮できるという効果があ
る。
As described above, according to the threshold value determining method and the apparatus therefor of the present invention, the density G0 of the point of interest from the grayscale image and the points of the eight neighboring points are symmetrical with respect to the point of interest. Density of four points G1, ..., G4 selected not to include two points
, G4 are selected from the extracted five densities G0, ..., G4, one for each scan of the grayscale image, and the selected densities Gn (n = 0, ..., 4) and the point of interest are selected. Concentration G
The smaller value Fn of 0 is selected, the appearance frequency of each Fn obtained by scanning the grayscale image five times is counted, five types of histograms are generated, and the optimum threshold value is determined based on this histogram. Since this is done, it is not necessary to scan the grayscale image 9 times as in the prior art, and only 5 scans are required, and the processing time can be shortened.

【0050】また、本願の別の発明によるしきい値決定
方法及びその装置によれば、前記と同様に抽出された5
点の濃度GO ,…,G4 のそれぞれと注目点の濃度G0
のうちそれぞれ小さい方の値Fn (n=0,…,4)を
選択し、濃淡画像を1回走査することにより得られる各
Fn の出現頻度を計数して5種類のヒストグラムを生成
するので、濃淡画像の走査が1回で済むとともに、従来
のように、最小値選択部とヒストグラム計数部を9個並
列に配置する必要がなくなり、回路規模を大幅に縮小で
きるという効果がある。
Further, according to the threshold value determining method and the apparatus therefor according to another invention of the present application, the extracted 5
Each of the density of points GO, ..., G4 and the density of the point of interest G0
Of these, the smaller value Fn (n = 0, ..., 4) is selected, and the appearance frequency of each Fn obtained by scanning the grayscale image once is counted to generate five types of histograms. There is an effect that it is possible to scan the grayscale image only once, and it is not necessary to arrange nine minimum value selecting units and nine histogram counting units in parallel as in the conventional case, and the circuit scale can be greatly reduced.

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

【図1】この発明の一実施例を示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】この発明における局所データ抽出部の一実施例
を示す構成図である。
FIG. 2 is a configuration diagram showing an embodiment of a local data extraction unit in the present invention.

【図3】最小値選択処理の同一性を示す説明図である。FIG. 3 is an explanatory diagram showing the identity of minimum value selection processing.

【図4】別の発明の一実施例を示す構成図である。FIG. 4 is a configuration diagram showing an embodiment of another invention.

【図5】従来例を示す構成図である。FIG. 5 is a configuration diagram showing a conventional example.

【図6】従来例における局所データ抽出部を示す構成図
である。
FIG. 6 is a configuration diagram showing a local data extraction unit in a conventional example.

【図7】別の従来例を示す構成図である。FIG. 7 is a configuration diagram showing another conventional example.

【図8】隣接数の説明図である。FIG. 8 is an explanatory diagram of the number of neighbors.

【図9】画像中の対象と背景の濃度分布を示す説明図で
ある。
FIG. 9 is an explanatory diagram showing density distributions of an object and a background in an image.

【図10】しきい値に対する平均隣接数の変化の様子を
示す説明図である。
FIG. 10 is an explanatory diagram showing how the average number of neighbors changes with respect to a threshold value.

【符号の説明】[Explanation of symbols]

1 局所データ抽出部 2 局所データ選択部(第1の選択部) 3 最小値選択部(第2の選択部) 4 ヒストグラム計数部 5 しきい値決定部 30 選択部 1 Local Data Extraction Section 2 Local Data Selection Section (First Selection Section) 3 Minimum Value Selection Section (Second Selection Section) 4 Histogram Count Section 5 Threshold Determination Section 30 Selection Section

【手続補正書】[Procedure amendment]

【提出日】平成4年8月24日[Submission date] August 24, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0046[Correction target item name] 0046

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0046】[0046]

【数12】 [Equation 12]

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 濃淡画像を2値化する際のしきい値決定
に関して、しきい値Tに対する2値画像のある点が
“1”であるとき、その8近傍でこの注目点に隣接して
いる“1”の点の数を示す隣接数の総和A(T) と“1”
の点の総数を示す面積S(T) をもとに、平均隣接数R
(T) =A(T) /S(T) を求め、しきい値Tに対する平均
隣接数R(T) の変化状態に基づき最適なしきい値を決定
するしきい値決定方法であって、濃淡画像から注目点の
濃度G0 と、その8近傍の点のうちで注目点に対して対
称な2点を含まないように選んだ4点の濃度G1 ,…,
G4 を抽出し、抽出された5点の濃度GO ,…,G4 の
中から濃淡画像の1走査毎に1つずつ選択するととも
に、選択された濃度Gn (n=0,…,4)と注目点の
濃度G0 のうち小さい方の値Fn を選択し、濃淡画像を
5回走査することにより得られる各Fn の出現頻度を計
数して5種類のヒストグラムを生成し、生成されたヒス
トグラムに基づき前記隣接数の総和A(T)と“1”の点
の面積S(T) を求めて平均隣接数R(T) を算出した後、
しきい値Tに対する平均隣接数R(T) の変化状態に基づ
き最適なしきい値を決定することを特徴とするしきい値
決定方法。
1. Regarding threshold value determination when binarizing a grayscale image, when a certain point of the binary image with respect to the threshold value T is "1", it is adjacent to this point of interest in the vicinity of eight of the points. The total sum A (T) of adjacent points that indicates the number of “1” points and “1”
Based on the area S (T) indicating the total number of points
(T) = A (T) / S (T) is obtained, and the optimum threshold is determined based on the change state of the average number of neighbors R (T) with respect to the threshold T. From the image, the density G0 of the point of interest and the densities G1 of the four points selected so as not to include two points symmetrical with the point of interest among the eight neighboring points G1 ,.
G4 is extracted, and one is selected for each scanning of the gray-scale image from among the extracted five points of density GO, ..., G4, and the selected density Gn (n = 0, ..., 4) is noted. The smaller value Fn of the point densities G0 is selected, the appearance frequency of each Fn obtained by scanning the grayscale image five times is counted, and five types of histograms are generated. Based on the generated histogram, After calculating the total number of adjacencies A (T) and the area S (T) of the "1" point to calculate the average number of adjacencies R (T),
A method for determining a threshold value, characterized in that an optimum threshold value is determined based on a change state of the average number of neighbors R (T) with respect to the threshold value T.
【請求項2】 濃淡画像を2値化する際のしきい値決定
に関して、しきい値Tに対する2値画像のある点が
“1”であるとき、その8近傍でこの注目点に隣接して
いる“1”の点の数を示す隣接数の総和A(T) と“1”
の点の総数を示す面積S(T) をもとに、平均隣接数R
(T) =A(T) /S(T) を求め、しきい値Tに対する平均
隣接数R(T) の変化状態に基づき最適なしきい値を決定
するしきい値決定方法であって、濃淡画像から注目点の
濃度G0 と、その8近傍の点のうちで注目点に対して対
称な2点を含まないように選んだ4点の濃度G1 ,…,
G4 を抽出し、抽出された5点の濃度GO ,…,G4 の
それぞれと注目点の濃度G0 のうちそれぞれ小さい方の
値Fn (n=0,…,4)を選択し、濃淡画像を1回走
査することにより得られる各Fn の出現頻度を計数して
5種類のヒストグラムを生成し、生成されたヒストグラ
ムに基づき前記隣接数の総和A(T) と“1”の点の面積
S(T) を求めて平均隣接数R(T) を算出した後、しきい
値Tに対する平均隣接数R(T) の変化状態に基づき最適
なしきい値を決定することを特徴とするしきい値決定方
法。
2. Regarding threshold value determination when binarizing a grayscale image, when a certain point of the binary image with respect to the threshold value T is "1", it is adjacent to this point of interest in the vicinity of eight of the points. The total sum A (T) of adjacent points that indicates the number of “1” points and “1”
Based on the area S (T) indicating the total number of points
(T) = A (T) / S (T) is obtained, and the optimum threshold is determined based on the change state of the average number of neighbors R (T) with respect to the threshold T. From the image, the density G0 of the point of interest and the densities G1 of the four points selected so as not to include two points symmetrical with the point of interest among the eight neighboring points G1 ,.
, G4 is extracted, and the smaller value Fn (n = 0, ..., 4) of each of the five extracted densities G0, ..., G4 and the density G0 of the target point is selected, and the grayscale image is set to 1 The frequency of appearance of each Fn obtained by scanning twice is counted to generate five types of histograms, and based on the generated histograms, the sum A (T) of the numbers of adjacencies and the area S (T ) Is calculated and the average number of neighbors R (T) is calculated, and then an optimal threshold value is determined based on the change state of the average number of neighbors R (T) with respect to the threshold value T. ..
【請求項3】 濃淡画像を2値化する際のしきい値決定
に関して、しきい値Tに対する2値画像のある点が
“1”であるとき、その8近傍でこの注目点に隣接して
いる“1”の点の数を示す隣接数の総和A(T) と“1”
の点の総数を示す面積S(T) をもとに、平均隣接数R
(T) =A(T) /S(T) を求め、しきい値Tに対する平均
隣接数R(T) の変化状態に基づき最適なしきい値を決定
するしきい値決定装置であって、濃淡画像から注目点の
濃度G0 と、その8近傍の点のうちで注目点に対して対
称な2点を含まないように選んだ4点の濃度G1 ,…,
G4 を抽出する抽出部と、前記抽出部から出力される5
点の濃度GO ,…,G4 の中から選択信号n(n=0,
…,4)に応じて1つを選択して出力する第1の選択部
と、前記第1の選択部の出力Gn と注目点の濃度G0 の
うち小さい方の値Fn を選択して出力する第2の選択部
と、前記第2の選択部の各出力Fn の出現頻度を計数す
るヒストグラム計数部と、前記ヒストグラム計数部から
各Fn に対して得られるヒストグラムに基づき前記隣接
数の総和A(T) と“1”の点の面積S(T)を求めて平均
隣接数R(T) を算出した後、しきい値Tに対する平均隣
接数R(T)の変化状態に基づき最適なしきい値を決定す
るしきい値決定部とを備えたことを特徴とするしきい値
決定装置。
3. Regarding threshold value determination when binarizing a grayscale image, when a certain point of the binary image with respect to the threshold value T is "1", it is adjacent to this point of interest in its 8 vicinity. The total sum A (T) of adjacent points that indicates the number of “1” points and “1”
Based on the area S (T) indicating the total number of points
(T) = A (T) / S (T), which is a threshold value determining device that determines an optimum threshold value based on the change state of the average number of neighbors R (T) with respect to the threshold value T. From the image, the density G0 of the point of interest and the densities G1 of the four points selected so as not to include two points symmetrical with the point of interest among the eight neighboring points G1 ,.
An extraction unit for extracting G4 and the output from the extraction unit 5
A selection signal n (n = 0, from among the density of points GO, ..., G4)
, 4), which selects and outputs one, and the smaller value Fn of the output Gn of the first selector and the density G0 of the point of interest is selected and output. A second selection unit, a histogram counting unit that counts the frequency of appearance of each output Fn of the second selection unit, and a sum A (of the adjacency numbers based on the histogram obtained from the histogram counting unit for each Fn. T) and the area S (T) of the point “1” are calculated to calculate the average number of neighbors R (T), and then the optimal threshold value is calculated based on the change state of the average number of neighbors R (T) with respect to the threshold value T. And a threshold value determining unit that determines the threshold value.
【請求項4】 濃淡画像を2値化する際のしきい値決定
に関して、しきい値Tに対する2値画像のある点が
“1”であるとき、その8近傍でこの注目点に隣接して
いる“1”の点の数を示す隣接数の総和A(T) と“1”
の点の総数を示す面積S(T) をもとに、平均隣接数R
(T) =A(T) /S(T) を求め、しきい値Tに対する平均
隣接数R(T) の変化状態に基づき最適なしきい値を決定
するしきい値決定装置であって、濃淡画像から注目点の
濃度G0 と、その8近傍の点のうちで注目点に対して対
称な2点を含まないように選んだ4点の濃度G1 ,…,
G4 を抽出する抽出部と、前記抽出部から出力される5
点の濃度G0 ,…,G4 のそれぞれと注目点の濃度G0
のうちそれぞれ小さい方の値Fn (n=0,…,4)を
選択して出力する選択部と、前記選択部の各出力Fn の
出現頻度を同時に計数する5個のヒストグラム計数部
と、前記各ヒストグラム計数部から各Fn に対して同時
に得られるヒストグラムに基づき前記隣接数の総和A
(T) と“1”の点の面積S(T) を求めて平均隣接数R
(T) を算出した後、しきい値Tに対する平均隣接数R
(T) の変化状態に基づき最適なしきい値を決定するしき
い値決定部とを備えたことを特徴とするしきい値決定装
置。
4. Regarding threshold value determination when binarizing a grayscale image, when a certain point of the binary image with respect to the threshold value T is "1", it is adjacent to this point of interest in its 8 vicinity. The total sum A (T) of adjacent points that indicates the number of “1” points and “1”
Based on the area S (T) indicating the total number of points
(T) = A (T) / S (T), which is a threshold value determining device that determines an optimum threshold value based on the change state of the average number of neighbors R (T) with respect to the threshold value T. From the image, the density G0 of the point of interest and the densities G1 of the four points selected so as not to include two points symmetrical with the point of interest among the eight neighboring points G1 ,.
An extraction unit for extracting G4 and the output from the extraction unit 5
Each of the point densities G0, ..., G4 and the point of interest density G0
A selection unit that selects and outputs the smaller value Fn (n = 0, ..., 4), and five histogram counting units that simultaneously count the frequency of appearance of each output Fn of the selection unit; Based on the histograms simultaneously obtained for each Fn from each histogram counting unit, the sum A of the adjacent numbers is obtained.
Calculate the area S (T) of (T) and the point of "1", and calculate the average number of adjacencies R
After calculating (T), the average number of neighbors R with respect to the threshold value T
A threshold value determining device, comprising: a threshold value determining section for determining an optimum threshold value based on a change state of (T).
JP3301117A 1991-10-21 1991-10-21 Threshold value determination method and device Expired - Fee Related JP2843185B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3301117A JP2843185B2 (en) 1991-10-21 1991-10-21 Threshold value determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3301117A JP2843185B2 (en) 1991-10-21 1991-10-21 Threshold value determination method and device

Publications (2)

Publication Number Publication Date
JPH05115005A true JPH05115005A (en) 1993-05-07
JP2843185B2 JP2843185B2 (en) 1999-01-06

Family

ID=17893040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3301117A Expired - Fee Related JP2843185B2 (en) 1991-10-21 1991-10-21 Threshold value determination method and device

Country Status (1)

Country Link
JP (1) JP2843185B2 (en)

Also Published As

Publication number Publication date
JP2843185B2 (en) 1999-01-06

Similar Documents

Publication Publication Date Title
CN108229526B (en) Network training method, network training device, image processing method, image processing device, storage medium and electronic equipment
JP4053345B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, program, and recording medium
JPH05227425A (en) Improvement in automatic image segmentation
JPS60230281A (en) Character discriminator
CN117522869B (en) Image processing method, defect detection method, system and electronic equipment
JPH1188664A (en) Image-processing unit and record medium recorded with program thereof
JPH10294862A (en) Image processor
JPH05115005A (en) Method and device for deciding threshold level
JP2761285B2 (en) Threshold value determination device
JP2596613B2 (en) Threshold value determination device
JPH0620054A (en) Method and apparatus for decision of pattern data
JPS6359272A (en) Picture processor
JPH10269352A (en) Image processor and method
JPH06261210A (en) Threshold determining method
CN117474915B (en) Abnormality detection method, electronic equipment and storage medium
CN112801112B (en) Image binarization processing method, device, medium and equipment
JPH1185976A (en) Picture noise analysis method and recording medium
JP2853140B2 (en) Image area identification device
JPH11112796A (en) Image processor
KR100408521B1 (en) Method for extraction of query object from database images
JP2003317083A (en) Image classifying method, program, and image classifying device
JPH10200755A (en) Image noise analysis method
KR100484170B1 (en) Method and apparatus for improvement of digital image quality
JPH0678153A (en) Threshold determining device
JPH10143673A (en) Picture processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071023

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081023

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091023

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091023

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101023

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees