JPS6211389B2 - - Google Patents
Info
- Publication number
- JPS6211389B2 JPS6211389B2 JP54007495A JP749579A JPS6211389B2 JP S6211389 B2 JPS6211389 B2 JP S6211389B2 JP 54007495 A JP54007495 A JP 54007495A JP 749579 A JP749579 A JP 749579A JP S6211389 B2 JPS6211389 B2 JP S6211389B2
- Authority
- JP
- Japan
- Prior art keywords
- run length
- partial element
- starting point
- memory
- label
- 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
Links
- 230000015654 memory Effects 0.000 claims description 97
- 238000001514 detection method Methods 0.000 claims description 43
- 239000000284 extract Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 15
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 238000003909 pattern recognition Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 1
Landscapes
- Image Analysis (AREA)
Description
【発明の詳細な説明】
本発明はパターン認識の特徴点抽出装置に関
し、くわしくはパターンに含まれる要素の要素出
発点を検出する装置にかかわる。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a feature point extraction device for pattern recognition, and more particularly to a device for detecting element starting points of elements included in a pattern.
パターンの認識においてパターンに含まれる要
素の輪郭をトレースしてパターンの情報を得る場
合、従来次のような方法がとられている。 In pattern recognition, when tracing the contours of elements included in a pattern to obtain pattern information, the following methods have conventionally been used.
トレースの出発点はパターンを含む面を走査し
最初に検出されたパターン上の点とし、トレース
した点にはトレースずみでない点と区別するため
トレースずみの印をつけながらトレースを行いト
レース上の点がトレースの出発点に戻つたらその
出発点からのトレースは終りとする。次にパター
ンを含む面を走査しトレースずみでない点がある
か調べ、トレースずみでない点が検出されたらそ
の点を出発点として上記のトレース処理をくり返
し、トレースが終つたら再度パターンを含む面を
走査し、トレースずみでない点が検出されなくな
るまでくり返す。 The starting point for tracing is the point on the pattern that is first detected by scanning the surface containing the pattern.The traced point is traced while marking the traced point to distinguish it from the untraced point. When returns to the starting point of the trace, the tracing from that starting point ends. Next, scan the surface containing the pattern to check if there is a point that has not been traced, and if a point that has not been traced is detected, repeat the above tracing process using that point as a starting point, and once the tracing is finished, scan the surface containing the pattern again. Scan and repeat until no untraced points are detected.
この方法ではトレースの出発点が先に検出され
ていないためにトレースを行いながらトレースず
みの点にはトレースずみでない点と区別のために
パターン上に印をつける必要がある。従つてトレ
ースずみでない点がなくなるまでパターンを含む
面を走査する必要があり多くの時間がかかる。と
ころが先にトレースの出発点が検出されている
と、検出されたトレースの出発点だけからトレー
スを始めればよいので、トレースずみの印をパタ
ーンにつける必要がなく、トレースのすんでない
点を探すために走査する必要がなくなる。また、
パターンの線幅が1ビツト幅の2値パターンで特
徴抽出のためにトレースを行うとき、トレースの
出発点はマスクで抽出出来るが、ループパターン
の出発点は検出できない。 In this method, since the starting point of the trace has not been detected in advance, it is necessary to mark traced points on the pattern while tracing to distinguish them from untraced points. Therefore, it is necessary to scan the surface including the pattern until there are no untraced points, which takes a lot of time. However, if the starting point of the trace is detected first, it is only necessary to start tracing from the detected starting point of the trace, so there is no need to mark the traced point on the pattern, and there is no need to mark the traced point. There is no need to scan to Also,
When tracing a binary pattern whose line width is 1 bit for feature extraction, the starting point of the trace can be extracted using a mask, but the starting point of a loop pattern cannot be detected.
たとえば第1図の2値パターン(“0”は空白
で表わす)においてトレースの出発点となる
T1,T2は第2図に示す端点・分岐点検出マスク
で検出できるが、ループをトレースするための出
発点LP1,LP2は検出できない。なお、第2図a
〜dは端点検出用、第2図e〜pは分岐点検出用
マスクの一例で、A+B+C=1,C+D+E=
1,E+F+G=1,G+H+A=1であり、+
は論理演算のORを表わす。 For example, in the binary pattern shown in Figure 1 (“0” is represented by a blank space), it becomes the starting point of the trace.
Although T 1 and T 2 can be detected using the end point/branch point detection mask shown in FIG. 2, the starting points LP 1 and LP 2 for tracing the loop cannot be detected. In addition, Figure 2a
-d are for detecting end points, and e-p in Fig. 2 are examples of masks for detecting branch points, A+B+C=1, C+D+E=
1, E+F+G=1, G+H+A=1, +
represents the logical operation OR.
本発明の目的は、パターンを含む面を何回も表
査することなくパターンのつながりを検出しなが
ら要素ごとに1点を抽出し短時間にトレースの出
発点が検出される2値パターンの各要素の出発点
検出装置を提供する、また、さらに、パターンが
1ビツト幅の2値パターンのとき、マスクでは検
出できないループ要素の出発点検出装置を提供す
ることにある。 An object of the present invention is to detect each trace starting point for each binary pattern in a short time by extracting one point for each element while detecting the connection of patterns without scanning the surface containing the pattern many times. Another object of the present invention is to provide an apparatus for detecting the starting point of an element, and furthermore, to provide an apparatus for detecting the starting point of a loop element that cannot be detected by a mask when the pattern is a binary pattern with a width of 1 bit.
本発明によれば、“0”,“1”の2値パターン
を行列状に記憶するパターンメモリと、前記パタ
ーンメモリから遂次得られる各列にて“0”から
“1”に変わる“1”の位置アドレスAとA検出
後“1”から“0”に変わる“0”の位置アドレ
スBとを1組のランレングスデータA,Bとして
記憶するランレングス検出手段と、前記2値パタ
ーンの連結している一塊りを要素とし前記ランレ
ングス検出手段によつて得られるランレングスデ
ータを部分要素とし、部分要素を検出順に一列前
の部分要素との結合関係を調べ結合関係をもとに
レーベルを与え記憶する部分要素結合関係処理手
段と、前記ランレングス検出手段によつて得られ
たデータを受け、一列前のランレングスデータと
つながらないランレングスデータC,Dを前記部
分要素結合関係処理手段で与えたレーベルの部分
要素の最初とし、前記データの内Cを行座標、現
在の列アドレスを列座標とする部分要素の出発点
座標を記憶する部分要素の出発点座標記憶手段
と、前記部分要素結合関係と前記部分要素の出発
点位置より要素の出発点を抽出する要素出発点処
理手段とで構成されるパターンの要素出発点検出
装置が得られる。 According to the present invention, a pattern memory stores binary patterns of "0" and "1" in a matrix, and "1" changes from "0" to "1" in each column sequentially obtained from the pattern memory. ” and a position address B of “0” that changes from “1” to “0” after detection of A, as a set of run length data A and B; A connected block is used as an element, and the run length data obtained by the run length detection means is used as a partial element, and the connection relationship between the partial element and the partial element one row before in the detection order is checked and a label is created based on the connection relationship. and a partial element connection relationship processing means that receives the data obtained by the run length detection means and stores run length data C and D that are not connected to the run length data of the previous column, by the partial element connection relationship processing means. a starting point coordinate storage means for a partial element that stores starting point coordinates of a partial element whose row coordinate is C of the data and whose column coordinate is the current column address; A pattern element starting point detecting device is obtained which is constituted by an element starting point processing means for extracting the starting point of an element from the connection relationship and the starting point position of the partial element.
また本発明によれば、線幅が1ビツト幅の
“0”,“1”の2値パターンを記憶するパターン
メモリと、前記パターンメモリのパターンの端
点、分岐点を特徴点として抽出しその位置アドレ
スを記憶する特徴点検出手段と、前記パターンメ
モリから取り出される各列にて“0”から“1”
に変わる“1”の位置アドレスAとA検出後
“1”から“0”に変わる“0”の位置アドレス
Bの一組のランレングスデータA,Bとして記憶
するランレングス検出手段と、前記2値パターン
の連結している一塊りを要素とし、前記ランレン
グス検出手段によつて得られるデータを部分要素
とし、部分要素を検出順に一列前の部分要素との
結合関係を調べ結合関係をもとにレーベルを与え
記憶する部分要素の結合関係処理手段と、前記特
徴点検出手段によつて得られた特徴点位置アドレ
スが前記ランレングス検出手段で得られるランレ
ングスデータの部分要素に含まれるかどうか検出
し記憶する部分要素特徴点包含関係処理手段と、
前記ランレングス検出手段により得られたデータ
を受け一走査列前のランレングスデータとつなが
らないランレングスデータC,Dを前記部分要素
結合関係処理手段で与えたレーベルの部分要素の
最初とし、前記データの内Cを行座標、現在の列
アドレスを列座標とする部分要素の出発点座標を
記憶する部分要素の出発点座標記憶手段と、前記
部分要素結合関係と前記部分要素特徴点包含関係
と前記部分要素の出発点位置より特徴点を含まな
い要素の要素出発点をループ出発点として抽出す
る要素出発点処理手段とで構成されるパターンの
要素出発点検出装置が得られる。 Further, according to the present invention, there is provided a pattern memory that stores binary patterns of "0" and "1" with a line width of 1 bit, and end points and branch points of the pattern in the pattern memory are extracted as feature points and their positions are Feature point detection means for storing addresses, and "0" to "1" in each column taken out from the pattern memory.
run length detection means for storing as a set of run length data A, B a position address A of "1" which changes to "1" and a position address B of "0" which changes from "1" to "0" after detection of A; A connected block of value patterns is used as an element, data obtained by the run length detection means is used as a partial element, and the connection relationship between the partial element and the partial element one row before in the detection order is checked and the connection relationship is determined. a partial element connection relation processing means for assigning a label to and storing a partial element; and whether the feature point position address obtained by the feature point detection means is included in the partial element of the run length data obtained by the run length detection means. a partial element feature point inclusion relation processing means for detecting and storing;
After receiving the data obtained by the run-length detection means, the run-length data C and D that are not connected to the run-length data one scanning row before are set as the first partial elements of the label given by the partial element connection relation processing means, and the data are starting point coordinate storage means for a partial element that stores starting point coordinates of a partial element in which C is a row coordinate and the current column address is a column coordinate; the partial element coupling relationship, the partial element feature point inclusion relationship, and the part; A pattern element starting point detection device is obtained, which includes an element starting point processing means for extracting an element starting point of an element that does not include a feature point as a loop starting point from the starting point position of the element.
以下本発明について実施例を示す図面を参照し
て説明する。 The present invention will be described below with reference to drawings showing embodiments.
第3図は本発明に用いられるランレングスデー
タによる要素検出手段を説明するための各メモリ
の関係を示すブロツク図であり、図において1は
2値パターンメモリ、2はランレングスメモリ、
3はレーベルメモリ、4はレーベルカウンタ、5
は結合関係メモリである。 FIG. 3 is a block diagram showing the relationship between each memory to explain the element detection means using run-length data used in the present invention. In the figure, 1 is a binary pattern memory, 2 is a run-length memory,
3 is label memory, 4 is label counter, 5
is an associative relational memory.
第4図において、aは第3図1の2値パターン
メモリ内容の一例であり、bは第3図2のランレ
ングスメモリ、cは第3図3のレーベルメモリ、
dは第3図5の結合関係メモリ、eは第3図4の
レーベルカウンタの内容の変化を示す。ここで第
4図の左側の各数字はメモリのアドレスを表わ
す。 In FIG. 4, a is an example of the contents of the binary pattern memory in FIG. 3, b is the run length memory in FIG. 3, c is the label memory in FIG.
d indicates a change in the contents of the connection relationship memory in FIG. 3, and e indicates a change in the contents of the label counter in FIG. 3. Each number on the left side of FIG. 4 represents a memory address.
第4図aはパターンに属す点を“1”、属さな
い点を“0”の2値パターンにした結果で“0”
は空白のままで示す。 Figure 4 a shows the result of creating a binary pattern with points that belong to the pattern as “1” and points that do not belong as “0”.
is left blank.
矢印の方向の走査が第4図aの上に付けられた
番号の若い番号から番号順になされる。 Scanning in the direction of the arrow is performed in numerical order starting from the smallest number given above FIG. 4a.
第4図aを走査して信号が“0”から“1”に
変わる図の左側に付けられたアドレス位置AとA
検出後“1”から“0”に変わる“0”の図の左
側に付けられたアドレス位置Bをランレングスデ
ータA,Bとして一走査列分ランレングスメモリ
に記憶する。 Address positions A and A attached to the left side of the diagram where the signal changes from "0" to "1" by scanning Figure 4 a
After detection, the address position B attached to the left side of the diagram of "0" changing from "1" to "0" is stored as run length data A, B in the run length memory for one scanning column.
第4図bはランレングスメモリの内容の変化を
一走査列に対応させて示している。一走査列の一
つのランレングスデータA,B(B>A)に対し
て、すでにレーベル付された一走査列前のランレ
ングスデータC,D(D>C)との結合関係を調
べてつながつているランレングスデータのレーベ
ルl1,l2,…loから求まる最小値l=min(l1,
l2,…lo)をランレングスデータA,Bのレー
ベルとする。 FIG. 4b shows changes in the contents of the run-length memory corresponding to one scanning line. Check the connection relationship between run-length data A, B (B>A) of one scan row and run-length data C, D (D>C) of the previous scan row that has already been labeled. The minimum value l= min ( l1 ,
l 2 ,...l o ) are the labels of run-length data A and B.
つながつているための条件は、 (1) CAかつAD (2) CBかつBD (3) A<CかつD<B (1)(2)(3)いずれかのときである。 The conditions for being connected are (1) CA and AD (2) CB and BD (3) A<C and D<B (1), (2), or (3).
つながるランレングスデータがなかつたら、そ
のときに一つづつ増加するレーベルカウンタの内
容をレーベルとして与える。 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.
第4図cは第4図bのランレングスデータに対
応して前記レーベルづけしたときのレーベルを記
憶するメモリの内容の変化を示す。 FIG. 4c shows changes in the contents of the memory storing the labels when the labels are attached corresponding to the run length data of FIG. 4b.
第4図eはレーベルカウンタの値の変化を列に
対応して示している。 FIG. 4e shows changes in the value of the label counter corresponding to the columns.
ここでレーベルカウンタは走査の開始時にクリ
アされ、ランレングスメモリとレーベルメモリは
各走査の最初でクリアされる。 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.
一般にレーベル付でlm=min(l1,l2,…lo)
をみつけるときn≧2であつたら異なる部分要素
が合流していることを示し、n=lであつたら連
続した“1”の部分要素であることを示す。たと
えばn=2ならレーベレl1の部分要素とレーベル
l2の部分要素とが結合していることになる。従つ
て“1”の部分要素間の関係は、
ln=min(l1,l2,…li,lj…lo)
ln≠li,ln≠lj
とするとレーベルliの“1”の部分要素はレー
ベルljの“1”の部分要素とレーベルlnの部分
要素を介して結合していることになる。ここで
l1,l2,…loはつながつたレーベル値を検出順に
並べたものである。 Generally, with a label, lm=min (l 1 , l 2 ,...l o )
When finding n≧2, it indicates that different subelements are merging, and when n=l, it indicates that the subelements are continuous "1". For example, if n = 2, label l 1 partial element and label
This means that the subelements of l 2 are connected. Therefore, the relationship between the subelements 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" subelement of is connected to the "1" subelement of label l j via the subelement of label l n . here
l 1 , l 2 , ... lo are the connected label values arranged in the order of detection.
第4図dは“1”の部分要素の結合関係を示す
メモリの内容の変化を走査列に対応させて示して
いる。結合関係メモリは起ると予想される“1”
の部分要素の個数以上の容量を用意しておき、レ
ーベル1をアドレスとして内容をアクセスでき、
走査列毎にその内容が更新されるものとする。 FIG. 4d shows changes in the contents of the memory indicating the connection relationship of sub-elements of "1" in correspondence with the scanning rows. Associative relationship memory is expected to occur “1”
Prepare a capacity equal to or greater than the number of subelements in , and access the contents using label 1 as an address.
It is assumed that the contents are updated for each scan column.
パターンを走査するに先立つて結合関係メモリ
をクリアし、レーベルが発生するとレーベル1で
指定される結合関係メモリにレーベル1を書き込
む。 Before scanning a pattern, the connection relationship memory is cleared, and when a label is generated, label 1 is written in the connection relationship memory specified by label 1.
たとえば第4図aの第6列目の走査で得られる
第4図bのアドレス1のランレングスメモリのラ
ンレングスデータ3,6は、一走査列前すなわち
第5列目の走査で得られるランレングスデータと
つながりの関係にないため、レーベルカウンタの
値が1増加して2となり、ランレングスメモリの
アドレス1と同じアドレスの第4図cのレーベル
メモリ位置にレーベル2が書き込まれ、第4図d
の第6列に示されるように、レーベル値2をアド
レスとして結合関係メモリにレーベル2が書き込
まれる。 For example, run length data 3 and 6 in the run length memory at address 1 in FIG. 4b obtained by scanning the 6th column in FIG. Since there is no connection with the length data, the value of the label counter increases by 1 to 2, and label 2 is written to the label memory location c in Figure 4, which is the same address as address 1 in the run-length memory, and as shown in Figure 4. d
As shown in the sixth column, label 2 is written to the connection relationship memory using label value 2 as an address.
部分要素の結合が検出されたときレーベルli
で指定される結合関係メモリにレーベルlnを書
き込み、これによりレールliの“1”の部分要
素にレーベルlnの“1”の部分要素が結合した
とみなす。たとえば第4図aの第10列目の走査で
得られる第4図bの第10列目のアドレス1のラン
レングスデータ7,12は第9列目のランレング
スデータ7,8と10,13の両方と結合関係に
あり、ランレングスデータに対応してつけられた
レーベルすなわち第4図cの第9列目におけるレ
ーベルメモリの値4と3をもとにレーベル値3=
min(4,3)が付けられ、第4図cの第10列目
に示されるランレングスメモリのアドレス1と同
じレーベルメモリの位置にレーベル値3が書き込
まれ、第4図dの第10列目に示されるように、レ
ーベル4をアドレスとした結合関係メモリ位置に
レーベル値3が書き込まれ、これによりレーベル
4の部分要素にレーベル3の部分要素が結合した
ことになる。 When a combination of subelements is detected, the label l i
The label l n is written in the connection relationship memory specified by , and it is assumed that the partial element "1" of the label l n is thereby connected to the partial element "1" of the rail l i . For example, the run length data 7, 12 at address 1 in the 10th column in FIG. 4b obtained by scanning the 10th column in FIG. Label value 3 = based on the label attached to the run length data, that is, the label memory values 4 and 3 in the 9th column of Figure 4 c.
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 Figure 4c, and the label value 3 is written in the 10th column of Figure 4d. As shown, label value 3 is written to the connection relationship memory location with label 4 as the address, and as a result, the partial element of label 3 is combined with the partial element of label 4.
部分要素の結合関係の処理は全面走査終了まで
遂行される。第4図aのパターンの走査が終了し
た時点では結合関係メモリはアドレス順に1,
2,3,3となつている。これから部分要素1,
2,3は各々部分要素1,2,3に、部分要素4
は部分要素3に結合していることがわかる。従つ
て要素1は部分要素1から、要素2は部分要素2
から、要素3は部分要素3と部分要素4とからな
る。 Processing of connection relationships between subelements is performed until the end of the entire scan. When the scanning of the pattern shown in Figure 4a is completed, the connection relation memory is 1,
2, 3, 3. From now on, partial element 1,
2 and 3 correspond to partial elements 1, 2, and 3, respectively, and partial element 4
It can be seen that is connected to partial element 3. Therefore, element 1 is derived from subelement 1, and element 2 is derived from subelement 2.
Therefore, element 3 consists of partial element 3 and partial element 4.
要素の出発点は、要素として最初に検出された
点とすると回路は簡単になる。 The circuit becomes simpler if the starting point of an element is the first point detected as an element.
部分要素の出発点は、新しく部分要素を検出し
たときの最初の点すなわち一走査列のランレング
スデータとつながらないランレングスデータE,
Fを検出したときのEを行位置、走査列を列位置
とする点とし、部分要素の出発点と部分要素の結
合関係をもとに他の部分要素と結合していない部
分要素の出発点を要素の出発点とする。 The starting point of a partial element is the first point when a new partial element is detected, that is, the run length data E, which is not connected to the run length data of one scan row.
When F is detected, E is the row position and the scan column is the column position, and based on the starting point of the subelement and the connection relationship between the subelements, the starting point of the subelement that is not connected to other subelements. Let be the starting point of the element.
第5図は本発明のパターンに含まれる要素の要
素出発点を検出する一実施例を示す図で、2値パ
ターンメモリ1とアドレス発生回路6と部分要素
結合関係処理部7と要素処理部8と結合関係記憶
部9と部分要素出発点座標メモリ10とランレン
グス検出部11とで構成される。 FIG. 5 is a diagram showing an embodiment of detecting the element starting point of an element included in a pattern of the present invention, in which the binary pattern memory 1, the address generation circuit 6, the partial element connection relation processing unit 7, and the element processing unit 8 , a connection relation storage section 9 , a partial element starting point coordinate memory 10 , and a run length detection section 11 .
なお制御部は図示していない。 Note that the control section is not shown.
アドレス発生回路6はカウンタ610と620
からなり、2値パターンメモリ1をアクセスする
アドレスを発生する回路で、最初両方ともクリア
されており、カウンタ610の出力は列に対応す
るアドレスを、カウンタ620の出力は行に対応
するアドレスを発生する。カウンンタ620はカ
ウンタ610が+1されるごとに制御部からのラ
イン181の信号S―181(以下ラインLの信
号は信号S―Lで表現する)によりクリアされ
る。 The address generation circuit 6 has counters 610 and 620.
This is a circuit that generates an address to access the binary pattern memory 1. Initially, both are cleared, and the output of the counter 610 generates the address corresponding to the column, and the output of the counter 620 generates the address corresponding to the row. do. The counter 620 is cleared by the signal S-181 on the line 181 (hereinafter, the signal on the line L will be expressed as the signal SL) from the control section every time the counter 610 is incremented by one.
ランレングス検出部11は、フリツプフロツプ
120とレジスタ110,130,140と
ANDゲート160,170とORゲート180と
インバータ150からなる。 The run length detection section 11 includes a flip-flop 120 and registers 110, 130, 140.
It consists of AND gates 160 and 170, an OR gate 180, and an inverter 150.
制御部からの信号S―181はORゲート18
0に入力され、ORゲート180につながるフリ
ツプフロツプ120の出力信号S―121を
“1”,S―122を“0”にする。 The signal S-181 from the control section is sent to the OR gate 18
0, the output signal S-121 of the flip-flop 120 connected to the OR gate 180 is set to "1", and the output signal S-122 is set to "0".
アドレス発生回路6でアドレスが発生されると
2値パターンメモリ1がアクセスされ、指定アド
レスのメモリ値がレジスタ110にセツトされ
る。信号S―121が“1”のもとで、2値パタ
ーンメモリ1の内容がセツトされるレジスタ11
0の出力信号S―111が“1”になるとAND
ゲート160の出力信号S―161は“1”とな
り、信号S―161をセツト信号とするレジスタ
130に、アドレスの行位置を示すカウンタ62
0の出力信号S―621がセツトされる。また信
号S―161はフリツプフロツプ120に入力さ
れ、出力信号S―122を“1”,S―121を
“0”にする。カウンタ620の値が増加し、レ
ジスタ110の出力信号S―111が“0”とな
ると、インバータ150の出力は“1”となり、
インバータ150の出力信号とフリツプフロツプ
120の出力信号S―122を入力とするAND
ゲート170の出力信号S―171は“1”とな
り、信号S―171をセツト信号とするレジスタ
140に、2値パターンメモリ1が“0”となる
位置すなわちカンタ620の出力信号S―621
がセツトされる。また出力信号S―171の
“1”はORゲート180に入力され、フリツプフ
ロツプ120の出力信号S―121を“1”,S
―122を“0”に変え、元に戻す。カウンタ6
20の値が増加し、前記の過程がくり返され、最
後の行位置に相当する値をカウンタ620の値が
こすと、カウンタ610が+1され、制御部から
の信号S―181によりカウンタ620はクリア
される。 When an address is generated by the address generation circuit 6, the binary pattern memory 1 is accessed, and the memory value of the specified address is set in the register 110. When the signal S-121 is "1", the register 11 is set with the contents of the binary pattern memory 1.
When the output signal S-111 of 0 becomes “1”, AND
The output signal S-161 of the gate 160 becomes "1", and the counter 62 indicating the row position of the address is sent to the register 130 which uses the signal S-161 as a set signal.
An output signal S-621 of 0 is set. Further, the signal S-161 is input to the flip-flop 120, and the output signal S-122 is set to "1" and the output signal S-121 is set to "0". When the value of the counter 620 increases and the output signal S-111 of the register 110 becomes "0", the output of the inverter 150 becomes "1",
AND with the output signal of the inverter 150 and the output signal S-122 of the flip-flop 120 as inputs
The output signal S-171 of the gate 170 becomes "1", and the register 140 which uses the signal S-171 as a set signal is set to the position where the binary pattern memory 1 becomes "0", that is, the output signal S-621 of the counter 620.
is set. Furthermore, the output signal S-171 of "1" is input to the OR gate 180, which changes the output signal S-121 of the flip-flop 120 to "1",
- Change 122 to “0” and return to original. counter 6
The value of 20 is increased and the above process is repeated, and when the value of the counter 620 crosses the value corresponding to the last row position, the counter 610 is incremented by 1, and the counter 620 is set by the signal S-181 from the control section. cleared.
従つて信号S―171は一つのランレングスデ
ータが検出されるたびに“1”となり、レジスタ
130の値は2値パターンメモリ1の一列におい
て“0”から“1”に変る“1”の位置Aを、レ
ジスタ140の値は一列でA検出後“0”に変る
“0”の位置Bを表わしている。 Therefore, the signal S-171 becomes "1" every time one run length data is detected, and the value of the register 130 is at the "1" position where the value changes from "0" to "1" in one row of the binary pattern memory 1. A, the value of the register 140 represents the position B of "0" which changes to "0" after A is detected in one row.
部分要素結合関係処理部7は、アクセスしてい
る列のランレングスデータを記憶するランレング
スメモリ2と、アクセスしている列のランレング
スデータに対応するレーベルを記憶するレーベル
メモリ3と、レーベルカウンタ4と、一列前のラ
ンレングスデータを記憶するランレングスメモリ
25と、一列前のランレングスデータに対応する
レーベルを記憶するレーベルメモリ35と、結合
関係検出回路45と、レジスタ200,250,
260,280,310,350と、カウンタ2
20,300と、選択回路230,290と、比
較回路270と、最大のレーベル値(例えば6ビ
ツトのレジスタとする10進数の63)がセツトされ
ているレジスタ240からなる。 The partial element connection relation processing unit 7 includes a run length memory 2 that stores run length data of the accessed column, a label memory 3 that stores the label corresponding to the run length data of the accessed column, and a label counter. 4, a run length memory 25 that stores run length data of the previous row, a label memory 35 that stores a label corresponding to the run length data of the previous row, a coupling relationship detection circuit 45, registers 200, 250,
260, 280, 310, 350 and counter 2
20, 300, selection circuits 230, 290, comparison circuit 270, and register 240 to which the maximum label value (for example, 63 in decimal notation for a 6-bit register) is set.
ランレングス検出部11で一組のランレングス
データが検出されると、信号S―171によりカ
ウンタ220が始動し、制御部からの信号S―1
81でリセツトされるカウンタ300の値が+1
される。 When a set of run length data is detected by the run length detection section 11, the counter 220 is started by the signal S-171, and the counter 220 is started by the signal S-1 from the control section.
The value of counter 300 reset at 81 is +1
be done.
ランレングスメモリ2はカウンタ300の出力
信号S―301をアドレスとし、レジスタ130
と140との出力信号S―131とS―141を
すなわちランレングスデータを表わす値を記憶す
る。 The run length memory 2 uses the output signal S-301 of the counter 300 as an address, and the register 130
and 140, output signals S-131 and S-141, that is, values representing run length data are stored.
レーベルメモリ3は信号S―301をアドレス
としてランレングスデータに付けるレーベル値が
出力されている信号S―232を記憶する。 The label memory 3 stores a signal S-232 in which a label value to be added to the run-length data is output using the signal S-301 as an address.
ランレングスメモリ25とレーベルメモリ35
には一列前のデータが記憶されていて、ランレン
グスメモリ25はカウンタ220の出力信号S―
221をアドレスとして読み出され、レジスタ2
50にセツトされ、レーベルメモリ35は信号S
―221をアドレスとしてレジスタ350に読み
出される。 Run length memory 25 and label memory 35
stores the data of the previous column, and the run length memory 25 stores the output signal S- of the counter 220.
221 is read as the address, and register 2 is read out.
50, and the label memory 35 receives the signal S.
-221 is read into the register 350 as the address.
結合関係検出回路45では得られたランレング
スデータ信号S―131,S―141と、一列前
のランレングスデータ信号S―251,S―25
2とが前記の結合の条件(1),(2)又は(3)を満足する
か検出し、満足したらライン451に“1”を出
力し制御部へ送られる。ライン452にはランレ
ングスメモリ25のデータのどれとも結合してい
ないとき“1”が出力され、レーベルカウンタ4
が+1される。ここでレーベルカウンタは最初ク
リアされている。 The coupling relationship detection circuit 45 detects the obtained run length data signals S-131, S-141 and the run length data signals S-251, S-25 of the previous column.
2 satisfies the coupling conditions (1), (2), or (3), and if it is satisfied, "1" is output to line 451 and sent to the control section. “1” is output to the line 452 when the data is not combined with any of the data in the run length memory 25, and the label counter 4
is +1. Here, the label counter is initially cleared.
カンタ220は前記信号S―171により始動
し、制御部からの信号S―222が送られる毎に
1づつ増加する。 The counter 220 is started by the signal S-171 and increases by one each time the signal S-222 from the control section is sent.
レーベルメモリ35はカウンタ220の出力信
号S―221をアドレスとし、前記信号S―45
1のもとに結合したランレングスデータに対応し
たレーベルをレジスタ350にセツトする。また
レジスタ260にはレジスタ350にセツトされ
た値すなわちつながつているランレングスデータ
に付られたレーベル値がすべて記憶される。ここ
でレジスタ260は各ランレングスデータのレー
ベルを求める前にクリアしておく。 The label memory 35 uses the output signal S-221 of the counter 220 as an address, and uses the signal S-45 as an address.
A label corresponding to the run length data combined under 1 is set in the register 350. Further, the register 260 stores all values set in the register 350, that is, label values attached to connected run length data. Here, the register 260 is cleared before obtaining the label of each run length data.
レジスタ240には最大値がセツトされてお
り、選択回路290は制御部からのライン291
の制御信号S―291―1でレジスタ240の出
力信号を出力し、ライン291の制御信号S―2
91―2で信号S―271を出力する。以下ライ
ンL上のN番目の制御信号をS―L―Nで表わ
す。 The maximum value is set in the register 240, and the selection circuit 290 receives the line 291 from the control section.
The control signal S-291-1 outputs the output signal of the register 240, and the control signal S-2 of the line 291 outputs the output signal of the register 240.
91-2 outputs signal S-271. Hereinafter, the Nth control signal on line L will be expressed as S--L--N.
得られたランレングスデータのレーベル付けを
するときは、まず信号S―291―1を発生し、
レジスタ280に最大のレーベル値をセツトす
る。次にレジスタ350にレーベルメモリ35の
内容が読み出され、結合しているランレングスデ
ータに付られたレーベル値がセツトされると、比
較回路270は信号S―281と信号S―351
とを比較して値の小さい方の信号をライン271
に出力する。その後で制御部からの制御信号S―
291―2を発生するとレジスタ280には信号
S―271が入るので、レジスタ280には結合
したランレングスデータに付けられたレベル値の
最小の値がセツトされる。従つてレジスタ280
の値が最大値であつたらレーベルカウンタ4の値
が、最大値でなかつたらレジスタ280の値がラ
ンレングスデータに付けるレーベルとなる。 When labeling the obtained run length data, first generate the signal S-291-1,
Set the maximum label value in register 280. Next, when the contents of the label memory 35 are read into the register 350 and the label value attached to the combined run length data is set, the comparison circuit 270 outputs the signal S-281 and the signal S-351.
The signal with the smaller value is sent to line 271.
Output to. After that, the control signal S-
When the signal S-291-2 is generated, the signal S-271 is input to the register 280, so that the minimum value of the level values added to the combined run-length data is set in the register 280. Therefore register 280
If the value is the maximum value, the value of the label counter 4 becomes the label, and if it is not the maximum value, the value of the register 280 becomes the label to be attached to the run length data.
選択回路230は制御部からの制御信号S―2
31によりレジスタ280からの信号S―271
またはレーベルカウンタ4からの信号S―401
を選択し、ランレングスデータに付けるレーベル
値として信号S―232を出力する。 The selection circuit 230 receives the control signal S-2 from the control section.
31 sends the signal S-271 from register 280.
Or signal S-401 from label counter 4
is selected, and the signal S-232 is output as a label value to be attached to the run length data.
レジスタ200,310はランレングスメモリ
25とレーベルメモリ35に値を書き込むための
バツフアレジスタで一列のランレングスデータに
レーベル付けが終つたらメモリ2,3の内容がレ
ジスタ200,310を介して転送される。 Registers 200 and 310 are buffer registers for writing values into the run-length memory 25 and label memory 35. After labeling a row of run-length data, the contents of memories 2 and 3 are transferred via registers 200 and 310. be done.
部分要素の出発点は新しい部分要素を検出した
ときの最初の一点であり、新しい部分要素の検出
は一列前のランレングスデータとつながらないラ
ンレングスデータを検出したときで、出発点の座
標は行座標としてランレングスデータより、列座
標としてランレングスデータを求めている列より
得られる。 The starting point of a subelement is the first point when a new subelement is detected, and a new subelement is detected when run length data that is not connected to the run length data of the previous column is detected, and the coordinates of the starting point are the row coordinates. From the run-length data as column coordinates, the run-length data is obtained from the column for which you are seeking.
従つて部分要素出発点座標メモリ10はランレ
ングスデータのレーベル値を表わす信号S―23
2をアドレス、一列前のランレングスデータのど
れとも結合していないとき“1”となる信号S―
452をセツト信号とし、行位置としてランレン
グスデータの“1”の位置アドレスがセツトされ
ているレジスタ130の出力信号S―131を、
列位置としてアドレス発生回路6の列アドレス信
号S―611を記憶する。 Therefore, the partial element starting point coordinate memory 10 receives the signal S-23 representing the label value of the run length data.
2 is the address, and the signal S- is “1” when it is not combined with any of the run length data of the previous column.
452 as a set signal, and the output signal S-131 of the register 130 in which the position address of "1" of the run length data is set as the row position.
Column address signal S-611 of address generation circuit 6 is stored as the column position.
結合関係記憶部9はレーベル間の結合関係を記
憶する結合関係メモリ5と選択回路510と、メ
モリ読み出し用レジスタ520と、書き込み用レ
ジスタ530からなる。 The connection relationship storage unit 9 includes a connection relationship memory 5 for storing connection relationships between labels, a selection circuit 510, a memory read register 520, and a write register 530.
選択回路510は制御部からの制御信号S―5
11―1で信号S―401を、制御信号S―51
1―2で信号S―261を、制御信号S―511
―3で信号S―801を選択し出力する。 The selection circuit 510 receives the control signal S-5 from the control section.
11-1 sends signal S-401, control signal S-51
1-2 for signal S-261, control signal S-511
-3 selects and outputs signal S-801.
結合関係メモリ5は選択回路510の出力をア
ドレスとし、制御部からの制御信号S―501―
1のもとでレジスタ530の出力を書き込み、制
御信号S―501―2のもとでレジスタ520に
読み出される。ここで結合関係メモリ5は最初に
クリアされている。 The connection relation memory 5 uses the output of the selection circuit 510 as an address, and receives the control signal S-501- from the control section.
The output of register 530 is written under control signal S-501-2 and read into register 520 under control signal S-501-2. Here, the connection relationship memory 5 is initially cleared.
従つて結合関係にあるレーベルはレーベルカウ
ンタ4とレジスタ530とに、又はレジスタ26
0とレジスタ530とにセツトされているので、
制御信号S―511―1と制御信号S―501―
1とで、又は制御信号S―511―2と制御信号
S―501―1とで結合関係メモリ5に書き込ま
れる。 Therefore, the labels that are connected are stored in the label counter 4 and the register 530, or in the register 26.
Since it is set to 0 and register 530,
Control signal S-511-1 and control signal S-501-
1 or control signal S-511-2 and control signal S-501-1.
メモリを全面アクセスし終つた後に要素処理部
8が始動する。 After the entire memory has been accessed, the element processing unit 8 is started.
要素処理部8はカウンタ800と、比較回路8
10からなり、カウンタ800は最初クリアさ
れ、制御部からの制御信号S―802が送られる
毎に+1される。 The element processing unit 8 includes a counter 800 and a comparison circuit 8
The counter 800 is initially cleared and incremented by 1 each time the control signal S-802 is sent from the control section.
カウンタ800の出力信号S―801は選択回
路510の制御信号S―511―3で選択され結
合関係メモリ5のアドレスとなる。制御信号S―
501―2のもとで結合関係メモリ5が読み出さ
れレジスタ520にセツトされ、レジスタ520
の出力信号S―521がアドレスとして用いた信
号S―801と等しいか否か比較回路810で検
出し、等しければ“1”をライン811に出力す
る。 The output signal S-801 of the counter 800 is selected by the control signal S-511-3 of the selection circuit 510 and becomes the address of the connection relationship memory 5. Control signal S-
501-2, the connection relationship memory 5 is read out and set in the register 520, and
A comparison circuit 810 detects whether the output signal S-521 is equal to the signal S-801 used as the address, and if they are equal, outputs "1" to the line 811.
信号S―811が“0”であるということは異
なるレーベルの部分要素がつながつていることで
あり、結合関係メモリ5のアドレスとして用いた
カウンタ800の出力信号S―801のレーベル
値に対応する部分要素の出発点座標は不要とな
る。 The fact that the signal S-811 is "0" means that partial elements of different labels are connected, and the part corresponding to the label value of the output signal S-801 of the counter 800 used as the address of the connection relationship memory 5 The starting point coordinates of the element are no longer required.
従つてカウンタ800の出力信号S―801と
信号S―811を制御部に送り、信号S―811
が“1”であるときの出力信号S―801をアド
レスして、部分要素出発点座標メモリ10を読み
出すと、得られた座標値が要素の出発点となる。 Therefore, the output signal S-801 of the counter 800 and the signal S-811 are sent to the control section, and the signal S-811 is sent to the control section.
When the partial element starting point coordinate memory 10 is read by addressing the output signal S-801 when is "1", the obtained coordinate value becomes the starting point of the element.
第6図は本発明の線幅が1ビツト幅の2値パタ
ーンの線をトレースするために端点、分岐点の他
にパターンに含まれるループ要素の要素出発点を
1回の面走査によつて検出することが出来る一実
施例を示す図で、第5図に特徴点包含関係処理部
70と特徴点検出回路90を追加して構成され
る。ここで特徴点検出回路90は第2図に示すマ
スクに合うかを検出し、一致していたら中心位置
の座標を出力する一般的な回路で、その座標は特
徴点包含関係処理部70内の特徴点座標メモリ7
00にセツトされる。 FIG. 6 shows that in order to trace a line of a binary pattern with a line width of 1 bit according to the present invention, in addition to end points and branch points, element starting points of loop elements included in the pattern are scanned once. This is a diagram showing an example in which detection is possible, and is configured by adding a feature point inclusion relationship processing section 70 and a feature point detection circuit 90 to FIG. 5. Here, the feature point detection circuit 90 is a general circuit that detects whether it matches the mask shown in FIG. 2, and if it matches, outputs the coordinates of the center position. Feature point coordinate memory 7
Set to 00.
第7図は第6図の特徴点検出回路90を除いて
詳細に記述した図である。以下では第5図で説明
した部分は除いて説明する。 FIG. 7 is a detailed diagram excluding the feature point detection circuit 90 of FIG. 6. In the following, the explanation will be made excluding the portion explained in FIG. 5.
特徴点包含関係処理部70は特徴点座標メモリ
700と、特徴点包含関係メモリ710と、レジ
スタ720,730,740と、比較回路75
0,760,770と、ANDゲート780と、
ORゲート790からなる。 The feature point inclusion relationship processing unit 70 includes a feature point coordinate memory 700, a feature point inclusion relationship memory 710, registers 720, 730, 740, and a comparison circuit 75.
0,760,770, AND gate 780,
It consists of an OR gate 790.
特徴点座標メモリ700には第2図のマスクで
2値パターンメモリ1を走査して検出された特徴
点の座標アドレスがセツトされていて、ランレン
グス検出部11で一つのランレングスデータが得
られるとカウンタ220が始動し、カウンタ22
0の出力信号S―221をアドレスとして特徴点
の座標値がレジスタ720にセツトされる。 Coordinate addresses of feature points detected by scanning the binary pattern memory 1 with the mask shown in FIG. and the counter 220 starts, and the counter 22
The coordinate values of the feature points are set in the register 720 using the output signal S-221 of 0 as an address.
特徴点包含関係メモリ710はレーベルをメモ
リのアドレスとし各レーベルの部分要素に特徴点
が含まれるか記憶するメモリで、“1”の値がセ
ツトされていたら特徴点が含まれることを示す。
従つてメモリ710は最初にクリアされる。 The minutiae inclusion relationship memory 710 is a memory that uses labels as memory addresses and stores whether minutiae are included in the partial elements of each label, and a value of "1" indicates that minutiae are included.
Therefore, memory 710 is first cleared.
メモリ710はランレングスデータに与えるレ
ーベル値を表わす信号S―232をアドレスとし
てレジスタ730に読み出されたり、レジスタ7
40の値を書き込れたりする。 The memory 710 is read out to the register 730 using the signal S-232 representing the label value given to the run length data as an address, or
A value of 40 can be written.
比較回路750はランレングスデータの列アド
レスを表わす信号S―611と特徴点の列アドレ
スを表わす信号S―721とを入力し、一致して
いたら“1”を出力し、一致してなかつたら
“0”をを出力する。 The comparison circuit 750 inputs the signal S-611 representing the column address of run-length data and the signal S-721 representing the column address of the feature point, and outputs "1" if they match, and outputs "1" if they do not match. Outputs 0''.
比較回路760はランレングスデータの値がセ
ツトされているレジスタ130の出力信号S―1
31と特徴点の列アドレスを表わす信号S―72
2とを入力し、信号S―722の値が信号S―1
31の値より大きいか等しいければ“1”を出力
し、それ以外のときは“0”を出力する。 The comparison circuit 760 receives the output signal S-1 of the register 130 in which the value of the run length data is set.
31 and a signal S-72 representing the column address of the feature point.
2 and the value of signal S-722 becomes signal S-1.
If it is greater than or equal to the value of 31, it outputs "1", otherwise it outputs "0".
比較回路770は特徴点の列アドレスを表わす
信号S―722とランレングスデータの値がセツ
トされているレジスタ140の出力信号S―14
1とを入力し、信号S―141の値が信号S―7
22の値より大きいか等しければ“1”を出力
し、それ以外のときは“0”を出力する。 The comparison circuit 770 receives a signal S-722 representing the column address of the feature point and an output signal S-14 of the register 140 in which the value of the run length data is set.
1 and the value of signal S-141 becomes signal S-7.
If the value is greater than or equal to 22, "1" is output; otherwise, "0" is output.
ANDゲート780は比較回路750,76
0,770の出力を入力とするので、特徴点の列
座標がランレングスデータの列アドレスと一致
し、行座標がランレングスデータの行位置アドレ
ス内にあるときのみ“1”を出力する。 AND gate 780 is the comparison circuit 750, 76
Since the output of 0,770 is input, "1" is output only when the column coordinate of the feature point matches the column address of the run-length data and the row coordinate is within the row position address of the run-length data.
ORゲート790レーベル値をアドレスとする
メモリ710の値がセツトされているレジスタ7
30の出力とANDゲート780の出力とを入力
とし、レジスタ730の値が“0”でANDゲー
ト780の出力が“0”のときのみ“0”を、す
なわちメモリ710のアドレスに用いたレーベル
値の部分要素にはまだ特徴点が含まれず、得られ
たランレングスデータにも特徴点が含まれないと
きのみ“0”を、それ以外のときは“1”を出力
し、レジスタ740にセツトされる。 Register 7 in which the value of memory 710 whose address is the OR gate 790 label value is set
30 and the output of AND gate 780 as inputs, and only when the value of register 730 is "0" and the output of AND gate 780 is "0", "0" is used, that is, the label value used for the address of memory 710. It outputs "0" only when the subelement does not yet include a feature point and the obtained run length data does not include a feature point, and otherwise outputs "1" and sets it in the register 740. Ru.
レジスタ740にセツトされた値は信号S―2
32をアドレスとしてメモリ710に記憶され
る。従つて2値パターンメモリ1を全面アクセス
し終つた段階では特徴点包含関係メモリ710に
は各レーベルの部分要素に特徴点が含まれていた
かどうかが記憶されている。 The value set in register 740 is signal S-2.
32 as the address and stored in the memory 710. Therefore, at the stage when the entire binary pattern memory 1 has been accessed, the feature point inclusion relationship memory 710 stores whether or not feature points are included in the partial elements of each label.
一方要素処理部8の信号S―811により異な
るレーベルの部分要素がつながつているかわかる
ので、カウンタ800の出力信号S―801と、
比較回路810の出力信号S―811と、信号S
―801をアドレスとして特徴点包含関係メモリ
710を読み出した値のセツトされるレジスタ7
30の出力信号S―731とを制御部に送り、信
号S―811が“1”で信号S―731が“0”
であるときの信号S―801をアドレスとして部
分要素出発点座標メモリ10を読み出すと、特徴
点を含まない要素すなわちループ要素の出発点座
標が得られる。 On the other hand, since it can be determined from the signal S-811 of the element processing unit 8 whether partial elements of different labels are connected, the output signal S-801 of the counter 800 and
Output signal S-811 of comparison circuit 810 and signal S
- Register 7 where the value read out from feature point inclusion relationship memory 710 using address 801 is set.
30 output signal S-731 is sent to the control unit, and the signal S-811 is "1" and the signal S-731 is "0".
When the partial element starting point coordinate memory 10 is read using the signal S-801 when , as an address, the starting point coordinates of an element that does not include a feature point, that is, a loop element, are obtained.
以上に説明したように本発明によれば(1)一走査
列の点数に比例してメモリを増加する必要のない
パターンの各要素の出発点検出装置を、(2)パター
ンが1ビツト幅の2値パターンのとき、マスクで
は検出できないループ要素の出発点検出装置を提
供できる。 As explained above, the present invention provides (1) a device for detecting the starting point of each element of a pattern that does not require an increase in memory in proportion to the number of points in one scanning line; In the case of a binary pattern, it is possible to provide a starting point detection device for loop elements that cannot be detected by a mask.
第1図はループ要素を含む2値パターンの例を
示す図、第2図は端点、分岐点検出用マスクの例
を示す図、第3図はランレングスデータによる要
素検出手段を説明するための各メモリの関係を示
すブロツク図、第4図は第3図の処理を説明する
ための図で、aは第3図1の2値パターンメモリ
にセツトされたパターンの例、bは第3図2のラ
ンレングクメモリの内容の変化を、cは第3図3
のレーベルメモリの内容の変化を、dは第3図5
の結合関係メモリの内容の変化を、eは第3図4
のレベルカウンタの内容の変化を第4図aの列に
対応さして示している。第5図は本発明のパター
ンに含まれる要素の要素出発点を検出する一実施
例のブロツク図、第6図は本発明のパターンに含
まれるループ要素の要素出発点を検出する一実施
例のブロツク図、第7図は第6図の特徴点検出回
路90を除いた詳細なブロツク図である。
図において、1は2値パターンメモリ、6はア
ドレス発生回路、7は部分要素結合関係処理部、
8は要素処理部、9は結合関係記憶部、10は部
分要素出発点座標メモリ、11はランレングス検
出部、70は特徴点包含関係記憶部、90は特徴
点検出回路をそれぞれ示す。
Fig. 1 is a diagram showing an example of a binary pattern including a loop element, Fig. 2 is a diagram showing an example of a mask for detecting end points and branch points, and Fig. 3 is a diagram showing an example of an element detection means using run length data. FIG. 4 is a block diagram showing the relationship between each memory, and is a diagram for explaining the processing in FIG. 3, where a is an example of a pattern set in the binary pattern memory in FIG. c is the change in the contents of the run length memory in Figure 3.
d is the change in the contents of the label memory in Figure 3.5.
e is the change in the content of the connection relationship memory in Figure 3.4.
The changes in the contents of the level counter are shown in correspondence with the columns in FIG. 4a. FIG. 5 is a block diagram of an embodiment for detecting the element starting point of an element included in the pattern of the present invention, and FIG. 6 is a block diagram of an embodiment for detecting the element starting point of a loop element included in the pattern of the present invention. The block diagram in FIG. 7 is a detailed block diagram excluding the feature point detection circuit 90 of FIG. In the figure, 1 is a binary pattern memory, 6 is an address generation circuit, 7 is a partial element connection relationship processing unit,
8 is an element processing section, 9 is a connection relation storage section, 10 is a partial element starting point coordinate memory, 11 is a run length detection section, 70 is a feature point inclusion relation storage section, and 90 is a feature point detection circuit.
Claims (1)
ーンメモリと、前記パターンメモリの各列にて
“0”から“1”に変わる“1”の位置アドレス
AとA検出後“1”から“0”に変わる“0”の
位置アドレスBとを一組ののランレングスデータ
A,Bとして記憶するランレングス検出手段と、
前記2値パターンの連結している一塊りを要素と
し、前記ランレングス検出手段によつて得られる
ランレングスデータを部分要素とし、部分要素を
検出順に一列前の部分要素との結合関係を調べ結
合関係をもとにレーベルを与え記憶する部分要素
結合関係処理手段と、前記ランレングス検出手段
によつて得られたデータを受け、一列前のランレ
ングスデータとつながらないランレングスデータ
を前記部分要素結合関係処理手段で与えたレーベ
ルの部分要素の最初のランレングスデータC,D
とし、Cを行座標、現在の列アドレスを列座標と
する部分要素の出発点座標を記憶する部分要素の
出発点座標記憶手段と、前記部分要素結合関係と
前記部分要素の出発点座標より要素の出発点を抽
出する要素出発点処理手段とで構成されることを
特徴とするパターンの要素出発点検出装置。 2 線幅が1ビツト幅の“0”,“1”の2値パタ
ーンを記憶するパターンメモリと、前記パターン
メモリのパターンの端点、分岐点を特徴点として
抽出しその位置アドレスを記憶する特徴点検出手
段と、前記パターンメモリの各列にて“0”から
“1”に変わる“1”の位置アドレスAとA検出
後“1”から“0”に変わる“0”の位置アドレ
スBを一組のランレングスデータA,Bとして記
憶するランレングス検出手段と、前記2値パター
ンの連結している一塊りを要素とし、前記ランレ
ングス検出手段によつて得られるデータを部分要
素とし、部分要素を検出順に一列前の部分要素と
の結合関係を調べ結合関係をもとにレーベルを与
え記憶する部分要素の結合関係処理手段と、前記
特徴点検出手段によつて得られた特徴点位置アド
レスが前記ランレングス検出手段で得られるラン
レングスデータの部分要素に含まれるかどうか検
出し記憶する部分要素特徴点包含関係処理手段
と、前記ランレングス検出手段により得られたデ
ータを受け一列前のランレングスデータとつなが
らないランレングスデータは前記部分要素結合関
係処理手段で与えたレーベルの部分要素の最初の
ランレングスデータC,Dとし、Cを行座標、現
在の列アドレスを列座標とする部分要素の出発点
座標を記憶する部分要素の出発点座標記憶手段
と、前記部分要素結合関係と前記部分要素特徴点
包含関係と前記部分要素の出発点座標より特徴点
を含まない要素の要素出発点をループ出発点とし
て抽出する要素出発点処理手段とで構成されるこ
とを特徴とするパターンの要素出発点検出装置。[Claims] 1. A pattern memory that stores a binary pattern of "0" and "1", and a position address A of "1" that changes from "0" to "1" in each column of the pattern memory. run length detection means for storing a position address B of "0" that changes from "1" to "0" after detection of A as a set of run length data A and B;
A connected block of the binary pattern is used as an element, run length data obtained by the run length detection means is used as a partial element, and the partial element is combined by checking the connection relationship with the partial element one row before in the detection order. A partial element connection relation processing means for assigning and storing a label based on the relationship, and data obtained by the run length detection means are received, and run length data that is not connected to run length data one row before is assigned to the partial element connection relation. First run length data C, D of label partial elements given by processing means
a partial element starting point coordinate storage means for storing the starting point coordinates of the partial element where C is the row coordinate and the current column address is the column coordinate; and element starting point processing means for extracting the starting point of a pattern. 2. A pattern memory that stores binary patterns of "0" and "1" with a line width of 1 bit, and a feature check that extracts end points and branch points of the pattern in the pattern memory as feature points and stores their position addresses. and a position address A of "1" that changes from "0" to "1" in each column of the pattern memory and a position address B of "0" that changes from "1" to "0" after detection of A. A run length detection means for storing a set of run length data A and B, a connected block of the binary pattern as an element, data obtained by the run length detection means as a partial element, and a partial element; a partial element connection relationship processing means for examining the connection relationship with the partial element one row before in the detection order and giving and storing a label based on the connection relationship; and a feature point position address obtained by the feature point detection means. partial element feature point inclusion relationship processing means for detecting and storing whether or not the run length data obtained by the run length detection means is included in a subelement; The run-length data that is not connected to the data is the first run-length data C and D of the partial element of the label given by the partial element connection relation processing means, and the starting point of the partial element with C as the row coordinate and the current column address as the column coordinate. A starting point coordinate storage means for a partial element that stores point coordinates, a loop starting point of an element that does not include a feature point from the partial element connection relationship, the partial element minutiae inclusion relationship, and the starting point coordinate of the partial element. 1. An element starting point detection device for a pattern, comprising: element starting point processing means for extracting points.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP749579A JPS5599681A (en) | 1979-01-24 | 1979-01-24 | Element start point detector for pattern |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP749579A JPS5599681A (en) | 1979-01-24 | 1979-01-24 | Element start point detector for pattern |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5599681A JPS5599681A (en) | 1980-07-29 |
| JPS6211389B2 true JPS6211389B2 (en) | 1987-03-12 |
Family
ID=11667345
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP749579A Granted JPS5599681A (en) | 1979-01-24 | 1979-01-24 | Element start point detector for pattern |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5599681A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007006722A (en) * | 2005-06-28 | 2007-01-18 | Meitec Corp | Flying insect-trapping net |
-
1979
- 1979-01-24 JP JP749579A patent/JPS5599681A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5599681A (en) | 1980-07-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3492646A (en) | Cross correlation and decision making apparatus | |
| US5220647A (en) | Image processing method | |
| JPS61233878A (en) | Image processing apparatus | |
| JPS6211389B2 (en) | ||
| JPS5987566A (en) | Memory access detection method | |
| US4776028A (en) | Apparatus for and method of compressing form data | |
| JP2853321B2 (en) | Binary image information synthesis method | |
| JP2784004B2 (en) | Character recognition device | |
| JPS59146365A (en) | Mask information storage system | |
| JPH0430632B2 (en) | ||
| JPS6316787B2 (en) | ||
| JPS6019549B2 (en) | Shape matching device | |
| JPH0373913B2 (en) | ||
| JPH07101382B2 (en) | Margin processing device | |
| JP2839515B2 (en) | Character reading system | |
| JPS6051924A (en) | External character access system | |
| JPS5820075B2 (en) | pattern recognition device | |
| JPS58176680A (en) | Character output unit | |
| JPS63253431A (en) | Retrieving system for data base of inverted structure | |
| JPS6057110B2 (en) | Optical character recognition method and device | |
| JPH011075A (en) | Image processing device | |
| JPH0444984B2 (en) | ||
| JPS60160444A (en) | List processing method | |
| JPS6050581A (en) | Character memory system for graphic display unit | |
| JPS60218182A (en) | Area sorting circuit |