JPS6027072A - Picture processor - Google Patents
Picture processorInfo
- Publication number
- JPS6027072A JPS6027072A JP58134336A JP13433683A JPS6027072A JP S6027072 A JPS6027072 A JP S6027072A JP 58134336 A JP58134336 A JP 58134336A JP 13433683 A JP13433683 A JP 13433683A JP S6027072 A JPS6027072 A JP S6027072A
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- connectivity
- patterns
- register
- view
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明は2値パターンの連結性処理を施す画・像処理装
置処係り、特に複数の検出視野で始め・て全体を検出で
きる大きなシーンに好適な連結コ性処理を施す画像処理
装置に関する。[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to an image/image processing device that performs connectivity processing on binary patterns, and is particularly suitable for large scenes where the entire scene can be detected from the beginning with a plurality of detection fields of view. The present invention relates to an image processing device that performs connected processing.
対象シーンを光電変換する撮像装置を用いて。 Using an imaging device that photoelectrically converts the target scene.
この撮像装置からえられる映像信号を2値化し、゛この
2値信号により対象物を認識したり検査す1するパター
ン自動認識装置やパターン検査装置などの画像処理装置
において、たとえば第1図K・例示するような複数個の
パターンが1つの検出視野に近接して存在し、それぞれ
を独立に認識したり判定しなければならない場合に、従
来たとえば特開昭55−79571に示されるような1
つの検出視野でのパターンの連結性処理を施す画像処理
装置が利用できる。すなわちこの従来装置は、走査する
撮像装置からの映像信号を2値化回路により2値化し、
この2値化回路からえ1られる2値信号から走査線上に
おけるパターン゛を検出するとともに1つの走査線上の
パターン゛とその1つ前の走査線上のパターンとの連結
性を検出する第1の手段と、この第1の手段によ。In an image processing device such as an automatic pattern recognition device or a pattern inspection device that binarizes the video signal obtained from this imaging device and recognizes or inspects an object using this binary signal, for example, Conventionally, when a plurality of patterns as shown in the example exist in close proximity to one detection field of view and each must be recognized or judged independently, a
An image processing device that performs pattern connectivity processing in two detection fields of view is available. In other words, this conventional device binarizes a video signal from a scanning imaging device using a binarization circuit,
A first means for detecting a pattern on a scanning line from a binary signal obtained from the binarization circuit, and detecting connectivity between a pattern on one scanning line and a pattern on the previous scanning line. And by this first means.
って検出された各パターンに対して各パターン・間の連
結性を示す連結番号を与えるとと、もにそ゛のパターン
の諸元(パターンの面積、輪郭長さなど)を抽出する第
2の手段と、この第2の手段によって与えられた連結番
号が同一のバター゛ンについてそのパターンの諸元を合
成する第3゛0の手段を備え、その第6の手段によって
合成されたパターンの諸元によってパターンの認識や検
査を行うようにしている。しかしながら、このような従
来の連結性処理方式による画像処理装置では、たとえば
第2図に例示するような1つの検出視野では検出しきれ
ずに複数の検出視野にまたがるような大きなパターンが
存在する場合には個々の検出視野における連結成分しか
検出できず、シーン全体の正しいパターンの認識や検査
が困難になるなどの欠点があった。When a connection number indicating the connectivity between each pattern is given to each pattern detected by and a third means for synthesizing the specifications of the pattern for patterns having the same concatenation number given by the second means; Pattern recognition and inspection are performed depending on the source. However, in an image processing apparatus using such a conventional connectivity processing method, for example, when there is a large pattern that cannot be detected in one detection field of view and spans multiple detection fields, as shown in FIG. This method has the disadvantage that it can only detect connected components in each individual detection field of view, making it difficult to recognize and inspect the correct pattern of the entire scene.
本発明の目的は上記した従来技術の欠点をな“(し、1
つの検出視野より大きな)くターンの正′確な認識や検
査をも可能にするような連結性処理を施す画像処理装置
を提供するにある。The purpose of the present invention is to overcome the above-mentioned drawbacks of the prior art.
An object of the present invention is to provide an image processing device that performs connectivity processing that enables accurate recognition and inspection of turns (larger than one detection field of view).
本発明は、上記した従来技術における1つの検出視野に
ついて2値・くターンの蓮結性処理を施すとともに、分
割検出視野の境界上のノくターンの連結性処理を実行す
ることにより、複数の°〕分割視野にわたる対象シーン
全体圧対して連結性を有するパターンをうるようにした
画像処理装置である。The present invention performs binary/multiple turn connectivity processing on one detection field of view in the prior art described above, and also performs multi-turn connectivity processing on the boundary of the divided detection field of view. [°] This is an image processing device capable of obtaining a pattern having connectivity with respect to the entire pressure of a target scene over a divided field of view.
以下に本発明の実施例を第6図な(・し第15図により
説明する。まず本実施例による)くターン・の連結性処
理方式につき第3図な(・し第7図を用いて説明する。An embodiment of the present invention will be explained below with reference to Figs. explain.
いま1つの検出視野%工TV画像などのようにたとえば
左から右へ、そして上から下にシーケンシャルに走査し
て検出され、そつの対象シーンの映像信号は2値化回路
により一定のクロックでサンプリングされて2値化され
・る。ついでこの2値信号によって形成される2値パタ
ーンの連結性はたとえば第3図(α)に示すような4連
結でも第6図(b)に示すよ5な8連結であっても、も
しくは他の連結性定義をとってもよい。なお第3図(α
)、(りの各正方形はサンプリングされる絵素を示して
おり、第3図・(α)は中央の着目絵素に対し、これと
同一の値の上下左右の4絵素は連結していると見なし、
第3図(h)は上下左右のほか斜め方向も含め8絵素が
連結していると見なすことを示している。Detection field of view%: Detection is performed by scanning sequentially from left to right and from top to bottom, such as in TV images, and the video signal of the target scene is sampled at a constant clock by a binarization circuit. and then binarized. Next, the connectivity of the binary pattern formed by this binary signal may be, for example, 4 connections as shown in FIG. 3(α), 5 connections as shown in FIG. 6(b), or other connections. The connectivity definition may be taken as follows. In addition, Fig. 3 (α
), (Each square represents a picture element to be sampled, and (α) in Figure 3 shows that the four picture elements on the top, bottom, left and right of the same value are connected to the center picture element. It is assumed that
FIG. 3(h) shows that eight picture elements are considered to be connected, including up, down, left and right, as well as diagonally.
つぎに第4図に閉曲線で示すような領域のノ(ターンは
上記のシーケンシャル走査による検出のさい、最初に左
上の凸部が出現したのち次に中央の凸部が出現し最後に
右上の凸部が出現するが、しかし各凸部が検出された時
点では3つの凸パターンが連結していることは未知であ
るから、各凸パターンには発生順にたとえばパター。Next, in the area shown by the closed curve in Fig. 4, the turn is detected by the sequential scanning described above, where the convex part in the upper left appears first, then the convex part in the center, and finally the convex part in the upper right. However, at the time when each convex part is detected, it is unknown that three convex patterns are connected, so each convex pattern has, for example, a putter in the order of occurrence.
ン番号α、bfが付されるが、またそれらの各バターン
の連結番号は同じくα、b、cと付される。・すなわち
パターンが弧立してし゛る時にはそのバ・ターンの連結
番号はそのパターンのパターン番・号そのものを付する
こととする。その後さらに・走査検出が進むと、パター
ンh(パターン番号・bのパターン)とCが連結してい
ることがわが・す、この時点でパターンCの連結番号は
更新さ・れてbが付される。すなわち2つのパターンが
・合流した時は、その時点でそれらのパターンの連結番
号は若い方の番号を付すこととする。しまたがってさら
に走査検出が進んで、パターンα・とbが合流した時点
で、パターンbとCの連結・番号はいずれもαとなる。The pattern numbers α and bf are assigned, and the concatenation numbers of those patterns are similarly assigned α, b, and c.・In other words, when a pattern stands in an arched pattern, the pattern number of the pattern itself should be used as the concatenation number of the pattern. After that, as the scanning detection progresses further, we find that pattern h (pattern number b) and C are connected.At this point, the connection number of pattern C is updated and b is added. Ru. In other words, when two patterns merge, the smaller number is assigned to the concatenation number of those patterns at that point. When the scanning detection further progresses and patterns α and b merge, the combination and number of patterns b and C both become α.
その後なお第4図の。After that, as shown in Fig. 4.
ようにパターンが走査検出中に分岐する場合は・あとか
ら検出される分岐パターンすなわち右側のパターンに新
たなパターン番号ことではdを。When a pattern branches during scanning detection, a new pattern number is added to the later detected branch pattern, that is, the pattern on the right.
付すこととし、このパターン−〇連結番号は同じくαで
ある。このようにして1つの検出視野。The pattern-〇 connection number is also α. Thus one detection field of view.
の連結性処理終了後に第4図のようなパターン。After completing the connectivity process, a pattern like that shown in Figure 4 appears.
の場合に同一の連結番号αのパターン(より正確にはバ
ターyの諸元)を抽出すれば弧立した・パターン全体(
パターン全体の諸元)をうるこ゛とができる。In this case, if we extract the pattern with the same linkage number α (more precisely, the specifications of butter y), we can extract the entire pattern (
The specifications of the entire pattern can be obtained.
ついで第5図は複数の分割検出視野におけるパターンを
例示したもので、プリント板のパターンを示している。Next, FIG. 5 shows an example of a pattern in a plurality of divided detection fields of view, and shows a pattern on a printed board.
このように大きなブ刃ント板上のパターンの微細な欠陥
を自動検査しようとする時などには、像検出器の解像度
の点などから複数の分割検出視野にせざるえないことが
生じる。すなわちこの第5図の例では大きな対・象シー
ン全体なAからFの6分割検出視野で検出している。こ
こで各検出視野の検出シーケン・スはA、B、C,D、
E、Fの順すなわち上から下ついで左から右にシーケン
シアルであると仮定する。When attempting to automatically inspect minute defects in patterns on such a large print board, it is necessary to use a plurality of divided detection fields due to the resolution of the image detector. That is, in the example shown in FIG. 5, the entire large object/target scene is detected using six divided detection fields A to F. Here, the detection sequence of each detection field of view is A, B, C, D,
Assume that the order of E and F is sequential from top to bottom and then from left to right.
このさい上記のパターン番号および連結番号はすべての
検出視野に対して一連番号を付すもの・とじ、また隣接
した検出視野境界にまたがるパターンのうち、上下の境
界にまたがるパターン・は第6図に例示するように上下
の検出視野A、Bテ同一のパターン番号a、h、cなど
を付することとし、また左右の境界にまたがるノくター
ンは第7図に例示するように左右の検出視野A、Dで別
々のパターン番号を付すこととする。このさく・なお第
7図の例で右の検出視野りを処理して(Sる時を考える
と、最初左上に)くターンカー出現した時そのパターン
にノくターン番号fとその連結番号fが付され、次に右
に出現した凸ノくターンにパターン番号9と七〇ノ(タ
ーンの連結番号tが付され、次にパターンfとびが合流
した時にパターンtの連結番号をfとし、次に左の検出
・視野のパターンαとこの)くターンfの接続カー終わ
る時にパターンfとびの連結番号が〜・ずれもパターン
αの連結番号αとなる。一方で次のノく・ターンIでは
最初その連結番号はLであるカ声、次に左の検出視野の
パターンCとこのノ(ターンIとの接続が終わる時にパ
ターンtの連結番号はパターンCの更新された連結番号
すとなり、次に左の検出視野のパターンbとこの)くタ
ーンIとの接続が終わる時にパターンlの連結番号すが
パターンbの連結番号すと比較され、ノ(りO−ンbと
lの連結番号すはそのままである。さらにパターンtで
は最初その連結番号はiであるが、パターンdとtが終
わる時に)くターンtの連結番号がパターンdの連結番
号dとなり、さらにパターンCとこのパターンtとの接
続が終わる時にパターン参とiの連結番号が比較され、
パターンeの連結番号eがパターンtの連゛結番号dに
変更される一方パターンtの連結番号dはそのままであ
る。したがって右の検出視野りの処理終了時点では、左
右の検出視野の境界にまたがる3つの孤立パターンは第
7図のようなパターン番号α〜tを持ち、その連結番号
はそれぞれα、b、dの6つとなる。 一つぎに上記の
連結性処理方式の機能を実現する本発明の一実施例を第
8図ないし第15図を用いて説明する。まず第8図は本
発明による画像処理装置の一実施例を示す全体構成ブロ
ック図である。第8図において、なお以下の説明では検
出視野の左から右へX方向として上から下へY方向とし
、X、Y の座標は全検出視野にわたって左上の最初の
分割検出視野の左上を原点と。In this case, the above pattern numbers and connection numbers are used to attach serial numbers to all detection fields of view, and among patterns that span adjacent detection field boundaries, patterns that span upper and lower boundaries are illustrated in Figure 6. The upper and lower detection fields of view A and B are given the same pattern numbers a, h, c, etc., so that the upper and lower detection fields of view A and B are assigned the same pattern numbers a, h, c, etc. , D are given different pattern numbers. In the example shown in Figure 7, when a turn car appears after processing the detection field on the right (when thinking about S, it will initially be in the upper left), the turn number f and its connection number f will be added to that pattern. Then pattern numbers 9 and 70 (turn concatenation number t are attached to the convex turn that appears on the right, and then when pattern f jumps merge, the concatenation number of pattern t is f, and the next At the end of the connection between the left detection/field of view pattern α and this turn f, the connection number of the pattern f skipping becomes the connection number α of the pattern α. On the other hand, in the next turn/turn I, the connection number is L at first, then pattern C in the left detection field and this connection number (when the connection with turn I ends, the connection number of pattern t is pattern C). Next, when the connection between pattern b in the left detection field of view and this) turn I is completed, the connection number of pattern l is compared with the connection number of pattern b, and The concatenation numbers of turn b and l remain the same.Furthermore, in pattern t, the concatenation number is i at first, but when patterns d and t end, the concatenation number of turn t becomes concatenation number d of pattern d. Then, when the connection between pattern C and this pattern t ends, the connection numbers of pattern reference and i are compared,
The connection number e of pattern e is changed to the connection number d of pattern t, while the connection number d of pattern t remains unchanged. Therefore, at the end of processing for the right detection field, the three isolated patterns spanning the boundaries of the left and right detection fields have pattern numbers α to t as shown in Figure 7, and their connection numbers are α, b, and d, respectively. There will be six. Next, an embodiment of the present invention that realizes the functions of the above connectivity processing method will be described with reference to FIGS. 8 to 15. First, FIG. 8 is a block diagram showing an overall configuration of an embodiment of an image processing apparatus according to the present invention. In Fig. 8, in the following explanation, the X direction is from left to right in the detection field of view, and the Y direction is from top to bottom. .
し、本実施例はX方向パターン検出部1と、X。However, in this embodiment, the X-direction pattern detection section 1 and the X-direction pattern detection section 1 are used.
方向パターン連結性処理部2と、Y方向パター。Direction pattern connectivity processing section 2 and Y direction putter.
ン検出部6と、Y方向境界パターン連結性処理゛部4と
、X方向パターンレジスタ5と、Y方向゛パターンレジ
スタ6と、パターン諸元レジスタ゛7と、レジスタ制御
部8から構成される。これ゛らによる処理内容は上記の
とおりであって、X゛方向パターン検出部1は2値信号
9から第4図。It consists of a pattern detection section 6 in the Y direction, a boundary pattern connectivity processing section 4 in the Y direction, a pattern register 5 in the X direction, a pattern register 6 in the Y direction, a pattern specification register 7, and a register control section 8. The processing contents by these are as described above, and the X direction pattern detection section 1 detects the binary signal 9 from the binary signal 9 in FIG.
および第6図のようなパターンのX方向走査線上のパタ
ーンを検出し、X方向パターン連結性処理部2はそれら
のX方向走査線上のパターン゛の上記連結性処理を行う
一方、Y方向パターン検出部3は2値信号9から第7図
のような検出。The X-direction pattern connectivity processing section 2 detects the patterns on the X-direction scanning lines of the patterns shown in FIG. The section 3 detects the binary signal 9 as shown in FIG.
視野のY方向境界におけるパターンを検出し、Y方向境
界パターン連結性処理部4はそれらのY方向境界におけ
るパターンの上記の連結性処理を行う機能を有するほか
、X方向パターンレジスタ5とY方向パターンレジスタ
6とパターン諸元レジスタ7とレジスタ制御部8は上記
連゛結性処理などに必要なパターン情報の保存やそ。The Y-direction boundary pattern connectivity processing unit 4 has the function of detecting patterns at the Y-direction boundaries of the field of view, and performing the above-mentioned connectivity processing of the patterns at these Y-direction boundaries. The register 6, pattern specification register 7, and register control unit 8 are used to store pattern information necessary for the above-mentioned connectivity processing.
の制御などを行うものである。It is used to control, etc.
第9図は第8図の実施例のX方向の連結性処理を行う部
分をなすX方向パターン検出部1と。FIG. 9 shows an X-direction pattern detecting section 1 which is a part of the embodiment shown in FIG. 8 that performs connectivity processing in the X-direction.
X方向パターン連結性処理部2とX方向パターンレジス
タ5とパターン諸元レジスタ7とレジスタ制御部8を含
む部分の詳細な構成を例示す。A detailed configuration of a portion including the X-direction pattern connectivity processing section 2, the X-direction pattern register 5, the pattern specification register 7, and the register control section 8 is illustrated.
るブロック図である。第9図は2値信号9とX゛方向走
査クロック10を入力とし、X座標発生回路11.パタ
ーンの開始点Xs 、終了点)(gをそれぞ□れ検出す
るXe検出回路12.X−検出回路16.ごのX、r、
Xgの現在値をそれぞれ保存するXeレジスタ14.X
eレジスタ15.新パターン番号を保存すル新パターン
番号レジスタ16.パターン番号の現在値を保存する現
パターン番号レジスタ17.“゛パターン連結性判定回
路18.パターン更新回路19、新パターン設定回路2
09分岐パターン設定回路21.パターン結合回路22
,1つ前のX方向走査線におけるパターン情報のそれぞ
れを保存しているX5レジスタ23.1〜23.n 、
Xtレジスタ゛24.1〜24.n 、パターン番号
レジスタ25.1〜’25、n、連結番号レジスタ26
.1〜26.n 、)くター。FIG. In FIG. 9, a binary signal 9 and an X direction scanning clock 10 are input, and an X coordinate generation circuit 11. pattern start point Xs, end point) (Xe detection circuit 12.X-detection circuit 16.X, r,
Xe registers 14, each storing the current value of Xg. X
e-register 15. New pattern number register 16. Saves the new pattern number. Current pattern number register 17 for storing the current value of pattern number. “゛Pattern connectivity determination circuit 18, pattern update circuit 19, new pattern setting circuit 2
09 Branch pattern setting circuit 21. Pattern combination circuit 22
. n,
Xt registers 24.1 to 24. n, pattern number register 25.1 to '25, n, concatenation number register 26
.. 1-26. n,) Kutar.
ン諸元(その−例として面積)レジスタ27.1゜〜2
7.fL、現在のX方向走査において各ノくシーン番号
のパターン情報に変更があったかどうかダ゛記録するX
htbsyレジスタ28.1〜28.7L 、バター。Register 27.1°~2
7. fL, record whether there is a change in the pattern information of each scene number in the current X direction scan
htbsy register 28.1-28.7L, butter.
ン諸元出力回路29から構成される。ここでXs、’X
eは第10図に例示するよりなX方向走査線上に゛順次
出現するパターンの各開始点、終了点であ。The output circuit 20 is composed of a key specification output circuit 29. Here Xs, 'X
e is each start point and end point of a pattern that appears sequentially on the X-direction scanning line illustrated in FIG. 10.
す、また各レジスタ23.1〜2!1.71ないし28
.1〜2B、nの符号1〜rLは各パターン番号1〜ル
に゛対応するレジスタを意味している。Also, each register 23.1 to 2!1.71 to 28
.. The symbols 1-rL of 1-2B and n mean registers corresponding to each pattern number 1-R.
この構成で、撮像装置から2値化回路を介じてえられる
対象シーンの2値信号9は、X方向走査クロック10に
よりX座標発生回路11でめ−られるX座標信号ととも
にXQ、Xe検出回路12.13に入力される。これよ
りXe、Xe検出回路12,13“は第10図のような
走査線上のパターンの各開始点Xs、終了点Xgを検出
して、その座標値を各X」Xeレジスタ14,151c
保存する。ついでパターン連結性判定回路18は終了点
)(gが検出された時点でこの情報により起動し、Xx
、Xeレジスタ14.15からの現パターンの開始点X
F、終了点Xeを1つ前の走査線における各パターンの
Xs、Xsを保存している各X、5ルジスタ23.1〜
25.n 、 Xgレジス−タ24.1〜24.nから
の抱、Xeとを比較照合する。゛このさい走査線上の検
出されたXs、’)(tの現)くターンと1つ前の走査
線上のパターンとの連結状−態の関係は第11図(a)
ないしく−)に例示するような5種類に分類できる。す
なわち(a)現ノく夕゛−ンは新しく出現したバタンで
ある(これを新パターンと呼ぶ)、(b)現ノくターン
は1つ前の走査線上の1つのパターンと連結している(
゛単連結と呼ぶ) 、 (C)現パターンは1つ前の走
査線上の1つのパターンに連結しているが後者のパター
ンは現在走査中の走査線上の過去のノくターンとも連結
している(分岐と呼ぶ) 、 (d)゛現パターンは1
つ前の走査線上の複数のパター・ンと連結している(結
合と呼ぶ) 、 (e)現在の走査線の走査終了時点で
1つ前の走査線上のバ′ターンの中に連結しているパタ
ーンがナカった(終了と呼ぶ)の5種類である。よって
連結性判定回路18は上記の走査線上の現パターンのX
JPXeと1つ前の走査線上の各パターンのXs、Xg
ヲ照合することによりこれら5種類の連結状態を識別し
、以下各連結状態に対応する回路にその処理を指令する
。なお1つのX方向走査の開始時点でXbusyレジス
タ28.1〜28.iはゼロクリアしておく。まず第1
0図(α)の新パターンの時には、これまでの新パター
ンのパターン番号を保存、している新パターン番号レジ
スタ16の値を1つ増加させ、いまの新パターンのパタ
ーン番号と、する。これと同時に新パターン設定回路2
゜に起動をかけるとともに、現パターン番号レジスタ1
7に新パターン番号レジスタ16の値を転送する。する
と新パターン設定回路2oは新パターン番号レジスタ1
6の新パターン番号(仮りにm。With this configuration, the binary signal 9 of the target scene obtained from the imaging device via the binarization circuit is transmitted to the XQ, Xe detection circuit together with the X coordinate signal determined by the Entered on 12.13. From this, the Xe and Xe detection circuits 12 and 13'' detect each starting point Xs and ending point Xg of the pattern on the scanning line as shown in FIG.
save. Then, the pattern connectivity determination circuit 18 is started based on this information when g is detected (end point), and Xx
, starting point X of the current pattern from Xe register 14.15
F, each X, 5 register that stores Xs, Xs of each pattern in the scanning line immediately before the end point Xe 23.1~
25. n, Xg registers 24.1-24. Compare and check the hold from n and Xe. The relationship between the connected state of the detected Xs,') (currently t) pattern on the scanning line and the pattern on the previous scanning line is shown in Figure 11(a).
It can be classified into five types as exemplified by (-). That is, (a) the current pattern is a newly appeared pattern (this is called a new pattern), (b) the current pattern is connected to a pattern on the previous scanning line. (
(C) The current pattern is connected to one pattern on the previous scanning line, but the latter pattern is also connected to the past pattern on the scanning line currently being scanned. (called branching), (d) ゛Current pattern is 1
Connected with multiple patterns on the previous scanning line (called merging), (e) Connected within the pattern on the previous scanning line at the end of scanning of the current scanning line. There are 5 types of patterns: nakata (called termination). Therefore, the connectivity determination circuit 18 determines the X of the current pattern on the above scanning line.
JPXe and Xs, Xg of each pattern on the previous scanning line
By comparing these, these five types of connection states are identified, and the processing is then instructed to the circuit corresponding to each connection state. Note that at the start of one X direction scan, the Xbusy registers 28.1 to 28. Clear i to zero. First of all
In the case of the new pattern shown in FIG. 0 (α), the value of the new pattern number register 16, which stores the pattern number of the previous new pattern, is incremented by one and becomes the pattern number of the current new pattern. At the same time, new pattern setting circuit 2
゜ and current pattern number register 1.
The value of the new pattern number register 16 is transferred to 7. Then, the new pattern setting circuit 2o sets the new pattern number register 1.
6 new pattern number (temporarily m.
とする)とXs、Xtの現在値を保存するXz、Xgレ
ジスタ14,15の新パターンのXz、XsO値をもと
に、1つ前の走査線上のパターン情報を保存す・るXJ
L/ジスタ25.m1CX!、Xe L/レジスタ4.
mVCXe。XJ to save the pattern information on the previous scanning line based on the Xz and XsO values of the new pattern in the Xz and Xg registers 14 and 15.
L/Jista25. m1CX! , Xe L/Register 4.
mVCXe.
パターン番号レジスタ250mにm、連結番号レジ゛ス
タ26.m IC77L、 パターン諸元(面積)レジ
スタ27、m’VCXg −XyO’)各値ヲセリトン
、ソシテXbLL!yレジスタ2日、翼に1 (bu、
zy)をセットする。また(A)の単連結の時には、パ
ターン更新回路19に起動をかげるとともに、1つ前の
走査線上のパ“ターンとしてパターン番号1〜nのトノ
バター。m in pattern number register 250m, concatenation number register 26. m IC77L, pattern specifications (area) register 27, m'VCXg-XyO') each value value, socite XbLL! y register 2 days, wing 1 (bu,
zy). In addition, in the case of the single connection in (A), the pattern update circuit 19 is activated and the pattern numbers 1 to n are used as the pattern on the previous scanning line.
ン(仮りにパターン番号lとする)と連結していたかを
通知する。するとパターン更新回路19はこのパターン
番号lとXi、Xtレジスタ14,15のXx、Xgを
もとに、パターン諸元(面積)レジスタ27.lの面積
を呼び出しこれにXs −X、?の値を加えて同レジス
タ27.1!にセットするほか、Xsレジスタ25 、
j’にXs 、 Xtレジスタ24.I!にXgの各位
をセットし、また’)(htbsyレジスタ28.1!
に1をセットし、かつ現パターン番号レジスタ17にパ
ターン番号lをセットする。また(c)の分岐の時には
、分岐パターン設定回路21に起動をが亡るとともに、
パターン番号1〜rLのどのどのパターン(仮りにパタ
ーン番号4とする)と連結していたかを通知し、さらに
新パターンレジスタ16の値を1つ増加させる(仮りに
この新パターン番号をm′とする)。すると分岐パター
ン設定回路21はXIレジスタ230m’ ic Xs
、Xsレジスタ24−′にXg、パターン番号レジスタ
25.m’に扉′の各位をセットし、パターン諸元(面
積)レジスタ27.m’にXs −Xeの値を加え、さ
らに連結番号レジスタ26.4の値を読み取って連結番
号レジスタ26.m’にその値をセットする。また、C
d)の結合の時には、パターン結合回路22に起動をか
けるとともに、結合したパターンのパターン番号を通知
する(仮りにパターン番号j1〜jiとする)。すると
パターン結合回路22はパターン番号j+−戸のうち最
小値のものたとえばパターン番号j4を抽出し、この一
番若いパターン番号7Aを現パターン番号として現パタ
ーン番号レジスタ17にセットするとともに、連結番号
レジスタ26.7Aの値を読み取ってパターン番号7A
以外のパターン番号j1〜ji (j−4を除く)に対
応する連結番号レジスタ26.j1〜ハ(μを除<LK
連結番号レジスタ26 、 iAO値をセットし、かつ
Xsレジスタ25.J−A VcXs、Xt vラスタ
24、jA K Xs、 Xhwsy vシスタvc
1)各値ヲセリトン、さらにパターン諸元(面積)レジ
スタ27、μの値を読み出しこれにXs −Xsの値ヲ
加えて同レジスタ27.7Aにセットする。またC−)
のパターンR了の時には何もしない。以上で1つのX方
向走査の終了時に、パターン諸元出力回路29は連結番
号レジスタ26.1〜26.nのうち同一の連結番号を
有し、かっXbusyレジスタ28.1〜28.nで値
0 (not busy ) 、後述のY方向処理のY
Lhtyyレジスタ44.1〜44.nとYRAary
レジスタ47.1〜47.nで値o(ルotbtL、?
y)テするパターンを捜し、これが存在する場合にはそ
のパターンは連結性処理を終了したパターンであるので
、その連結番号とパターン諸元(本実施例では面積)を
たとえば後段の認識処理部(図示していない)に出力し
てパターンの認識や検査を行うことができる。It is notified whether the pattern is connected to the pattern number (temporarily assumed to be pattern number l). Then, the pattern update circuit 19 updates the pattern specifications (area) register 27. Call the area of l and give it Xs −X,? Add the value of the same register 27.1! In addition to setting Xs register 25,
Xs to j', Xt register 24. I! Set each part of Xg to ')(htbsy register 28.1!
is set to 1, and the pattern number l is set to the current pattern number register 17. In addition, at the time of branching (c), the branch pattern setting circuit 21 loses its activation, and
It notifies which pattern among pattern numbers 1 to rL (temporarily assumes pattern number 4) that the pattern is connected, and further increases the value of the new pattern register 16 by one (temporarily sets this new pattern number as m'). do). Then, the branch pattern setting circuit 21 selects the XI register 230m'ic
, Xg in the Xs register 24-', pattern number register 25. Set each part of the door' in m', and register the pattern specifications (area) register 27. Add the value of Xs - Xe to m', read the value of the concatenated number register 26.4, and read the value of the concatenated number register 26.4. Set that value in m'. Also, C
At the time of combination d), the pattern combination circuit 22 is activated and the pattern number of the combined pattern is notified (temporarily assume pattern numbers j1 to ji). Then, the pattern combination circuit 22 extracts the minimum value of pattern numbers j+-, for example, pattern number j4, and sets this smallest pattern number 7A as the current pattern number in the current pattern number register 17, and also sets it in the concatenated number register. Read the value of 26.7A and get pattern number 7A.
Concatenation number register 26 corresponding to pattern numbers j1 to ji (excluding j-4) other than j1 to ji (excluding j-4). j1~c (excluding μ<LK
Concatenation number register 26, sets the iAO value, and sets the Xs register 25. J-A VcXs, Xt v raster 24, jA K Xs, Xhwsy v sister vc
1) Read out each value and the value of μ in the pattern specification (area) register 27, add the value of Xs - Xs thereto, and set it in the same register 27.7A. Also C-)
When the pattern R ends, do nothing. At the end of one X-direction scan, the pattern specification output circuit 29 outputs the connection number registers 26.1 to 26.1. Xbusy registers 28.1 to 28.n that have the same concatenation number. Value 0 (not busy) at n, Y in Y direction processing described later
Lhtyy registers 44.1-44. n and YRAary
Registers 47.1-47. n with value o(leotbtL,?
y) Search for a pattern to be tested, and if it exists, it is a pattern for which connectivity processing has been completed, and its connectivity number and pattern specifications (area in this example) are sent to the subsequent recognition processing unit ( (not shown) for pattern recognition and inspection.
また、第6図のような上下の検出視野の境界における連
結性処理については、上記の第9図のX方向連結性処理
を行う部分をそのまま用いて、1つ上の検出視野Aの一
番下のX方向走査線における各Xy、Xgパターン番号
、連結番号、パターン諸元(面積)、xbttIyレジ
スタ23.1〜23、yL、 24.1〜24.n 、
25.1〜25.rL、 26.1〜26、n 、
27.1〜27.n、 28.1〜2B、n の値をも
とに1つ下の検出視野Bの一番上のX方向走査線上のパ
ターンの連結性処理を上述の手順で行へばよく、これに
より上下の隣接した検出視野の境界上での連結性を保存
できる。一方、第12図は第7図のような左右の検出視
野の境界における連結性処理を行うための第8図の実施
例のY方向の連結性処理を行う部分をなすY方向パター
ン検出部3とY方向境界パターン連結性処理部4とY方
向パターンレジスタ6とレジスタ制御部8を含む部分の
詳細な構成を例示するブロック図である。すなわち第1
2図は2値信号9とY方向クロック50を入力とし、Y
座標発生回路31、検出視野の左側境界にパターンがか
かり始める位置を示す開始点’(LSを検出するYLs
検出回路32.同じくパターンがかかり終わる位置を示
す終了点YLaを検出する’(Lt検出回路63.検出
視野の右側境界にパターンがかかり始める位置を示す開
始点Y#; 、同じくかがり終わる位置を示す終了点’
(ngをそれぞれ検出する’(As検出回路34. Y
R−検出回路35.これらの処理中検出視野の境界上の
検出されたパターン情報のYLs。Regarding the connectivity processing at the boundary between the upper and lower detection fields of view as shown in Fig. 6, the part that performs the X-direction connectivity processing in Fig. 9 above is used as is, and the Each Xy in the lower X direction scanning line, Xg pattern number, connection number, pattern specifications (area), xbttIy registers 23.1 to 23, yL, 24.1 to 24. n,
25.1-25. rL, 26.1-26, n,
27.1-27. Based on the values of n, 28.1 to 2B, n, the connectivity process for the pattern on the topmost X-direction scanning line of the detection field of view B one below can be performed using the above-mentioned procedure. The connectivity on the boundaries of adjacent detection fields of view can be preserved. On the other hand, FIG. 12 shows a Y-direction pattern detection unit 3 which is a part that performs connectivity processing in the Y-direction of the embodiment shown in FIG. 2 is a block diagram illustrating a detailed configuration of a portion including a Y-direction boundary pattern connectivity processing section 4, a Y-direction pattern register 6, and a register control section 8. FIG. That is, the first
In Figure 2, the binary signal 9 and the Y direction clock 50 are input, and the Y
Coordinate generation circuit 31, starting point '(YLs for detecting LS) indicating the position where the pattern starts to be applied to the left boundary of the detection field of view.
Detection circuit 32. Similarly, the end point YLa indicating the position where the pattern ends is detected (Lt detection circuit 63. Starting point Y# indicating the position where the pattern starts to be applied to the right boundary of the detection field of view; similarly, the end point YLa indicating the position where the pattern ends)'
(Detect ng respectively'(As detection circuit 34. Y
R-detection circuit 35. YLs of detected pattern information on the boundaries of these processing detection fields of view.
YLg、YL8.YReの値をそれぞれ保存するYra
s 、Yi 。YLg, YL8. Yra to save each value of YRe
s, Yi.
’ins、YReレジスタ36,57.3B、39.Y
方向境界連結性判定回路40.連結番号更新回路41.
Y方向左側境界に係るyRレジスタ設定回路42.Y方
向境界に係るYレジスタ転送回路43.Y方向の左側境
界に係るYL、上記のYLs、’(r、g、’Ot、Y
Rs、YR−の値をそれぞれ保存する’(Lbu♂yレ
ジスタ44゜1〜44.n’(LSレジスタ45 m
1〜45 a n t YLeレジスタ46.1〜46
* n s YL16 Wsyレジスタ47.1〜4
7.W、 YESレジスタ48.1〜4B、n、 YR
g レジスタ49.1〜49、nから構成されるほか、
第10図と共通の新パターン番号レジスタ16.現パタ
ーン番号レジスタ17.連結番号レジスタ26.1〜2
6.nを使用する。'ins, YRe register 36, 57.3B, 39. Y
Direction boundary connectivity determination circuit 40. Concatenation number update circuit 41.
yR register setting circuit 42 related to the left boundary in the Y direction. Y register transfer circuit 43 related to Y direction boundary. YL related to the left boundary in the Y direction, the above YLs, '(r, g, 'Ot, Y
Save the values of Rs and YR- respectively' (Lbu♂y register 44°1 to 44.n' (LS register 45m
1 to 45 a n t YLe register 46.1 to 46
*n s YL16 Wsy register 47.1~4
7. W, YES register 48.1-4B, n, YR
In addition to consisting of registers 49.1 to 49 and n,
New pattern number register 16 common to FIG. Current pattern number register 17. Concatenation number register 26.1-2
6. Use n.
この構成によるY方向連結性処理は検出視野の左右のY
方向境界における第13図および第14図に例示するよ
うなパターンの左側開始点’(LS。The Y-direction connectivity processing with this configuration is
The left starting point of the pattern as illustrated in FIGS. 13 and 14 at the direction boundary' (LS).
終了点YLg 、右側開始点Yns 、終了点’(n−
をもつパターンに係る隣接検出視野との連結性を保存す
るための処理であって、検出視野のX方向走査の最初と
最後の絵素についてのみ行うものである。すなわち対象
シーンの2値信号9はY方向クロック30からY座標発
生回路31によりY座標値に変換されたY座標信号とと
もに入力され、各Yr、、s 、 YLa 、Yns
、YneRe検出回路323,34.35でそれぞれ第
13図および第14図のようなYLs。End point YLg, right start point Yns, end point'(n-
This is a process for preserving connectivity with adjacent detection fields of view related to a pattern with , and is performed only for the first and last picture elements of the X-direction scan of the detection field of view. That is, the binary signal 9 of the target scene is input from the Y direction clock 30 together with the Y coordinate signal converted into a Y coordinate value by the Y coordinate generation circuit 31, and each Yr, s, YLa, Yns
, YLs as shown in FIGS. 13 and 14 in the YneRe detection circuits 323, 34, and 35, respectively.
YLa、YL8.Yllgの値を検出し、それぞれYj
S、Yz+g。YLa, YL8. Detect the value of Yllg, respectively Yj
S, Yz+g.
YR,9、’(Reレジスタ36,37.38.59に
+ ツサされる。YR, 9,' (+ is sent to Re registers 36, 37, 38, 59.
ついで検出視野の右側境界における連結性処理について
説明すれば、上記’(Re検出回路35で右側境界のパ
ターンの終了点’(ngが検出された時点で、その情報
によりYRレジスタ設定回路42が起動される。すると
yRレジスタ設定回路42はそのパターンのパターン番
号(仮りにPとする)を現パターン番号レジスタ17を
参照することにより知って、その右側境界のパターンの
開始点’(BSがすでにYRSレジスタ48.pレジス
タ4B、、pに設定されているかどうかをチェックし、
チェックの結果もし’(Rsが設定されていなければ第
13図の右側境界のパターンのようにあるパターン番号
(F)をもつパターンがはじめて右側境界にかかったこ
とを意味するので、YRSレジスタ48.1に’(R8
,’(Reレジスタ49.1に、’(Rt、 YRbu
syレジスタ47.1に1の値をそれぞれセットする。Next, to explain the connectivity processing at the right boundary of the detection field of view, when the above-mentioned '(Re detection circuit 35 detects the end point of the pattern at the right boundary' (ng), the YR register setting circuit 42 is activated based on that information. Then, the yR register setting circuit 42 learns the pattern number (temporarily P) of that pattern by referring to the current pattern number register 17, and knows the starting point of the pattern on the right boundary (BS has already set YRS). Check whether register 48.p is set in register 4B,, p,
As a result of the check, if '(Rs is not set), it means that a pattern with a certain pattern number (F), such as the pattern on the right boundary in FIG. 13, has crossed the right boundary for the first time. 1 to' (R8
,'(Re register 49.1 contains '(Rt, YRbu
A value of 1 is set in each sy register 47.1.
一方チェックの結果もしYL8がすでにセットされてい
れば第14図のように同じパターン番号(P)をもつパ
ターンがすでに右側境界にがかっている場合を意味して
いて1つのパターン番号(F)のパターンが複数の値の
YL8.’lReをもっことになるので、この境界に仮
想的なパターン番号(fPとする)をふってそこに’(
R3,YRgをセットするとともにその連結番号には本
来のパターン番号Pのパターンの連結番号を付するよう
に新パターン番号レジスタ16の値を1つ増加させてそ
の値(g、)をもとに’7BSレジスタ4B、g、にY
R8゜’(ng vジメタ49.g−VCYRe、YR
huzy レジスタ474VC1、連結番号レジスタ2
6.g、に連結番号レジスタ26、pの値をそれぞれセ
ットする。なお上記のYRhμsyレジスタ47.1〜
47.1は左上の最初の検出視野を処理する前にゼロク
リアしておく。こうして上記の右側境界におけるY方向
連結性処理は上から下に複数の検出視野を処理してゆく
間に連結して行う。そして次に右上の検出視野に処理が
移動する時点で、Yレジスタ転送回路43によりYRh
tbsyレジスタ47.1〜47.Wの内容をYL b
usyレジスタ44.1〜44.ルに、’(RSレジス
タ48.1〜’4F3.nの内容を’(r、sレジスタ
45.1〜45.3に、YReレジスタ49.1〜49
.nの内容を’(Lmレジスタ46.1〜46.nにそ
れぞれ転送し、YRhazyレジスタ47.1〜47.
n、 、 Ynsレジスタ48.1〜48.1L、 Y
Rtレジスタ 49.1〜49.nをゼロクリアする。On the other hand, as a result of the check, if YL8 is already set, it means that a pattern with the same pattern number (P) is already on the right border as shown in Figure 14, and one pattern number (F) is YL8. whose pattern has multiple values. 'lRe will be used more, so assign a virtual pattern number (let's call it fP) to this boundary and add '(
Set R3 and YRg, and increase the value of the new pattern number register 16 by one so that the concatenation number of the pattern with the original pattern number P is attached to the concatenation number, and based on that value (g,) '7BS register 4B, g, Y
R8゜' (ng v dimeta 49.g-VCYRe, YR
huzy register 474VC1, concatenation number register 2
6. The values of the concatenation number register 26 and p are set in g and p, respectively. Note that the above YRhμsy registers 47.1~
47.1 is cleared to zero before processing the first detection field of view on the upper left. In this way, the above-mentioned Y-direction connectivity processing at the right boundary is performed in a connected manner while processing a plurality of detection fields of view from top to bottom. Then, when the processing moves to the upper right detection field of view, the YRh
tbsy registers 47.1-47. The contents of W are YL b
usy registers 44.1-44. '(RS registers 48.1 to '4F3.n contents to '(r, s registers 45.1 to 45.3, YRe registers 49.1 to 49
.. Transfer the contents of '(Lm registers 46.1 to 46.n, respectively) and transfer the contents of YRhazy registers 47.1 to 47.n.
n, , Yns registers 48.1 to 48.1L, Y
Rt register 49.1-49. Clear n to zero.
すなわち、この右側境界の’(R8,’(R#’(E
buz、yの情報は右隣の検出視野では左側境界の各Y
Ls、YLg、YL busyの情報として使用する。That is, '(R8,'(R#'(E
buz, y information is for each Y on the left boundary in the detection field of view on the right.
Used as information for Ls, YLg, and YL busy.
なお、ここでは各’(Rj8¥Re、YRhuIyレジ
スタ48゜49.47の内容を転送する例を示したが、
これらの内容を転送しな(ともレジスタのポインタを切
り換えるものであってもよい。つぎに検出視野の左側境
界における連結性処理について説明すれば、上記’(L
g検出回路53で左側境界のパターンの終了点YLeが
検出された時点で、その情報によりY方向境界連結性判
定回路40が起動される。するとY方向境界連結性判定
回路40は検出された上記YLS、YL@の値と隣の処
理ずみ検出視野からえたパターン情報を保存している’
(r、sレジスタ45.1〜45.n 、 Yiレジス
タ46.1〜46、nの各YLS、’(LtO値をそれ
ぞれ比較照合する。Note that here we have shown an example of transferring the contents of each '(Rj8\Re, YRhuIy register 48°49.47,
These contents may not be transferred (or the register pointer may be switched). Next, we will explain the connectivity processing at the left boundary of the detection field of view.
When the g detection circuit 53 detects the end point YLe of the left boundary pattern, the Y-direction boundary connectivity determination circuit 40 is activated based on that information. Then, the Y-direction boundary connectivity determination circuit 40 stores the detected values of YLS and YL@ and the pattern information obtained from the adjacent processed detected field of view.
(R, s registers 45.1 to 45.n, Yi registers 46.1 to 46, n YLS,'(LtO values are compared and verified, respectively.
とのさい検出視野の検出された左側境界におけるパター
ンと左隣の処理ずみ検出視野の右側境界におけるパター
ンとのY方向の連結状態の関係は第15図(α)ないし
く−)に例示するような5種類に分類できる。すなわち
、これらはさきに第11図について上述したX方向走査
における連結状態を示す5種類の分類と本質的に同一で
あって、第15図の(α)新パターン、(b)単連績。The connection state relationship in the Y direction between the pattern at the detected left border of the detection field of view and the pattern at the right border of the processed detection field of view adjacent to the left is illustrated in FIG. 15 (α) to -). It can be classified into five types. That is, these are essentially the same as the five types of classifications indicating the connection state in the X-direction scan described above with respect to FIG. 11, and are (α) new pattern and (b) single continuous pattern in FIG.
(C)分岐t (cL)結合、(a)終了と呼ぶことと
する。なお(g)終了はY方向境界連結性判定回路40
では検出されず、同回路40は(α)ないしくd)のい
ずれかを判定して、この判定結果を関連情報とともに連
結番号更新回路41に通知する。すると連結番号更新回
路41では1判定結果が(a)新パターンの場合はその
パターンの終了点Y14より上のすなわちより小さい値
のYLeをYLCレジスタ46.1〜46.nより捜し
て、そのYL busyレジスタ44をゼロクリアする
。また(5)単連績の場合は左隣の検出視野のパターン
のパターン番号がp、右の検出されたパターンのパター
ン番号が?(第15図(b)参照)であれば、連結番号
レジスタ26.1と26.fFの値を比較して大きい方
の値を小さい方の値に書き換え、そして検出されたバタ
←ンの終了点YLεより小さい値のYL。(C) Branch t (cL) Connection, (a) Termination. Note that (g) the end is the Y-direction boundary connectivity determination circuit 40.
However, the circuit 40 determines either (α) or d) and notifies the concatenation number update circuit 41 of this determination result together with related information. Then, in the case where the 1 judgment result is (a) a new pattern, the concatenation number update circuit 41 stores YLe above the end point Y14 of the pattern, that is, a smaller value, in the YLC registers 46.1 to 46. n, and clear the YL busy register 44 to zero. Also, (5) in the case of a single continuous pattern, the pattern number of the pattern in the detected field of view on the left is p, and the pattern number of the detected pattern on the right? (See FIG. 15(b)), the concatenation number registers 26.1 and 26. The values of fF are compared and the larger value is rewritten to the smaller value, and the value YL is smaller than the detected end point YLε of the butterfly.
ヲ有スるYLbLLSyレジスタ44をゼロクリアする
。The existing YLbLLSy register 44 is cleared to zero.
また(C)分岐の場合は右の個々のパターンの終了点’
(Lgが検出されるたびに上記(b)単連績の処理を行
う。また(d)結合の場合は左隣の検出視野の複数個の
パターン(たとえばパターン番号P、?)の連結番号と
右の検出されたパターン(パターン番号r)の連結番号
を比較し、そのうちの最も小さい値の連結番号を左隣の
複数個のパターンと右の検出されたパターンの連結番号
レジスタ26.p、26.f、26.7にセットし、そ
して検出されたパターンの終了点YL6より小さい値の
YLIを有するYL btLsyレジスタ44をゼロク
リアする。さらに1つの検出視野の下端(Yg+zdと
する)に達した時点で、Yendより小さい値のYL、
を有するYL buryレジスタ44をゼロクリアする
。以上の処理により左右の検出視野境界にまたがるパタ
ーンに同一の連結番号を付し、左右の検出視野境界での
連結性が保存される。(C) In the case of a branch, the end point of each pattern on the right'
(Each time Lg is detected, the above (b) single consecutive process is performed. Also, in the case of (d) combination, the concatenated number of multiple patterns (for example, pattern number P, ?) in the detection field of view on the left The concatenation numbers of the right detected pattern (pattern number r) are compared, and the concatenation number of the smallest value is transferred to the concatenation number registers 26.p, 26 of the plural patterns on the left and the concatenation numbers of the right detected patterns. .f, set to 26.7, and zero-clear the YL btLsy register 44 having a YLI value smaller than the end point YL6 of the detected pattern.Furthermore, when the lower end of one detection field of view (assumed to be Yg+zd) is reached. Then, YL with a smaller value than Yend,
Clear the YL bury register 44 with zero to zero. Through the above processing, the same connection number is attached to the patterns spanning the left and right detection field boundaries, and the connectivity at the left and right detection field boundaries is preserved.
なお以上の実施例ではパターン諸元としては面積のみを
例示したが、このほか周囲長、骨格線長さ、外接長方形
座標など任意のノ(ターン情報を選ぶことができ、それ
らの個々に)くターン諸元(面積)レジスタ27.1〜
27.nと同様のレジスタを用意すればよい。以上のよ
うに本実施例では、1つの検出視野について対象シーン
の2値信号から走査線上のノくターンの情報(ツクター
ン開始点、終了点)を検出するとともにそれらのパター
ンとその1つ前の走査線上のノ(ターンと連結している
か否かを検出する第1の手段とこの第1の手段によって
検出された各)くターンに対してパターン番号と各ノ(
ターン間の連結性を示す連結番号を与えるとともにその
)くターンの諸元(パターンの面積2輪郭長さなど)を
抽出する第2の手段と、この第2の手段によって与えら
れた連結番号が同一のノくターンについてそのパターン
の諸元を合成する第3の手段からなる従来の連結性処理
を施す画像処理装置において、隣接する処理ずみ検出視
野と処理中検出視野との検出視野境界における処理ずみ
検出視野からえたパターン情報(境界上のパターンの開
始点、終了点、パターン番号、連結番号。In the above embodiments, only the area is illustrated as a pattern specification, but in addition, any other parameters (turn information can be selected and can be entered individually) such as perimeter length, skeleton line length, circumscribed rectangle coordinates, etc. Turn specifications (area) register 27.1~
27. It is sufficient to prepare a register similar to n. As described above, in this embodiment, the information on the turns on the scanning line (turn start point, end point) is detected from the binary signal of the target scene for one detection field of view, and the information on those patterns and the previous one is detected. The pattern number and each node (the first means for detecting whether or not it is connected to a turn and each node detected by this first means) on the scanning line are
A second means for giving a connection number indicating the connectivity between turns and extracting the specifications of the turns (area, contour length, etc. of the pattern), and the connection number given by this second means is In an image processing apparatus that performs conventional connectivity processing that includes a third means of composing the specifications of patterns for the same nokturn, processing at the detection field boundary between the adjacent processed detection field of view and the processing detection field of view is performed. Pattern information obtained from the distortion detection field of view (starting point, ending point of the pattern on the boundary, pattern number, concatenation number).
パターン諸元)を保存する第4の手段と、この第4の手
段の内容と処理中検出視野で上記境界に達するパターン
の情報とを照合して連結番号を更新するとともにパター
ン諸元を合成する第5の手段と、将来処理される検出視
野とp処理中検出視野の検出視野境界におけるパターン
情報を蓄積する第6の手段と、この第6の手段の内容を
処理中検出視野の処理が終了して上記将来処理される検
出視野に処理が移動する時点で上記第4の手段に与える
パターン情報に切り替える第7の手段を設げることによ
り、上記第3と第5の手段で合成されたパターン諸元を
もって複数の検出視野に分割して検出された対象シーン
全体に対し連結性を有するパターン諸元としてうろこと
ができる。a fourth means for storing (pattern specifications); the contents of this fourth means are compared with the information of the pattern that reaches the boundary in the detection field of view during processing to update the concatenation number and synthesize the pattern specifications; a fifth means, a sixth means for accumulating pattern information at the detection field boundary of the detection field of view to be processed in the future and the p-processing detection field of view, and the processing of the detection field of view currently being processed ends By providing a seventh means for switching to the pattern information to be given to the fourth means at the time when processing moves to the detection field of view to be processed in the future, The pattern specifications can be divided into a plurality of detection fields and can be used as pattern specifications having connectivity for the entire detected target scene.
また上記実施例ではパターンの連結性処理結果を連結番
号とパターン諸元で出力する場合を例示したが、パター
ン自動認識装置や自動検査装置においては連結性処理を
したパターンな出力する必要がある場合があるが、これ
を実現するには上記X方向走査においてノくターン終了
点Xtが検出されて連結性処理がなされた時点で、その
パターンのパターン番号な現ノくターン番号レジスタ1
7からそしてXs、Xg v シy、 夕14.15
力)らXJ、Xllの値を出力することを繰り返し、最
後にパターン番号レジスタ25.1〜25.ルと連結番
号レジスタ26.1〜26.1の内容を出力するように
すればよい。また全検出視野分のメモリを用意しておき
、上記パターン番号を有する画像を記憶しておけば、パ
ターン番号レジスタ25.1〜25.叱連結番号レジス
タ26.1〜26.nの内容を比較参照しながらパター
ン番号を連結番号に置換すれば、各孤立パターンはその
ノくターン個有の1つの連結番号を持たせることもでき
る。In addition, in the above embodiment, the case where the pattern connectivity processing result is output as a connection number and pattern specifications is illustrated, but in automatic pattern recognition equipment or automatic inspection equipment, there is a case where it is necessary to output a pattern that has undergone connectivity processing. However, in order to realize this, when the turn end point Xt is detected in the X direction scanning and the connectivity processing is performed, the pattern number of that pattern is stored in the current turn number register 1.
From 7 and Xs, Xg v cy, Evening 14.15
output), XJ, Xll values are repeated, and finally the pattern number registers 25.1 to 25. What is necessary is to output the contents of the file and concatenation number registers 26.1 to 26.1. Further, if a memory for the entire detection field of view is prepared and images having the above-mentioned pattern numbers are stored, pattern number registers 25.1 to 25. Scroll connection number register 26.1-26. By comparing and referring to the contents of n and replacing the pattern number with a concatenation number, each isolated pattern can have one concatenation number unique to that node.
この場合には第2の実施例として、対象シーンの2値信
号から走査線上のノくターン情報()(ターン開始点、
終了点)を検出するとともにそれらのパターンとその1
つ前の走査線上のノ(ターンと連結しているか否かを検
出する第1の手段と、この第1の手段によって検出され
た各)くターyに対し個有のパターン番号と各ノ: タ
ーL y 間の連結性を示す連結番号を与える第2の手
段と、上記第1の手段で検出される各走査線上のノくタ
ーン情報(パターン開始点、終了点)と第2の手段によ
るパターン番号とを出力する手段と該パターン番号と連
結番号との表を出力する手段とを含む第6の手段からな
る連結性処理を施す画像処理装置において、隣接する処
理ずみ検出視野と処理中検出視野との検出視野境界にお
ける処理ずみ検出視野からえたパターン情報(境界上の
パターン開始点、終了点、ツクターン番号連結番号)を
保存する第4の手段と、この第4の手段の内容と処理中
検出視野で上記境界に達するパターンの情報とを照合し
て連結番号を更新する第5の手段と、将来処理される検
出視野との処理中検出視野の検出視野境界におけるノく
ターン情報を蓄積する第6の手段と、上記将来処理され
る検出視野に処理が移動する時点でこの第6の手段の内
容を上記第4の手段に与えるパターン情報に切り換える
第7の手段を設けることにより、分割検出された対象シ
ーン全体に対し連結性を有する連結番号をもったノ(タ
ーンがえられるような連結性処理を施す画像処理装置が
実現される。In this case, as a second embodiment, turn information () (turn start point,
end point) and detect those patterns and part 1.
A pattern number unique to each pattern (a first means for detecting whether or not it is connected to a turn, and each pattern detected by the first means) on the previous scanning line and each pattern: a second means for giving a connection number indicating the connectivity between the patterns; In an image processing apparatus that performs connectivity processing, the image processing apparatus includes a means for outputting a pattern number, and a means for outputting a table of the pattern number and the connection number. A fourth means for storing pattern information obtained from the processed detection field of view (pattern start point, end point, turn number concatenation number on the boundary) at the boundary of the detection field of view, and the contents and processing of the fourth means. A fifth means of updating the connection number by comparing the pattern information reaching the boundary in the detection field of view, and accumulating the no-turn information at the detection field boundary of the detection field of view during processing with the detection field of view to be processed in the future. By providing a sixth means and a seventh means for switching the contents of the sixth means to pattern information to be given to the fourth means at the time when processing moves to the detection field of view to be processed in the future, division detection is possible. An image processing apparatus is realized that performs connectivity processing such that a turn is obtained with a connection number having connectivity for the entire target scene.
なお、上記実施例ではTVカメ多なとのような2次元撮
像器からなる撮像装置による検出を前提としたが、1次
元イメージセンサと対象物の移動との組み合わせなどか
らなる撮像装置により上下方向に連続した画像が左右に
隣接するような対象シーンに対しても同様に有効である
。In the above embodiment, detection is performed using an imaging device consisting of a two-dimensional imager such as a TV camera. This method is similarly effective for target scenes in which consecutive images are adjacent to each other on the left and right.
以上のように本発明によれば、1つの検出視野に入りき
らない大きなシーン全体に対するノくターンの連結性処
理を施すことができて正確な認識や検査を可能にする画
像処理装置が提供される。As described above, according to the present invention, there is provided an image processing device that is capable of performing cross-turn connectivity processing on an entire large scene that does not fit into one detection field of view, thereby enabling accurate recognition and inspection. Ru.
第1図は本発明を実施する1つの検出視野における2値
パターンを例示する平面図、第2図は同じ(複数の検出
視野におけるパターンを例示する平面図、第6図(a>
、<b>は本発明の実施例の処理方式の連結性を説明す
る各4連結、8〜連結の絵素の平面図、第4図は同じく
パターン番号と連結番号を説明するパターンを例示する
平面図、第5図は同じく複数の分割検出視野におけるパ
ターンを例示する平面図、第6図は同じく上下の検出視
野境界におけるパターン番号の扱いを説明する平面図、
第7図は左右の検出視野におけるパタ一番号の扱いを説
明する平面図、第8図は本発明による画像処理装置の一
実施例を示す全体構成ブロック図、第9図は第8図のX
方向連結性処理部分の詳細構成例ブロック図、第10図
は第8図の動作に係るパターン開始点X、?、終了点X
sを説明するX方向走査パターン波形側図、第11図(
α)〜(−)は同じく1つ前の走査線上のパターンと現
走査線上のパターンの連結関係の各分類を説明するパタ
ーン波形側図、第12図は第8図のY方向境界連結性処
理部分の詳細構成例ブロック図、第13図は第12図の
動作に係る左右のY方向検出視野境界上の左側パターン
開始点YLS 、終了点’(Le 、右側)くターン開
始点’ins 、終了点Yne 、を説明する平面図、
第14図は同じく同一パターン番号のパターンが複数回
右側境界にかかる状態を説明する平面図、第15図(α
)〜(−、)は左右のY方向検出視野境界上にかかるパ
ターンの連結関係の各分類を説明する部分平面図である
。
1・・・X方向パターン検出部
2・・・X方向パターン連結性処理部
3・・・Y方向パターン検出部
4・・・Y方向境界パターン連結性処理部5・・・X方
向パターンレジスタ
6・・・Y方向パターンレジスタ
7・・・パターン諸元レジスタ
8・・・レジスタ制御部
代理人弁理士高橋明夫
茅3図
(a) (b’)
第40
第5図
第 7 超
第79図
第77図
(e)
第 /2 図
第73図
第74図
第1.ダ図
瞥
補正をする各
Iff”)との1唄イ 特許出願人FIG. 1 is a plan view illustrating a binary pattern in one detection field of view in which the present invention is implemented; FIG. 2 is a plan view illustrating a pattern in a plurality of detection fields;
, <b> is a plan view of each 4-connection picture element and 8-connection picture element explaining the connectivity of the processing method of the embodiment of the present invention, and FIG. 4 similarly illustrates a pattern explaining the pattern number and the connection number. A plan view, FIG. 5 is a plan view illustrating patterns in a plurality of divided detection fields of view, and FIG. 6 is a plan view illustrating how pattern numbers are handled at the boundaries of the upper and lower detection fields.
FIG. 7 is a plan view illustrating the handling of pattern numbers in the left and right detection fields of view, FIG. 8 is a block diagram showing the overall configuration of an embodiment of the image processing device according to the present invention, and FIG. 9 is a
A block diagram of a detailed configuration example of the directional connectivity processing part, FIG. 10 shows the pattern starting point X, ?, related to the operation of FIG. 8. , end point X
A side view of the X direction scanning pattern waveform explaining s, FIG. 11 (
α) to (-) are pattern waveform side views explaining each classification of the connection relationship between the pattern on the previous scanning line and the pattern on the current scanning line, and Figure 12 is the Y-direction boundary connectivity processing in Figure 8. A detailed configuration example block diagram of the part, FIG. 13 shows the left pattern start point YLS, end point '(Le, right side), turn start point 'ins, end on the left and right Y-direction detection visual field boundaries related to the operation shown in FIG. 12. A plan view illustrating the point Yne,
FIG. 14 is a plan view illustrating a situation in which a pattern with the same pattern number is applied to the right boundary multiple times, and FIG. 15 (α
) to (-,) are partial plan views illustrating each classification of connection relationships of patterns on the left and right Y-direction detection visual field boundaries. 1...X direction pattern detection section 2...X direction pattern connectivity processing section 3...Y direction pattern detection section 4...Y direction boundary pattern connectivity processing section 5...X direction pattern register 6 ...Y direction pattern register 7...Pattern specification register 8...Register control department Patent attorney Akio Takahashi 3 (a) (b') Fig. 40 Fig. 5 Fig. 7 Super Fig. 79 Fig. 77(e) Fig. 2 Fig. 73 Fig. 74 Fig. 1. 1 song with each Iff”) that corrects the image.Patent Applicant
Claims (1)
査線上のパターンを検出するとともにそれらのパターン
とその1つ前の走査線上のパターンとの連結性を検出す
る第1の手段と、この第1の手段によって検出されたパ
ターンに対しパターン間の連結性を示す連結番゛号を与
える第2の手段と、隣接する分割検出゛視野の境界上の
パターンを検出するとともにその両側パターンの連結性
を検出する第3の手段と、この第3の手段によって検出
されたパターンに対しパターン間の連結性を示す連結番
号を与える第4の手段を設け、上記第23と第4の手段
によって与えられた連結番号が同一のパターンを持って
複数の分割検出視野にわたる対象シーン全体に対して連
結性を有するパターンをうるようにした画像処理装置ら
2.1つの検出視野につき対象シーンの2値信1号から
走査線上のパターンを検出するととも。 にそれらのパターンとその1つ前の走査線上。 のパターとの連結性を検出する第1の手段と、゛この第
1の手段によって検出されたパターンに対しパターン間
の連結性を示す連結性を与えるとともにそのパターン諸
元を抽出する第2の手段と、この第2の手段によって与
えられた連結番号が同一のパターンについてそのパター
ン諸元を合成する第3の手段と、隣接する分割検出視野
の境界上のパターンを検出□するとともにその両側パタ
ーンの連結性を検出する第4の手段と、この第4の手段
によって検出されたパターンに対しパターン間の連結性
を示す連結番号を与えるとともにその連結番号が同一の
パターンについてそのパター)ン諸元を合成する第5の
手段を設け、上記第6と第5の手段により合成されたパ
ターン諸元をもって複数の分割視野にわたる対象シーン
全体に対して連結性を有するパターン諸元をうるように
した画像処理装置。1. A first means for detecting patterns on a scanning line from a binary signal of a target scene for one detection field of view and detecting connectivity between these patterns and a pattern on the immediately preceding scanning line; a second means for assigning a connection number indicating the connectivity between patterns to the pattern detected by the first means; and a second means for detecting the pattern on the border of the adjacent divided detection field and the connectivity of the patterns on both sides thereof. and a fourth means for giving a connection number indicating the connectivity between the patterns to the pattern detected by the third means, 2. An image processing device that has the same pattern of connection numbers and has connectivity for the entire target scene across multiple divided detection fields of view.2. It also detects the pattern on the scanning line from the signal. on those patterns and the previous scan line. a first means for detecting the connectivity of the pattern with the putter; a third means for synthesizing the pattern specifications of patterns having the same connection number given by the second means; a fourth means for detecting the connectivity of the patterns; a fourth means for detecting the connectivity of the patterns; and a fourth means for assigning a connectivity number indicating the connectivity between patterns to the patterns detected by the fourth means, and specifying the pattern specifications for the patterns having the same connectivity number. and a fifth means for synthesizing the above, and the pattern specifications synthesized by the sixth and fifth means are used to obtain pattern specifications having connectivity for the entire target scene spanning a plurality of divided fields of view. Processing equipment.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58134336A JPS6027072A (en) | 1983-07-25 | 1983-07-25 | Picture processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58134336A JPS6027072A (en) | 1983-07-25 | 1983-07-25 | Picture processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6027072A true JPS6027072A (en) | 1985-02-12 |
| JPH0413750B2 JPH0413750B2 (en) | 1992-03-10 |
Family
ID=15125959
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58134336A Granted JPS6027072A (en) | 1983-07-25 | 1983-07-25 | Picture processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6027072A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62127987A (en) * | 1985-11-28 | 1987-06-10 | Yokogawa Electric Corp | Method of checking printed board pattern |
-
1983
- 1983-07-25 JP JP58134336A patent/JPS6027072A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62127987A (en) * | 1985-11-28 | 1987-06-10 | Yokogawa Electric Corp | Method of checking printed board pattern |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0413750B2 (en) | 1992-03-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4091394A (en) | Pattern position detecting system | |
| JPH05256796A (en) | Inspecting system | |
| US5231678A (en) | Configuration recognition system calculating a three-dimensional distance to an object by detecting cross points projected on the object | |
| JPS6027072A (en) | Picture processor | |
| JPH0664614B2 (en) | Hierarchical structured template matching method | |
| JP3116438B2 (en) | Inspection apparatus and inspection method for printed wiring board | |
| JPH1091788A (en) | Device for positioning pattern and method therefor | |
| JP3845561B2 (en) | Image processing apparatus and target detection tracking apparatus using the same | |
| JPH063541B2 (en) | Pattern inspection equipment | |
| JPH06148089A (en) | Crack measurement processor | |
| JPS58189781A (en) | Pattern recognizer | |
| EP0356463A1 (en) | Interconnect verification using serial neighborhood processors | |
| JPS623475B2 (en) | ||
| JPH07282230A (en) | Method for connecting map drawing data | |
| JPH0410074A (en) | Picture pattern inclination detecting method | |
| JPH04372069A (en) | System for correcting wiring | |
| JPH03270249A (en) | How to create a standard pattern for visual inspection | |
| JPS59186071A (en) | Green sheet printed wiring pattern recognition method | |
| JPH087113A (en) | Image feature extraction method | |
| JPS58158936A (en) | External lead detector of semiconductor device | |
| JPH0522164B2 (en) | ||
| JP2001266157A (en) | Image processing apparatus and target detection tracking apparatus using the same | |
| JPS595945B2 (en) | Pattern recognition method | |
| JPS5837773A (en) | Processor for plural patterns | |
| JPS6194184A (en) | Detector for point of maximum coincidence degree |