JPS6218956B2 - - Google Patents

Info

Publication number
JPS6218956B2
JPS6218956B2 JP495679A JP495679A JPS6218956B2 JP S6218956 B2 JPS6218956 B2 JP S6218956B2 JP 495679 A JP495679 A JP 495679A JP 495679 A JP495679 A JP 495679A JP S6218956 B2 JPS6218956 B2 JP S6218956B2
Authority
JP
Japan
Prior art keywords
memory
pattern
label
area
register
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.)
Expired
Application number
JP495679A
Other languages
Japanese (ja)
Other versions
JPS5597669A (en
Inventor
Hiroyuki Kami
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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP495679A priority Critical patent/JPS5597669A/en
Publication of JPS5597669A publication Critical patent/JPS5597669A/en
Publication of JPS6218956B2 publication Critical patent/JPS6218956B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Description

【発明の詳細な説明】 本発明はパターン認識の前処理装置に関し、く
わしくは細線化パターンに残らないようなパター
ンの微小部分を抽出する装置にかかわる。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a preprocessing device for pattern recognition, and more particularly to a device for extracting minute portions of a pattern that will not remain in a thinned pattern.

2値パターンを細線化パターンに交換し細線化
パターンをもとに特徴点(たとえば端点、分岐
点、交差点、屈折点)や特徴値(たとえばストロ
ークの方向、曲りの程度、分岐点附近のへこみの
程度)を抽出し、辞書として記憶している特徴点
数や特徴量と比較してパターンを認識する方法が
ある。
The binary pattern is replaced with a thinning pattern, and based on the thinning pattern, feature points (for example, end points, branch points, intersections, bending points) and feature values (for example, stroke direction, degree of bending, dents near branch points) are calculated. There is a method of recognizing patterns by extracting the number of feature points and feature amounts stored in a dictionary.

ところが第1図aに示すようなパターンを細線
化処理すると、第1図bのようになり、細線化パ
ターンとしては何も残らない要素が生じる。従つ
て細線化パターンから得られる情報と認識用辞書
とを比較して判定しパターン名を与えた後で、与
えたパターン名が登録された細線化処理で要素が
消えたのか区別のつかないパターン名と一致する
か調べ、一致していたら再度認識用辞書を引いて
元の2値パターンにおいて消える要素が存在する
かチエツクする必要があり、制御がやつかいで、
認識時間がかかるという欠点がある。
However, when the pattern shown in FIG. 1a is subjected to line thinning processing, it becomes as shown in FIG. 1b, and some elements are generated in which nothing remains as a thinned pattern. Therefore, after comparing the information obtained from the thinning pattern with the recognition dictionary and giving a pattern name, it is difficult to distinguish whether the element disappeared during the thinning process for which the given pattern name was registered. It is necessary to check whether it matches the name, and if it does, refer to the recognition dictionary again and check whether there is an element that disappears in the original binary pattern, which makes the control difficult.
The disadvantage is that recognition takes time.

本発明は細線化パターンには残らない2値のオ
リジナルパターンの微小部分を抽出し、微小部分
の代表点を、細線化パターンを記憶しているスケ
ルトンパターンメモリに書き込むことにより、点
のようなパターンが細線化されると何も残らない
という細線化処理の欠点を補い、細線化パターン
を使つての認識を容易にすることを目的とする。
The present invention extracts minute portions of the binary original pattern that do not remain in the thinning pattern, and writes the representative points of the minute portions into a skeleton pattern memory that stores the thinning pattern, thereby creating a dot-like pattern. The purpose of this invention is to compensate for the drawback of thinning processing that nothing remains after thinning, and to facilitate recognition using a thinning pattern.

本発明によれば、2値パターンの各要素の面積
計測手段と、各要素の代表点記憶手段と、前記2
値パターンの各要素存在領域に対応するスケルト
ンパターンメモリの領域内に細線化パターンが含
まれるか検出する手段と、細線化パターンを含ま
ない要素で面積が一定値以上の要素を微小部分と
し、要素の代表点をスケルトンパターンメモリに
書き込む手段とで構成されるパターンの微小部分
抽出装置が得られる。
According to the present invention, the area measuring means for each element of the binary pattern, the representative point storing means for each element, and the two
A means for detecting whether a thinning pattern is included in an area of a skeleton pattern memory corresponding to each element existing area of a value pattern; A device for extracting minute portions of a pattern is obtained, which includes means for writing the representative points of the pattern into a skeleton pattern memory.

以下本発明について実施例を示す図面参照して
説明する。
The present invention will be described below with reference to drawings showing embodiments.

第2図は、本発明のパターンの微小部分抽出装
置の一実施例のブロツク図で、オリジナルパター
ンメモリ1、細線化処理部2、スケルトンパター
ンメモリ3、面積計測部4、要素代表点記憶部
5、スケルトンパターン確認部6、微小部分検出
部7とで構成される。
FIG. 2 is a block diagram of an embodiment of the pattern minute part extraction device of the present invention, which includes an original pattern memory 1, a thinning processing section 2, a skeleton pattern memory 3, an area measurement section 4, and an element representative point storage section 5. , a skeleton pattern confirmation section 6, and a minute portion detection section 7.

認識対象のパターンは光学的に走査され、パタ
ーン部を“1”、パターン部以外を“0”という
ように2値パターンに量子化され、2値パターン
情報(以下オリジナルパターンと称す)を貯える
オリジナルパターンメモリ1に記憶される。オリ
ジナルパターンメモリ1のオリジナルパターンは
細め処理用マスクを用い、パターンの輪郭線の両
側から削られ、中心線のみを残す細線化処理部2
で線幅が1ビツトの細線化パターン(以下スケル
トンパターンと称す)に変換され、スケルトンパ
ターンメモリ3に記憶される。
The pattern to be recognized is optically scanned and quantized into a binary pattern such that the pattern part is ``1'' and the other part is ``0'', and the original pattern stores the binary pattern information (hereinafter referred to as the original pattern). It is stored in pattern memory 1. The original pattern in the original pattern memory 1 is thinned using a thinning mask from both sides of the pattern outline, leaving only the center line in the thinning processing section 2.
The pattern is converted into a thinning pattern (hereinafter referred to as a skeleton pattern) having a line width of 1 bit and stored in the skeleton pattern memory 3.

面積計測部4はオリジナルパターンメモリ1の
内容を順番にアクセスして、連結している一塊り
のオリジナルパターンを要素とし、各要素ごとの
面積を求める。
The area measurement unit 4 sequentially accesses the contents of the original pattern memory 1, uses a group of connected original patterns as elements, and calculates the area of each element.

要素代表点記憶部5は、面積計測部4で要素を
抽出するとき各要素の代表点となる点の座標を1
点づつ記憶する。
The element representative point storage unit 5 stores the coordinates of the point that becomes the representative point of each element when the area measurement unit 4 extracts the elements.
Memorize point by point.

スケルトンパターン確認部6は、スケルトンパ
ターンメモリ3の内容をアクセスしてオリジナル
パターンの各要素存在領域に対応する領域にスケ
ルトンパターンがあるか調べる。
The skeleton pattern confirmation unit 6 accesses the contents of the skeleton pattern memory 3 and checks whether a skeleton pattern exists in the area corresponding to each element existing area of the original pattern.

微小部分検出部7は面積計測部4とスケルトン
パターン確認部6の出力をもとに、オリジナルパ
ターンの要素存在領域に対応するスケルトンパタ
ーンメモリ3の領域にスケルトンパターンがな
く、面積が一定値以上の要素を微小部分とし、ス
ケルトンパターンメモリ3の要素代表点位置に量
子化信号“1”を書き込な。
Based on the outputs of the area measurement unit 4 and the skeleton pattern confirmation unit 6, the minute portion detection unit 7 determines whether there is no skeleton pattern in the area of the skeleton pattern memory 3 corresponding to the element existing area of the original pattern and whose area is larger than a certain value. Make the element a minute part and write the quantization signal "1" at the element representative point position of the skeleton pattern memory 3.

第3図は本発明に用いられる面積計測手段の一
例としてランレングスデータをもとに面積を求め
るブロツク図である。
FIG. 3 is a block diagram for calculating area based on run length data as an example of area measuring means used in the present invention.

第3図において8は2値パターン、9はランレ
ングスメモリ、10は部分面積メモリ、11はレ
ーベルカウンタ、12は結合関係メモリ、13は
レーベルメモリである。
In FIG. 3, 8 is a binary pattern, 9 is a run length memory, 10 is a partial area memory, 11 is a label counter, 12 is a connection relation memory, and 13 is a label memory.

第5図aは第3図8の2値パターンの一例を表
わし、第5図b〜d、第6図a,bは第3図のメ
モリとカウンタの走査列ごとの内容の変化を示
し、左側に付けた各数字はアドレスを表わす。
FIG. 5a shows an example of the binary pattern of FIG. 38, and FIGS. 5b to d, and FIGS. 6a and b show changes in the contents of the memory and counter of FIG. 3 for each scanning row, Each number on the left represents an address.

第5図bは第3図9のランレングスメモリ、c
は第3図11のレーベルカウンタ、dは第3図1
3のレーベルメモリの内容の変化を示す。
5b is the run length memory of FIG. 39, c
is the label counter in Figure 3 11, d is the label counter in Figure 3 1
3 shows changes in the contents of the label memory in No. 3.

第6図aは第3図12の結合関係メモリ、bは
第3図10の部分面積メモリの内容の変化を示
し、cは第3図10の部分面積メモリの内容の最
終状態を示す。
6a shows the change in the contents of the connection relationship memory of FIG. 312, b shows the change in the contents of the partial area memory of FIG. 3, and c shows the final state of the contents of the partial area memory of FIG. 3.

第5図、第6図を参照して面積を求める方法を
簡単に説明する。
A method for determining the area will be briefly explained with reference to FIGS. 5 and 6.

2値パターンとして第5図aにパターンに属す
点を“1”、属さない点を“0”にした結果を示
す。ただし第5図aでは“0”を空白のままで示
し、矢印の方向の走査が上に付けられた番号の若
い方から番号順になされる。
As a binary pattern, FIG. 5a shows the result in which points belonging to the pattern are set to "1" and points not belonging to the pattern are set to "0". However, in FIG. 5a, "0" is shown as a blank, and scanning is performed in the direction of the arrow in the order of the numbers from the smallest number on top.

第5図aを走査して信号が“0”から“1”に
変わる図の左側に付けられた位置のアドレスA
と、A検出後“1”から“0”に変わる“0”の
図の左側に付けられた位置のアドレスBをランレ
ングスデータA,Bとして1走査列分ランレング
スメモリに発生順に記憶する。
Address A of the position added to the left side of the figure where the signal changes from "0" to "1" by scanning Figure 5 a.
Then, after A is detected, the address B at the position attached to the left side of the diagram of "0" that changes from "1" to "0" is stored as run length data A, B in the run length memory for one scanning column in the order of occurrence.

第5図bはランレングスメモリの内容の変化を
1走査列に対応させて示している。
FIG. 5b shows changes in the contents of the run-length memory corresponding to one scanning line.

1走査列の1つのランレングスデータA,B
(B>A)に対して、すでにレーベル付された1
走査列前のランレングスデータC,D(D>C)
との結合関係を調べてつながつているランレング
スデータのレーベルl1,l2,…loから求まる最小
値1=min(l1,l2,…lo)をランレングスデー
タA,Bのレーベルとする。
One run length data A, B of one scan row
1 already labeled for (B>A)
Run length data C, D before scanning row (D>C)
The minimum value 1 = min (l 1 , l 2 , ... l o ) found from the labels l 1 , l 2 , ... l o of the run-length data A and B is determined from the labels l 1 , l 2 , ... l o of the run-length data A and B. Label.

つながつているための条件は、 (1) C≦AかつA≦D (2) C≦BかつB≦D (3) A<CかつD<B (1)(2)(3)いずれかの時である。 The conditions for being connected are (1) C≦A and A≦D (2) C≦B and B≦D (3) A<C and D<B (1), (2), or (3).

つながるランレングスデータがなかつたら、そ
の時に1つづつ増加するレーベルカウンタの内容
をレーベルとして与える。
If there is no connected run length data, the contents of the label counter, which increases by one at that time, are given as the label.

第5図cはレーベルカウンタの値の変化を列に
対応して示している。
FIG. 5c shows changes in the value of the label counter corresponding to the columns.

第5図dは第5図bのランレングスデータに対
応して前記レーベルづけしたときのレーベルを記
憶するメモリの内容の変化を示す。ここでレーベ
ルカウンタは走査の開始時にクリアされ、ランレ
ングスメモリとレーベルメモリは各走査の最初で
クリアされる。
FIG. 5d shows a change in the contents of the memory storing the label when the label is attached corresponding to the run length data of FIG. 5b. Here, the label counter is cleared at the beginning of a scan, and the run length memory and label memory are cleared at the beginning of each scan.

一般にレーベル付でln=min(l1,l2,…lo
をみつけるときn≧2であつたら異なる部分領域
が合流していることを示し、n=1であつたら連
続した“1”の部分領域であることを示す。たと
えばn=2ならレーベルl1の部分領域とレーベル
12の部分領域とが結合していることになる。従つ
て“1”の部分領域間の関係は、 ln=min(l1,l2,…li,lj…lo) ln≠li,ln≠lj とするとレーベルliの“1”の部分領域は、レ
ーベルljの“1”部分領域と、レーベルlnの部
分領域を介して結合していることになる。ここで
l1,l2,…loは、つながつたレーベル値を検出順
に並べたものである。
Generally, with a label, l n = min (l 1 , l 2 ,...l o )
When finding n≧2, it indicates that different partial regions are merging, and when n=1, it indicates that the partial regions are continuous “1”. For example, if n=2, label l 1 partial area and label
This means that the subregions 1 and 2 are connected. Therefore, the relationship between the partial areas of "1" is l n = min (l 1 , l 2 , ... l i , l j ... l o ) If l n ≠ l i , l n ≠ l j , the label l i The "1" partial area of is connected to the "1" partial area of label l j via the partial area of label l n . here
l 1 , l 2 , ... lo are the connected label values arranged in the order of detection.

第6図aは“1”の部分領域の結合関係も示す
メモリの内容の変化を走査列に対応さして示して
いる。結合関係メモリは、起ると予想される
“1”の部分領域の個数以上の容量を用意してお
き、レーベルlをアドレスとして内容をアクセス
でき、走査ライン毎にその内容が更新されるもの
とする。パターンを含む領域を走査するに先立つ
て結合関係メモリをクリアし、レーベルが発生す
るとレーベルlで指定される結合関係メモリにレ
ーベルlを書き込む。たとえば第5図aの第6列
目の走査で得られる第5図bのアドレス1のラン
レングスメモリのランレングスデータ3,6は、
1走査列前すなわち第5列目の走査で得られるラ
ンレングスデータとつながりの関係にないため、
レーベルカウンタの値が1増加して2となり、ラ
ンレングスメモリのアドレス1と同じアドレスの
第5図dのレーベルメモリ位置にレーベル2が書
き込まれ、第6図aの第6列に示されるように、
レーベル値2をアドレスとして結合関係メモリに
レーベル2が書き込まれる。
FIG. 6a shows changes in the contents of the memory, which also shows the connection relationship of partial areas of "1", in correspondence with the scanning rows. The connection relation memory should have a capacity greater than the number of partial areas of "1" that are expected to occur, the contents can be accessed using label l as an address, and the contents are updated every scanning line. do. Before scanning an area including a pattern, the connection relationship memory is cleared, and when a label is generated, the label l is written in the connection relationship memory specified by label l. For example, the run length data 3 and 6 of the run length memory at address 1 in FIG. 5 b obtained by scanning the 6th column in FIG. 5 a are as follows:
Because there is no connection with the run length data obtained in the scan one scan row earlier, that is, the fifth row,
The value of the label counter increases by 1 to 2, and label 2 is written to the label memory location in Figure 5d at the same address as address 1 in the run-length memory, as shown in the 6th column of Figure 6a. ,
Label 2 is written to the connection relationship memory using label value 2 as an address.

部分領域の結合が検出されたときはレーベルl
iで指定される結合関係メモリにレーベルloを書
き込み、これによりレーベルliの“1”の部分
領域にレーベルlnの“1”の部分領域が結合し
たとみなす。たとえば第5図aの第10列目の走査
で得られる第5図bの第10列目のアドレス1のラ
ンレングスデータ7,12は、第9列目のランレ
ングスデータ7,8と10,13の両方と結合関
係にありランレングスデータに対応してつけられ
たレーベルすなわち第5図dの第9列目における
レーベルメモリの値4と3をもとにレーベル値3
=min(4,3)が付けられ、第5図dの第10列
目に示されるランレングスメモリのアドレス1と
同じレーベルメモリの位置にレーベル値3が書き
込まれ、第6図aの第10列目に示されるように、
レーベル4をアドレスとした結合関係メモリ位置
にレーベル値3が書き込まれ、これによりレーベ
ル4の部分領域にレーベル3の部分領域が結合し
たことになる。
Label l when a combination of partial regions is detected.
The label l o is written in the connection relationship memory specified by i , and it is assumed that the partial area of label l n that is “1” has been combined with the partial area of label l i that is “1”. For example, the run length data 7, 12 at address 1 in the 10th column in FIG. 5b obtained by scanning the 10th column in FIG. The label value 3 is based on the label memory values 4 and 3 in the 9th column of Figure 5 d, which is a label that is connected to both of 13 and is attached corresponding to the run length data.
= min (4, 3), and the label value 3 is written to the same label memory location as address 1 of the run-length memory shown in the 10th column of FIG. As shown in column
Label value 3 is written to the connection relationship memory location with label 4 as the address, and as a result, the partial area of label 3 is combined with the partial area of label 4.

各部分領域の面積を記憶する部分領域の面積メ
モリは結合関係メモリの容量と同じ容量のメモリ
からなり、レーベルlにより部分面積メモリがア
クセスできる。
The area memory of the partial area that stores the area of each partial area consists of a memory having the same capacity as the connection relationship memory, and the partial area memory can be accessed by label l.

レーベルlが決定されると、lで指定される部
分面積メモリ位置の内容にランレングスデータ
A,B(B>A)から求まる差が加算される。第
6図bは、部分面積メモリの内容の変化を各列に
対応して示している。たとえば第5図aの第8列
目の走査で得られる第5図b第8列目のランレン
グスデータ3,6は、第5図dの第8列目のアド
レス1に示されるレーベル2がつけられ、第6図
bの第7列目、アドレス2の部分面積メモリの値
6にランレングスデータの値の差3=6−3が加
算され、加算値9が第6図bの第8列目に示され
るように書き込まれる。
When the label l is determined, the difference found from the run length data A and B (B>A) is added to the content of the partial area memory location designated by l. FIG. 6b shows the changes in the contents of the partial area memory corresponding to each column. For example, the run length data 3 and 6 in the 8th column of FIG. 5B obtained by scanning the 8th column in FIG. The run length data value difference 3=6-3 is added to the value 6 in the partial area memory at address 2 in the 7th column of FIG. Written as shown in column.

部分領域の面積と部分領域の結合関係の処理
は、全面走査終了まで遂行される。第5図aのパ
ターンの走査が終了した時点では結合関係メモリ
はアドレス順に1,2,3,3となつている。こ
れから部分領域1,2,3は各々部分領域1,
2,3に、部分領域4は部分領域1に結合してい
ることがわかる。各々の面積は各部分面積メモリ
の最終値であり、アドレス順に4,9,26,1
となつている。結合関係をもとにレーベル1の領
域の面積値がアドレス1に、レーベル2の領域の
面積値がアドレス2に、レーベル3の領域の面積
値がアドレス3にセツトされ、レーベル4はレー
ベル1と結合しているのでレーベル1の面積とし
て加算され、レーベル4の領域の面積値がゼロに
リセツトされた状態を第6図cに示す。
The processing of the area of the partial region and the connection relationship between the partial regions is performed until the entire scanning is completed. At the time when the scanning of the pattern shown in FIG. 5a is completed, the connection relation memories have addresses 1, 2, 3, 3 in the order of addresses. From now on, partial areas 1, 2, and 3 are partial areas 1, 2, and 3, respectively.
2 and 3, it can be seen that partial area 4 is connected to partial area 1. Each area is the final value of each partial area memory, 4, 9, 26, 1 in address order.
It is becoming. Based on the connection relationship, the area value of the label 1 area is set to address 1, the area value of the label 2 area is set to address 2, the area value of the label 3 area is set to address 3, and label 4 is set to label 1. Since they are combined, they are added to the area of label 1, and the area value of label 4 is reset to zero as shown in FIG. 6c.

要素の代表点としては、要素として最初に検出
される点、要素として最後に検出される点、要素
の重心点などがある。
Representative points of an element include the first point detected as an element, the last point detected as an element, and the center of gravity of the element.

要素の重心を求めるには要素を構成する各点の
位置を加算し、加算値を点数で割る必要があり、
一方要素として最初に検出される点を求めるには
各要素を検出したときの最初にみつかる点を一点
だけ記憶するだけでよく、また要素の最後に検出
される点を求めるには、要素として最初に検出さ
れる点を求める方法で要素をみつける方向を逆に
すると得られる。
To find the center of gravity of an element, it is necessary to add the positions of each point that makes up the element and divide the added value by the number of points.
On the other hand, to find the first point detected as an element, you only need to memorize the first point found when each element is detected, and to find the last point detected as an element, It can be obtained by reversing the direction of finding elements using the method of finding points detected in .

従つて要素の代表点としては、要素として最初
に検出される点とすると回路が簡単になる。
Therefore, if the representative point of an element is the point that is first detected as an element, the circuit becomes simpler.

第4図は、要素代表点を要素として最初に検出
された点とする一実施例を示す図であり、第2図
の細線化処理部2を除き、面積計測部4はランレ
ングス検出回路20と部分要素結合関係処理回路
30と結合関係記憶回路50と要素面積処理回路
60と部分面積処理回路70とで構成される。な
お、制御部は図示していない。
FIG. 4 is a diagram showing an embodiment in which the element representative point is the first point detected as an element. , a partial element connection relationship processing circuit 30 , a connection relationship storage circuit 50 , an element area processing circuit 60 , and a partial area processing circuit 70 . Note that the control section is not shown.

80はメモリをアクセスするアドレスを発生す
るアドレス発生回路で、カウンタ810と820
からなり、最初は両方ともクリアされており、カ
ウンタ820の出力821と822は行に対応す
るアドレスを、カウンタ810の出力811と8
12は列に対応するアドレスを発生する。カウン
タ820はカウンタ810が+1されるごとに制
御部からのライン901の信号S−901(以下
ラインLの信号は信号S−Lで表現する)により
クリアされる。
80 is an address generation circuit that generates an address for accessing the memory, and includes counters 810 and 820.
Initially, both are cleared, and the outputs 821 and 822 of the counter 820 indicate the address corresponding to the row, and the outputs 811 and 8 of the counter 810 indicate the address corresponding to the row.
12 generates an address corresponding to the column. The counter 820 is cleared by a signal S-901 on a line 901 (hereinafter the signal on line L will be expressed as a signal S-L) from the control section every time the counter 810 is incremented by one.

ランレングス検出回路20は、フリツプフロツ
プ200とカウンタ210とレジスタ220,2
30,240とANDゲート250,260とイ
ンバータ270とORゲート280からなる。制
御部からの信号S−901はカウンタ210をク
リアすると同時にORゲート280に入力され出
力信号S−281を“1”とし、信号S−281
はフリツプフロツプ200に入力され出力信号S
−201を“1”、S−202を“0”にする。
アドレス発生回路20でアドレスが発生されると
オリジナルパターンメモリ1がアクセスされ、指
定アドレスのメモリ値がレジスタ220にセツト
される。信号S−201が“1”のもとで、メモ
リ1の内容がセツトされるレジスタ220の出力
信号S−221が“1”になるとANDゲート2
50の出力信号S−251は“1”となり、信号
S−251をセツト信号するレジス230に、ア
ドレスの行位置を示すカウンタ820の出力信号
S−822がセツトされる。また信号S−251
の“1”はフリツプフロツプ200に入力され、
出力信号S−202を“1”、S−201を
“0”にする。カウンタ820が増加し、レジス
タ220の出力信号S−221が、“0”となる
と、インバータ270の出力信号S−271は
“1”となり、ANDゲート260の出力信号S−
261は“1”となり、カウンタ210は+1さ
れ、信号S−261をセツト信号とするレジスタ
240に、メモリ1が“0”となる位置すなわち
カウンタ820の出力信号S−822がセツトさ
れる。また出力信号S−261の“1”はORゲ
ート280に入力され、フリツプフロツプ200
の出力信号S−201を“1”、S−202を
“0”に変え元に戻す。カウンタ820が増加し
前記の過程がくり返され、最後の行位置に相当す
る値をカウンタ820の値がこすと、カウンタ8
10が+1され、制御信号がS−901によりカ
ウンタ820はクリアされる。
The run length detection circuit 20 includes a flip-flop 200, a counter 210, and registers 220, 2.
30, 240, AND gates 250, 260, an inverter 270, and an OR gate 280. The signal S-901 from the control section is input to the OR gate 280 at the same time as clearing the counter 210, setting the output signal S-281 to "1", and the signal S-281
is input to the flip-flop 200 and the output signal S
-201 is set to "1" and S-202 is set to "0".
When an address is generated by the address generation circuit 20, the original pattern memory 1 is accessed, and the memory value of the specified address is set in the register 220. When the output signal S-221 of the register 220, in which the contents of the memory 1 are set, becomes "1" when the signal S-201 is "1", the AND gate 2
The output signal S-251 of the counter 820 becomes "1", and the output signal S-822 of the counter 820 indicating the row position of the address is set in the register 230 which sets the signal S-251. Also signal S-251
“1” is input to the flip-flop 200,
The output signal S-202 is set to "1" and the output signal S-201 is set to "0". When the counter 820 increases and the output signal S-221 of the register 220 becomes "0", the output signal S-271 of the inverter 270 becomes "1", and the output signal S-221 of the AND gate 260 becomes "0".
261 becomes "1", the counter 210 is incremented by 1, and the position where the memory 1 becomes "0", that is, the output signal S-822 of the counter 820, is set in the register 240 which uses the signal S-261 as a set signal. In addition, "1" of the output signal S-261 is input to the OR gate 280, and the flip-flop 200
The output signal S-201 is changed to "1" and the output signal S-202 is changed to "0" to return to the original state. The counter 820 is incremented and the above process is repeated until the value of the counter 820 crosses the value corresponding to the last row position.
10 is incremented by 1, and the counter 820 is cleared by the control signal S-901.

従つてカウンタ210の値は一走査列のうちで
何番目のランレングスデータかを、レジスタ23
0の値は一走査列で“0”から“1”に変る
“1”の位置Pを、レジスタ240の値は1走査
列でP検出後“0”に変る“0”の位置Qを表わ
している。
Therefore, the value of the counter 210 indicates the number of run length data in one scanning line.
The value 0 represents the position P of "1" that changes from "0" to "1" in one scanning line, and the value of the register 240 represents the position Q of "0" that changes to "0" after detecting P in one scanning line. ing.

部分要素結合関係処理回路30は、レーベルカ
ウンタ300と、結合関係検出回路310と、レ
ジスタ320,360,370,390,42
0,440,460と、1列前のランレングスデ
ータを記憶するランレングスデータメモリ330
と、アクセスしている列のランレングスデータを
記憶するランレングスデータメモリ340と、ア
クセスしている列のランレングスデータに対応す
るレーベルを記憶するメモリ410と、1列前の
ランレングスデータに対応するレーベルを記憶す
るメモリ430と、選択回路350,380と、
比較回路400と、メモリアドレスを発生するカ
ウンタ450からなる。
The partial element connection relationship processing circuit 30 includes a label counter 300, a connection relationship detection circuit 310, and registers 320, 360, 370, 390, and 42.
0,440,460, and a run length data memory 330 that stores the run length data of the previous column.
, a run-length data memory 340 that stores the run-length data of the column being accessed, a memory 410 that stores the label corresponding to the run-length data of the column being accessed, and a memory 410 that stores the run-length data of the previous column. a memory 430 for storing labels to be selected, selection circuits 350, 380,
It consists of a comparison circuit 400 and a counter 450 that generates a memory address.

ランレングス検出回路20で1組のランレング
スデータが検出されると、信号S−261により
カウンタ450が始動し、ランレングスデータメ
モリ340には信号S−211をアドレスとして
レジスタ230と240との出力信号S−231
とS−241を記憶する。レーベルメモリ410
は信号S−211をアドレスとしてランレングス
データに付けるレーベルが出力されている信号S
−351を記憶する。ランレングスデータメモリ
330とレーベルメモリ430には1列前のデー
タが記憶されていて、ランレングスデータメモリ
330はカウンタ450の出力信号をアドレスと
して読み出され、レジスタ320にセツトされ
る。結合関係検出回路310では得られたランレ
ングスデータ信号S−231,S−241と、1
列前のランレングスデータ信号S−321,S−
322とが前記の結合条件(1),(2)又は(3)を満足す
るか検出し、満足したライン311に“1”を出
力し制御部へ送られる。ライン312にはランレ
ングスデータメモリ330のデータのどれとも結
合していないとき“1”が出力され、レーベルカ
ウンタ300が+1される。ここでレーベルカウ
ンタ300は、面積を求める前にクリアされてい
る。カウンタ450は信号S−261により始動
し、制御信号452が送られる毎に1ずつ増加す
る。レーベルメモリ430はカウンタ450の出
力信号S−451をアドレスとしたレーベル値す
なわち1ライン前の結合したラインにつけられて
いるレーベル値を出力する。出力されたレーベル
値は結合関係があつたときに出力される前記信号
S−311によりレジスタ440にセツトされ
る。レジスタ460にはつながつているランレン
グスデータに付られたレーベルがすべて記憶され
る。(例えばレジスタ440に2がセツトされ、
その後に4がセツトされたらレジスタ460には
2と4が記憶される。ここでレジスタ460はレ
ーベルを求める前にクリアしておく。) 一方レジスタ370には最大のレーベル値(例
えば6ビツトのレジスタとすると10進数の64)が
セツトされており、選択回路380はライン38
2の制御信号S−382−1でライン381に信
号S−371を出力し、ライン382の制御信号
S−382−2でライン381に信号S−401
を出力する。以下ラインL上のN番目の制御信号
をS−L−Nで示す。レーベル付けをするとき、
まず信号S−382−1を発生し、レジスタ39
0に最大のレーベル値をセツトする。次にレジス
タ440にレーベルメモリ410が読み出され、
結合しているランレングスデータに付られたレー
ベル値がセツトされると、比較回路400は信号
S−391と信号S−441とを比較して値の小
さい方の信号をライン401に出力する。その後
で制御信号S−382−2を発生するとレジスタ
390には信号S−401が入るので、レジスタ
390には結合したランレングスデータに付られ
たレーベル値の最小の値がセツトされる。従つて
レジスタ390の値が最大値であつたらカウンタ
300の内容が、最大値でなかつたらレジスタ3
90の内容がランレングスデータに付けるレーベ
ルとなる。選択回路350はレジスタ390の値
が最大値のときには制御部から出力される制御信
号S−352−1によりカウンタ300からの信
号S−301を、最大値でないときには制御部か
ら出力される制御信号S−352−2によりレジ
スタ390からの信号S−401を選択し、ラン
レングスデータに付けるレーベル値としての信号
S−351を出力する。レジスタ360,420
はランレングスメモリ330とレーベルメモリ4
30に値を書き込むためのバツフアレジスタで、
1列のランレングスデータにレーベ付けが終つた
らメモリ340,410の内容がレジスタ36
0,420を介して転送される。
When a set of run length data is detected by the run length detection circuit 20, the counter 450 is started by the signal S-261, and the run length data memory 340 receives the output from the registers 230 and 240 using the signal S-211 as an address. Signal S-231
and S-241. label memory 410
is the signal S where the label attached to the run length data is output using the signal S-211 as the address.
-351 is stored. The run-length data memory 330 and the label memory 430 store data from the previous column, and the run-length data memory 330 is read out using the output signal of the counter 450 as an address and set in the register 320. The coupling relationship detection circuit 310 uses the obtained run length data signals S-231, S-241 and 1
Run length data signal in front of column S-321, S-
322 satisfies the above-mentioned coupling conditions (1), (2), or (3), and outputs "1" to the line 311 that is satisfied, which is then sent to the control section. When the line 312 is not connected to any data in the run-length data memory 330, "1" is output, and the label counter 300 is incremented by 1. Here, the label counter 300 is cleared before calculating the area. Counter 450 is started by signal S-261 and increments by one each time control signal 452 is sent. The label memory 430 outputs a label value using the output signal S-451 of the counter 450 as an address, that is, a label value attached to the combined line one line before. The output label value is set in the register 440 by the signal S-311 that is output when a connection is established. The register 460 stores all labels attached to connected run length data. (For example, 2 is set in register 440,
If 4 is set thereafter, 2 and 4 are stored in register 460. Here, the register 460 is cleared before obtaining the label. ) On the other hand, the maximum label value (for example, 64 in decimal notation for a 6-bit register) is set in the register 370, and the selection circuit 380 is set to the line 38.
The signal S-371 is output to the line 381 with the control signal S-382-1 of 2, and the signal S-401 is output to the line 381 with the control signal S-382-2 of the line 382.
Output. Hereinafter, the Nth control signal on line L will be denoted by S-L-N. When labeling,
First, the signal S-382-1 is generated, and the register 39
Set the maximum label value to 0. Next, the label memory 410 is read into the register 440,
When the label value attached to the combined run length data is set, the comparison circuit 400 compares the signal S-391 and the signal S-441 and outputs the signal with the smaller value to the line 401. After that, when the control signal S-382-2 is generated, the signal S-401 is input to the register 390, so that the minimum value of the label values attached to the combined run-length data is set in the register 390. Therefore, if the value of register 390 is the maximum value, the contents of counter 300 are not the maximum value, register 3 is
The content of 90 becomes the label attached to the run length data. The selection circuit 350 receives the signal S-301 from the counter 300 using the control signal S-352-1 output from the control unit when the value of the register 390 is the maximum value, and uses the control signal S-301 output from the control unit when the value is not the maximum value. -352-2 selects the signal S-401 from the register 390 and outputs the signal S-351 as a label value attached to the run-length data. registers 360, 420
is run length memory 330 and label memory 4
A buffer register for writing a value to 30.
After labeling one column of run length data, the contents of memories 340 and 410 are transferred to register 36.
Transferred via 0.420.

結合関係記憶回路50は、選択回路500と、
部分要素の結合関係を示すメモリ510と、メモ
リ書き込み用レジスタ530と、読み出し用レジ
スタ520からなる。
The connection relationship storage circuit 50 includes a selection circuit 500,
It consists of a memory 510 that indicates the connection relationship between partial elements, a memory write register 530, and a read register 520.

選択回路500は制御信号S−502−1で信
号S−301を、制御信号S−502−2で信号
S−461を、制御信号S−502−3で信号S
−601を、制御信号S−502−4で信号S−
641をライン501に出力する。メモリ510
は信号S−501をアドレスとして制御信号S−
511−1のもとでレジスタ530の出力を書き
込み、制御信号S−511−2のもとでレジスタ
520に読み出される。従つて結合関係にあるレ
ーベルはカウンタ300とレジスタ530とに、
又はレジスタ460とレジスタ530とにセツト
されているので、制御信号S−502−1と制御
信号S−511−1とで、又は制御信号S−50
2−2と制御信号S−511−1とでメモリ51
0に書き込まれる。ここでメモリ510は面積を
求める前にクリアされている。
The selection circuit 500 selects the signal S-301 using the control signal S-502-1, the signal S-461 using the control signal S-502-2, and the signal S using the control signal S-502-3.
-601 with control signal S-502-4 and signal S-
641 on line 501. memory 510
is the control signal S- with signal S-501 as the address.
The output of register 530 is written under control signal S-511-1 and read to register 520 under control signal S-511-2. Therefore, the labels that are connected are connected to the counter 300 and the register 530.
Or, since it is set in register 460 and register 530, control signal S-502-1 and control signal S-511-1, or control signal S-50
2-2 and the control signal S-511-1 to the memory 51.
Written to 0. Here, the memory 510 is cleared before calculating the area.

部分要素面積処理回路70は、部分要素面積メ
モリ740と、加算回路700と、減算回路78
0と、選択回路710,750,760と、値
“0”の入つているレジスタ770と、レジスタ
720,730からなる。
The partial element area processing circuit 70 includes a partial element area memory 740, an addition circuit 700, and a subtraction circuit 78.
0, selection circuits 710, 750, 760, a register 770 containing the value "0", and registers 720, 730.

選択回路750は、制御信号S−752−1で
信号S−521を、制御信号S−752−2で信
号S−351を、制御信号S−752−3で信号
S−601を、ライン751に出力する。減算回
路780はランレングスデータの信号S−241
と信号S−231との減算を行い、結果をライン
781に出力する。ここで減算は位置の差を表わ
すので、結果は部分要素の面積値となる。制御信
号S−752−2で選ばれた信号S−351(ラ
ンレングスデータに付けられるレーベル値に対応
する)をアドレスとして制御信号S−742−1
のもとで部分要素面積メモリ740に入つている
今までの面積値がレジスタ720にセツトされ、
選択回路710の制御信号S−713−1で信号
S−713と信号S−781が選ばれ、加算回路
700に入力され、加算された結果がライン70
1に出力され、制御信号S−762−1のもとで
選択回路760を通つてレジスタ730にセツト
される。新しい面積はレジスタ730にセツトさ
れているので、制御信号S−752−2で選ばれ
た信号S−351をアドレスとして制御信号S−
742−2のもとで、レジスタ730の値がメモ
リ740に書き込まれる。ここでメモリ740は
面積を求める前にクリアされている。
The selection circuit 750 sends the signal S-521 to the line 751 with the control signal S-752-1, the signal S-351 with the control signal S-752-2, and the signal S-601 with the control signal S-752-3. Output. The subtraction circuit 780 receives the run length data signal S-241.
and signal S-231 and outputs the result on line 781. Since subtraction here represents a difference in position, the result is the area value of the subelement. The control signal S-742-1 uses the signal S-351 (corresponding to the label value attached to the run-length data) selected by the control signal S-752-2 as an address.
The area value stored in the partial element area memory 740 up to now is set in the register 720 under
The signal S-713 and the signal S-781 are selected by the control signal S-713-1 of the selection circuit 710 and input to the adder circuit 700, and the added result is sent to the line 70.
1 and is set in register 730 through selection circuit 760 under control signal S-762-1. Since the new area has been set in the register 730, the control signal S-351 selected by the control signal S-752-2 is used as the address.
Under 742-2, the value of register 730 is written to memory 740. Here, the memory 740 is cleared before calculating the area.

メモリを全面アクセスし終つた後に要素面積処
理回路60が始動する。要素面積処理回路60
は、カウンタ600(クリアされている)と、比
較回路620,630と、選択回路610とレジ
スタ640からなる。
After the entire memory has been accessed, the element area processing circuit 60 is started. Element area processing circuit 60
consists of a counter 600 (cleared), comparison circuits 620 and 630, a selection circuit 610, and a register 640.

カウンタ600は制御部からのカウンタ制御信
号S−602が送られる毎に+1され、カウンタ
600の出力信号S−601は選択回路610の
制御信号S−612−1によつてレジスタ640
にセツトされる。
The counter 600 is incremented by 1 every time the counter control signal S-602 is sent from the control section, and the output signal S-601 of the counter 600 is sent to the register 640 by the control signal S-612-1 of the selection circuit 610.
is set to

レジスタ640の出力信号S−641は制御信
号S−502−4により選択回路500で、ライ
ン501に出力され、メモリ510のアドレスと
なる。制御信号S−511−1のもとでメモリ5
10が読み出され、レジスタ520にセツトさ
れ、レジスタ520の内容がアドレスとして用い
たレジスタ640の内容と等しいか否かを比較回
路630で検出し、結果がライン631を通して
制御部へ送られ後述の動作をする。レジスタ52
0と640の値が等しくないときはレジスタ52
0の内容が制御信号S−612−2により選択回
路610でライン611に出力され、レジスタ6
40にセツトされる。
The output signal S-641 of the register 640 is output to the line 501 by the selection circuit 500 in accordance with the control signal S-502-4, and becomes the address of the memory 510. Memory 5 under control signal S-511-1
10 is read out and set in the register 520, the comparator circuit 630 detects whether the contents of the register 520 are equal to the contents of the register 640 used as the address, and the result is sent to the control section through the line 631 and is explained later. take action. register 52
If the values of 0 and 640 are not equal, register 52
The content of 0 is output to line 611 by selection circuit 610 by control signal S-612-2, and register 6
Set to 40.

このような操作をレジスタ520の内容が直前
にセツトされたレジスタ640の内容と等しくな
るまでくり返すと、カウンタ600の内容のレー
ベルとレジスタ640の内容のレーベルが結合さ
れていることになる。
When such operations are repeated until the contents of register 520 become equal to the contents of register 640 set immediately before, the label of the contents of counter 600 and the label of register 640 are combined.

カウンタ600の内容がレジスタ640の内容
と比較回路620で比較され、結果はライン62
1を通して制御部へ送られる。このようにして得
られた結果、すなわちレジスタ520と640の
内容が等しくレジスタ640とカウンタ600の
内容が異るとき、制御信号S−752−3のもと
で選択回路750はライン600の信号S−60
1をライン751に出力し、続いて制御信号S−
752−1のもとで、ライン521の信号をライ
ン751に出力する。選択回路710には部分要
素の面積が入るレジスタ720の出力が選ばれる
ように制御信号S−713−2が送られる。ライ
ン601が選択回路750で選ばれたとき、カウ
ンタ600の内容Kで指定される部分要素メモリ
740の内容がレジスタ730にセツトされ、
“0”がセツトされているレジスタ770の内容
が制御信号S−762−2により選択回路760
を介してレジスタ730にセツトされる。つづい
てライン521に選ばれたとき、レジスタレジス
タ520の内容Hで指定されたメモリ740の内
容がレジスタ720にセツトされ、制御信号S−
713−2によりレジスタ720の出力とKのア
ドレスで指定される内容の入つているレジスタ7
30の出力とが選択回路710で選択され、加算
回路700に入力され、加算された結果はレジス
タ730にセツトされ、Hのアドレス位置に書き
込まれる。この処理によりレーベルKの部分要素
の面積がレーベルHの部分要素の面積に統合され
る。カウンタ600の内容とレジスタ520の内
容とが等しい時は何もせずカウンタ600の内容
を+1して次のレーベルの部分要素面積の処理に
移る。以上の処理により各レーベル要素面積がメ
モリ740にセツトされる。
The contents of counter 600 are compared with the contents of register 640 in comparator circuit 620, and the result is output on line 62.
1 to the control unit. When the result obtained in this way is that the contents of registers 520 and 640 are equal and the contents of register 640 and counter 600 are different, selection circuit 750 under control signal S-752-3 selects signal S on line 600. -60
1 on line 751, followed by the control signal S-
752-1 outputs the signal on line 521 to line 751. A control signal S-713-2 is sent to the selection circuit 710 so that the output of the register 720 containing the area of the partial element is selected. When the line 601 is selected by the selection circuit 750, the contents of the partial element memory 740 specified by the contents K of the counter 600 are set in the register 730,
The contents of the register 770 set to “0” are changed to the selection circuit 760 by the control signal S-762-2.
is set in register 730 via . Subsequently, when the line 521 is selected, the contents of the memory 740 specified by the contents H of the register register 520 are set in the register 720, and the control signal S-
Register 7 containing the output of register 720 and the contents specified by the address of K by 713-2
The output of 30 is selected by the selection circuit 710 and input to the addition circuit 700, and the added result is set in the register 730 and written to the address location of H. Through this processing, the area of the partial element of label K is integrated with the area of the partial element of label H. When the contents of the counter 600 and the contents of the register 520 are equal, nothing is done, the contents of the counter 600 are incremented by 1, and processing moves on to the partial element area of the next label. Through the above processing, each label element area is set in the memory 740.

スケルトンパターン確認部6は、メモリ670
(オリジナルパターンメモリ1をアクセスする以
前にクリアされている)と、レジスタ650,6
60,680と、ANDゲート690と、ORゲー
ト695からなる。
The skeleton pattern confirmation section 6 has a memory 670.
(cleared before accessing original pattern memory 1) and registers 650 and 6
60, 680, an AND gate 690, and an OR gate 695.

レジスタ660は信号S−201によりランレ
ングスデータを求めようとするごとにクリアされ
る。アドレス発生回路20のアドレスでアクセス
したスケルトンパターンメモリ3の内容がレジス
タ650にセツトされ、一方信号S−202はラ
ンレングスデータが検出されているアドレスの間
は“1”であるので、ランレングスデータが検出
されるアドレス間にスケルトンパターンが検出さ
れたらANDゲート690は“1”を出力しレジ
スタ660を“1”にし、ANDゲート690の
出力が“0”ならレジスタ660は前の値を保持
している。
Register 660 is cleared each time run length data is determined by signal S-201. The contents of the skeleton pattern memory 3 accessed by the address of the address generation circuit 20 are set in the register 650, and on the other hand, the signal S-202 is "1" between the addresses where run-length data is detected, so the run-length data is If a skeleton pattern is detected between the addresses where the AND gate 690 is detected, the AND gate 690 outputs "1" and sets the register 660 to "1", and if the output of the AND gate 690 is "0", the register 660 retains the previous value. ing.

まずランレングスデータに付けるレーベル値を
示す信号S−351をアドレスとし、メモリ67
0の内容はレジスタ680に出力され、次にレジ
スタ660と680の出力がORゲート695で
論理和がとられ、出力が信号S−351をアドレ
スとしてメモリ670に書き込まれる。従つて全
面の処理が終つた時点では、メモリ670の内容
はオリジナルパターンの各レーベル値の要素領域
にスケルトンパターンがあるかを、あつたら
“1”で、なかつたら“0”で表わしている。
First, the signal S-351 indicating the label value to be added to the run length data is set as an address, and the memory 67
The contents of 0 are output to register 680, then the outputs of registers 660 and 680 are logically summed by OR gate 695, and the output is written to memory 670 using signal S-351 as an address. Therefore, when the entire processing is completed, the contents of the memory 670 indicate whether there is a skeleton pattern in the element area of each label value of the original pattern by "1" if there is, and by "0" if not.

要素代表点記憶部5は要素の代表点位置すなわ
ちオリジナルパターンメモリ1にある2値パター
ンの各要素の最初に検出される点の位置アドレス
を記憶するメモリ560とメモリ出力バツフアレ
ジスタ550からなる。
The element representative point storage unit 5 includes a memory 560 for storing the representative point position of an element, that is, the position address of the first detected point of each element of the binary pattern in the original pattern memory 1, and a memory output buffer register 550.

各要素の最初のランレングスデータは1つ前の
走査列のランレングスデータとつながらないラン
レングスデータであり、各要素の最初の点の位置
は、列位置としてランレングスデータを求めてい
る走査列列番号で、行位置として各要素の最初の
ランレングスデータA1,B1のA1で表わさ
れ、各要素ごとに一点ずつ記憶する。従つて要素
代表点を記憶するメモリ560には、つながらな
いランレングスデータが検出されたとき“1”と
なる信号S−312をセツト信号とし、要素の番
号を表わすレーベル値を示す信号S−351をア
ドレスとし、列位置として走査列を表わすカウン
タ810の出力信号S−811が、行位置として
ランレングスデータのA1に対応する走査した量
子化信号の“0”から“1”に変つたときの
“1”の位置アドレスのセツトされているレジス
タ230の出力信号S−231が、記憶される。
The first run length data of each element is run length data that is not connected to the run length data of the previous scan row, and the position of the first point of each element is the row length data of the scan row for which the run length data is being obtained. The first run length data A1, B1 of each element is represented by A1 as a line position, and one point is stored for each element. Therefore, in the memory 560 that stores element representative points, a signal S-312 which becomes "1" when unconnected run length data is detected is used as a set signal, and a signal S-351 indicating a label value representing an element number is stored. When the output signal S-811 of the counter 810, which represents the scanning column as the address and the column position, changes from "0" to "1" of the scanned quantized signal corresponding to A1 of the run length data as the row position. The output signal S-231 of the register 230 having the location address set to 1'' is stored.

微小部分検出部7は、一定値の入つたレジスタ
900と、比較回路910と、インバータ930
と、ANDゲート920とからなる。
The minute portion detection unit 7 includes a register 900 containing a constant value, a comparison circuit 910, and an inverter 930.
and an AND gate 920.

各要素の面積処理後、制御信号S−742,S
−671,S−561により各レーベル順にメモ
リ740,670,560をアクセスし、比較回
路910で一定値以上の面積が検出され、インバ
ータ930の出力がスケルトンパターンが含まれ
ないかを示すので、ANDゲート920はスケル
トンパターンを含まず面積が一定値以上のとき
“1”を出力し、ANDゲート920の出力により
メモリ560の出力である要素代表点がレジスタ
550にセツトされ、レジスタ550の出力値を
アドレスとして、スケルトンパターンメモリに
“1”が書き込まれる。
After area processing of each element, control signals S-742, S
-671 and S-561 access the memories 740, 670, and 560 in order for each label, and the comparison circuit 910 detects an area larger than a certain value, and the output of the inverter 930 indicates whether a skeleton pattern is included. The gate 920 outputs "1" when the area does not include a skeleton pattern and is above a certain value, and the element representative point, which is the output of the memory 560, is set in the register 550 by the output of the AND gate 920, and the output value of the register 550 is set. "1" is written to the skeleton pattern memory as the address.

以上の処理により、スケルトンパターンの残ら
ない要素を抽出し、要素の代表点をスケルトンパ
ターンメモリに書き込むことにより、要素代表点
をスケルトンパターンの点とすることが出来る。
Through the above processing, elements that do not remain in the skeleton pattern are extracted, and the representative points of the elements are written in the skeleton pattern memory, thereby making it possible to set the element representative points as points of the skeleton pattern.

以上述べたごとく、本発明によれば点のような
パターンが細線化されると何も残らないという細
線化処理の欠点を補い、細線化パターンを使つて
の認識を容易にするパターンの微小部分抽出装置
を提供できる。
As described above, according to the present invention, the drawback of thinning processing that nothing remains when a dot-like pattern is thinned is compensated for, and minute portions of a pattern can be easily recognized using thinning patterns. We can provide extraction equipment.

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

第1図aは、2値パターンの例で、bはaを細
線化したパターンの例であり、第2図は本発明の
パターンの微小部分抽出装置の一実施例のブロツ
ク図であり、第3図は本発明に用いられる面積計
測手段の1例でランレングスデータのレベルづけ
で面積を求めるブロツク図であり、第4図は第2
図のブロツク図において面積計測部をランレング
スデータのレーベルづけで構成した詳細な図であ
る。第5図と第6図は第3図の処理を説明するた
めの図で、第5図aは2値パターンの例、第5図
bは第5図aのパターンのランレングスデータを
記憶するランレングスメモリの内容の変化を、第
5図cはレーベルカウンタの値の変化を、第5図
dは第5図bのランレングスデータに付られるレ
ーベル値を記憶するレーベルメモリの内容の変化
を、第6図aはレーベルどおしの結合関係を記憶
する結合関係メモリの内容の変化を、第6図bは
各レーベルの部分面積を記憶する部分面積メモリ
の内容の変化を第5図aの走査列に対応さして示
している。第6図cは各レーベル面積処理を終え
た後の部分面積メモリの内容を示す。 図において、1はオリジナルパターンメモリ
を、2は細線化処理部を、3はスケルパターンの
メモリを、4は面積計測部を、5は要素代表点記
憶部を、6はスケルトンパターン確認部を、7は
微小部分検出部を、8は2値パターンを、9はラ
ンレングスメモリを、10は部分面積メモリを、
11はレーベルカウンタを、12は結合関係メモ
リを、13はレーベルメモリを示す。また20は
ランレングス検出回路を、30は部分要素結合関
係処理回路を、50は結合関係記憶回路を、60
は要素面積処理回路を、70は部分要素面積処理
回路を、80はアドレス発生回路を示す。
FIG. 1a is an example of a binary pattern, b is an example of a pattern obtained by thinning a, and FIG. 2 is a block diagram of an embodiment of the pattern minute part extraction device of the present invention. Figure 3 is an example of the area measuring means used in the present invention, which is a block diagram for determining the area by leveling run length data, and Figure 4 is a block diagram of the area measuring means used in the present invention.
This is a detailed diagram in which the area measuring section in the block diagram shown in the figure is configured by labeling run length data. 5 and 6 are diagrams for explaining the process of FIG. 3, where FIG. 5 a stores an example of a binary pattern, and FIG. 5 b stores run length data of the pattern of FIG. 5 a. Figure 5c shows the changes in the contents of the run-length memory, Figure 5c shows the changes in the value of the label counter, and Figure 5d shows the changes in the contents of the label memory that stores the label value attached to the run-length data in Figure 5b. , Figure 6a shows the changes in the contents of the connection relationship memory that stores the connection relationships between labels, and Figure 6b shows the changes in the contents of the partial area memory that stores the partial area of each label. are shown in correspondence to the scan rows of . FIG. 6c shows the contents of the partial area memory after completing each label area process. In the figure, 1 is an original pattern memory, 2 is a thinning processing section, 3 is a skeleton pattern memory, 4 is an area measurement section, 5 is an element representative point storage section, 6 is a skeleton pattern confirmation section, 7 is a minute portion detection unit, 8 is a binary pattern, 9 is a run length memory, 10 is a partial area memory,
11 is a label counter, 12 is a connection relationship memory, and 13 is a label memory. Further, 20 is a run length detection circuit, 30 is a partial element connection relationship processing circuit, 50 is a connection relationship storage circuit, and 60 is a connection relationship storage circuit.
70 represents an element area processing circuit, 70 represents a partial element area processing circuit, and 80 represents an address generation circuit.

Claims (1)

【特許請求の範囲】 1 2値パターンを記憶するオリジナルパターン
メモリと、前記2値パターンを細線化パターンと
する細線化処理手段と、前記細線化パターンを記
憶するスケルトンパターンメモリと、前記2値パ
ターンの連結している一塊りを要素とし各要素の
面積を計測する手段と、前記各要素の代表点を抽
出し、代表点の位置を記憶する手段と、前記2値
パターンの各要素存在領域に対応するスケルトン
パターンメモリの領域内に細線化パターンが含ま
れるか確認する手段と、細線化パターンを含まな
い要素で面積が一定値以上の要素を微小部分と
し、要素の代表点をスケルトンパターンメモリに
書き込む手段とで構成されることを特徴とするパ
ターンの微小部分抽出装置。 2 要素の代表点を要素検出の最初に検出される
点とする特許請求の範囲第1項に記載のパターン
の微小部分抽出装置。
[Scope of Claims] 1. An original pattern memory that stores a binary pattern, a thinning processing means that converts the binary pattern into a thinning pattern, a skeleton pattern memory that stores the thinning pattern, and the binary pattern. means for measuring the area of each element using a connected block of elements; means for extracting a representative point of each element and storing the position of the representative point; A method for checking whether a thinning pattern is included in the area of the corresponding skeleton pattern memory, and defining an element that does not include a thinning pattern and having an area of a certain value or more as a minute part, and storing a representative point of the element in the skeleton pattern memory. 1. An apparatus for extracting minute portions of a pattern, comprising a writing means. 2. The pattern minute portion extraction device according to claim 1, wherein the representative point of the element is the first point detected in element detection.
JP495679A 1979-01-18 1979-01-18 Micropart extracting device for pattern Granted JPS5597669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP495679A JPS5597669A (en) 1979-01-18 1979-01-18 Micropart extracting device for pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP495679A JPS5597669A (en) 1979-01-18 1979-01-18 Micropart extracting device for pattern

Publications (2)

Publication Number Publication Date
JPS5597669A JPS5597669A (en) 1980-07-25
JPS6218956B2 true JPS6218956B2 (en) 1987-04-25

Family

ID=11598021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP495679A Granted JPS5597669A (en) 1979-01-18 1979-01-18 Micropart extracting device for pattern

Country Status (1)

Country Link
JP (1) JPS5597669A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58142468A (en) * 1982-02-17 1983-08-24 Mitsubishi Electric Corp Pattern processor

Also Published As

Publication number Publication date
JPS5597669A (en) 1980-07-25

Similar Documents

Publication Publication Date Title
US4183013A (en) System for extracting shape features from an image
JPS6051948A (en) Branch destination buffer storage device
JPS60204086A (en) Object discriminating device
EP0225735A1 (en) Apparatus and methods for analysing transitions in finite state machines
US4864527A (en) Apparatus and method for using a single carry chain for leading one detection and for &#34;sticky&#34; bit calculation
JPS6218956B2 (en)
JPH0344356B2 (en)
US5457645A (en) Pattern recognition system including a circuit for detecting maximum or minimum data elements which determines the standard pattern closest to the input pattern
US4929938A (en) Area searching system
JP2801602B2 (en) Word recognition device
US5226174A (en) Character recognition system for determining a class of similarity based on computer distance with a smallest value indicating close similarity
JPH0277891A (en) Character recognition device
JPS6313227B2 (en)
JP2748936B2 (en) Character recognition method
JPS619775A (en) Picture image processor
JPS60142734A (en) Character string comparator
JPH0776983B2 (en) IC card
RU2042189C1 (en) Device for microprogram control
JPS6211389B2 (en)
JP2519782B2 (en) Character separation method
SU1689971A1 (en) The map-making instrument of locality in front of the vehicle
JPS6057110B2 (en) Optical character recognition method and device
JP2665488B2 (en) Personal dictionary registration method
SU1015411A1 (en) Device for reducing information redundancy
JPH0321950B2 (en)