Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0130181B2 - - Google Patents
[go: Go Back, main page]

JPH0130181B2 - - Google Patents

Info

Publication number
JPH0130181B2
JPH0130181B2 JP58127798A JP12779883A JPH0130181B2 JP H0130181 B2 JPH0130181 B2 JP H0130181B2 JP 58127798 A JP58127798 A JP 58127798A JP 12779883 A JP12779883 A JP 12779883A JP H0130181 B2 JPH0130181 B2 JP H0130181B2
Authority
JP
Japan
Prior art keywords
sea
island
information
segment
image information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP58127798A
Other languages
Japanese (ja)
Other versions
JPS6029871A (en
Inventor
Yasuo Hongo
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP58127798A priority Critical patent/JPS6029871A/en
Publication of JPS6029871A publication Critical patent/JPS6029871A/en
Publication of JPH0130181B2 publication Critical patent/JPH0130181B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 この発明は、一般的な図形間の包含関係を解析
処理するパターン解析処理装置に関する。一般
に、この種の装置は、任意図形の包含関係を高速
に解析処理できることが望ましい。
DETAILED DESCRIPTION OF THE INVENTION [Technical field to which the invention pertains] The present invention relates to a pattern analysis processing device that analyzes inclusion relationships between general figures. Generally, it is desirable for this type of device to be able to analyze inclusion relationships of arbitrary figures at high speed.

〔従来技術とその問題点〕[Prior art and its problems]

この種の一般図形を取り扱う画像処理装置とし
て、例えば本出願人が既に提案している複数パタ
ーン処理装置があるが(例えば、特願昭57−
109746号参照)、これは所定パターンをラインセ
グメント(水平走査線上に連なる黒点、つまりパ
ターンを表わす点の集合;単にセグメントまたは
ランとも云う。)に分解し、その連結性を解析す
るに止どまるもので、その包含関係までは知るこ
とができないものである。すなわち、連結するセ
グメントの集合(複片またはブロブ(BLOB)と
もいう。)を図形としてみるとき、その中に含ま
れる孔(ホール)の数を知ることができず、ま
た、或るブロブの中に含まれる他のブロブを識別
することができない。例えば、第1図はブロブの
包含関係を説明するための説明図で、同図Aはブ
ロブaがブロブbを含む場合であり、同図Bは含
まない場合であるが、従来の複数パターン処理装
置では、このような包含関係を決定することがで
きない、という難点がある。
As an image processing device that handles this type of general figure, there is, for example, a multiple pattern processing device that the present applicant has already proposed (for example, Japanese Patent Application No.
(Refer to No. 109746), this is not limited to breaking down a predetermined pattern into line segments (a set of black dots on a horizontal scanning line, that is, a set of points representing a pattern; also simply called a segment or run) and analyzing their connectivity. Therefore, it is impossible to know the inclusion relationship. In other words, when we look at a set of connected segments (also called multiple pieces or blobs) as a figure, we cannot know the number of holes contained in it, and cannot identify other blobs contained in the . For example, Fig. 1 is an explanatory diagram for explaining the inclusion relationship of blobs, and Fig. 1A shows a case where blob a includes blob b, and Fig. 1B shows a case where blob a does not. The device has a drawback in that it cannot determine such an inclusion relationship.

〔発明の目的〕[Purpose of the invention]

したがつて、この発明は、このようなパターン
の包含関係を簡単かつ高速に解析することが可能
なパターン解析処理装置を提供することを目的と
するものである。
Therefore, it is an object of the present invention to provide a pattern analysis processing device that can easily and quickly analyze the inclusion relationships of such patterns.

〔発明の要点〕[Key points of the invention]

複数の検査対象パターンの各々を海に浮かぶ島
とみてこれらをラスタ走査し、2値化することに
より島セグメント情報等の島情報を抽出するとと
もに、海についてもその論理を反転することによ
り海セグメント情報等の海情報を抽出し、これら
抽出された島、海情報の連結性を解析することに
よつて所定数の島、海パターンに分類し、これを
島と海の階層構造で表現することにより各パター
ンの包含関係を解析し得るようにしたものであ
る。
Each of the multiple inspection target patterns is regarded as an island floating in the sea, and these are raster scanned and binarized to extract island information such as island segment information, and for the sea, by reversing the logic, sea segment information is extracted. By extracting sea information such as information, and analyzing the connectivity of these extracted island and sea information, it is classified into a predetermined number of island and sea patterns, and this is expressed in a hierarchical structure of islands and seas. This makes it possible to analyze the inclusion relationship of each pattern.

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

第2図はこの発明の実施例を示す構成図、第3
図は一般的なセグメント情報を説明する説明図、
第4図は島、海・湖セグメント情報を説明する説
明図、第5図は画像メモリへ書き込まれる第4図
の各種抽出画像情報を説明する説明図である。第
2図において、11は処理の対象となる画面を示
すもので、ここでは、背景を海Sと仮定したと
き、図形等のパターンは海Sに浮かぶ島Iとして
把握される。なお、Lは湖を示し、海と同義であ
るので、単に海、海または湖、海・湖の如く表現
する。12は固体撮像カメラの如き撮像装置、1
3は2値化回路、14は反転回路、15は島セグ
メント情報抽出回路、16は島セグメント連結対
情報抽出回路、17は島セグメント包囲対情報抽
出回路、18は島情報画像メモリ、19は海・湖
セグメント情報抽出回路、20は海・湖セグメン
ト連結対情報抽出回路、21は海・湖セグメント
包囲対情報抽出回路、22は海・湖情報画像メモ
リ、23はマイクロプロセツサの如きデータ処理
装置、24はリードオンリメモリ(ROM),2
5はランダムアクセスメモリ(RAM),26は
入出力インタフエイス回路、27はシステムバス
である。
Fig. 2 is a configuration diagram showing an embodiment of this invention;
The figure is an explanatory diagram explaining general segment information,
FIG. 4 is an explanatory diagram illustrating island, sea/lake segment information, and FIG. 5 is an explanatory diagram illustrating various extracted image information of FIG. 4 written into the image memory. In FIG. 2, reference numeral 11 indicates a screen to be processed. Here, assuming that the background is the sea S, the pattern such as a figure is understood as an island I floating in the sea S. In addition, since L indicates a lake and is synonymous with the sea, it is simply expressed as the sea, sea or lake, or sea/lake. 12 is an imaging device such as a solid-state imaging camera;
3 is a binarization circuit, 14 is an inversion circuit, 15 is an island segment information extraction circuit, 16 is an island segment connection pair information extraction circuit, 17 is an island segment surrounding pair information extraction circuit, 18 is an island information image memory, and 19 is a sea・Lake segment information extraction circuit, 20 is a sea/lake segment connection information extraction circuit, 21 is a sea/lake segment surrounding information extraction circuit, 22 is a sea/lake information image memory, and 23 is a data processing device such as a microprocessor. , 24 is read-only memory (ROM), 2
5 is a random access memory (RAM), 26 is an input/output interface circuit, and 27 is a system bus.

すなわち、対象となる画面を撮象装置12を用
いてX方向に水平走査しながら順次Y(垂直)方
向に走査を行ない、各水平走査によつて得られる
ビデオ信号を2値化回路13により或るしきい値
レベルで順次2値化すると、第3図の如くなる。
なお、第3図は説明をわかり易くするために、簡
単な文字“W”を撮像した場合の例であり、した
がつて、第2図の画面11で示される如きパター
ンとは異なるものである。こゝで、パターン
(島)の存在するところを、例えば論理“1”で
表わし、該論理レベル“1”の連なりをセグメン
トと呼ぶことにすると、各パターンは図の如く各
水平走査線(SC8,SC9…SCi…SCk…)毎にセグ
メント化され、したがつて各パターンはこれらセ
グメントのかたまりで表わすことができる。これ
らセグメントが同一のパターンに属していると識
別するためには、セグメント毎の座標比較が必要
である。例えば、現在走査している走査線がSC9
であるとき、現走査SC9のセグメントSE91が1つ
前の走査線であるSC8のセグメントSE81と同一の
パターンに属するものであると判断するために
は、現走査SC9と前走査SC8のセグメントのY座
標が1だけ異なつていて、しかもセグメント
SE81,SE91のX座標が一部分でも重なつている
ことである。そこで、これらの関係を明瞭に把握
しうるようにするために各セグメントについて開
始セグメント(スタートセグメント)、合流セグ
メント(ジヨイントセグメント)を考える。すな
わち、スタート情報は前走査においていずれのセ
グメントとも重ならないセグメント、つまり現走
査において始めて出現するセグメントに対して付
けられるもので、第3図のSE81,SE82およびSEij
がそれである。また、ジヨイントセグメントはセ
グメントの重なり具合を示すもので、前の走査線
上にある2本以上のセグメントが互いに接続して
いることを表わし、例えば、同図のSEk+1がそれ
に相当する。そして、スタートセグメントに接続
される各セグメントは、同一の単片に属するもの
としてスタートセグメントSE81,SE82,SEijに付
されたのと同じ単片番号1,2,3を付与する。
なお、ジヨイントセグメント、例えばSEk+1によ
つて接続される、それ以降のセグメントSEk+2
には、その右側の単片に属するものとして、ここ
では、SEij,SEk2等に付されているのと同じ単片
番号が付けられる。
That is, the target screen is scanned horizontally in the X direction using the imaging device 12 and sequentially scanned in the Y (vertical) direction, and the video signal obtained by each horizontal scan is converted into a binarization circuit 13. If the data is sequentially binarized at the threshold level, the result will be as shown in FIG.
Note that, in order to make the explanation easier to understand, FIG. 3 is an example in which a simple character "W" is imaged, and therefore the pattern is different from the pattern shown on the screen 11 of FIG. 2. Here, if the location where a pattern (island) exists is represented by, for example, a logic "1", and a series of logic level "1"s is called a segment, then each pattern corresponds to each horizontal scanning line (SC) as shown in the figure. 8 , SC9 ... SCi ... SCk ...), and therefore each pattern can be represented by a group of these segments. In order to identify that these segments belong to the same pattern, it is necessary to compare the coordinates of each segment. For example, if the currently scanned scan line is SC 9
In order to determine that segment SE 91 of current scan SC 9 belongs to the same pattern as segment SE 81 of SC 8 , which is the previous scan line, it is necessary to The Y coordinates of the segments of SC 8 differ by 1, and the segments
The X coordinates of SE 81 and SE 91 even partially overlap. Therefore, in order to clearly understand these relationships, we will consider a start segment and a joint segment for each segment. In other words, start information is attached to a segment that does not overlap with any segment in the previous scan , that is, a segment that appears for the first time in the current scan .
That is it. Furthermore, the joint segment indicates the degree to which segments overlap, and indicates that two or more segments on the previous scanning line are connected to each other. For example, SE k+1 in the figure corresponds to this. Each segment connected to the start segment is assigned the same single piece numbers 1, 2, and 3 as those given to the start segments SE 81 , SE 82 , and SE ij as belonging to the same single piece.
Note that the subsequent segment SE k+ 2 connected by a joint segment, for example SE k+1 ...
is assigned the same single piece number as that assigned to SE ij , SE k2, etc., as belonging to the single piece on the right side.

以上はパターンを表わすセグメント、すなわち
島セグメントの説明であるが、島と海(湖)とは
表裏の関係にあることから、その論理を反転して
考えれば、海についても上記と同様の関係が成り
立ち、したがつて、海・湖セグメント、海・湖単
片等を考えることができる。第4図はこのように
考えた場合の各種画像情報を説明するためのもの
である。
The above is an explanation of the segment that represents the pattern, that is, the island segment. However, since islands and the sea (lake) are two sides of the same coin, if we reverse that logic, we can find the same relationship as above for the sea. Therefore, we can consider ocean/lake segments, ocean/lake single pieces, etc. FIG. 4 is for explaining various types of image information when considered in this way.

すなわち、画像処理領域PPに対して所定の領
域PEをとり、これを海(SEA)領域とすると、
処理すべきパターンはこの海の中に存在する島
(ISLAND)として、また、この島の中にさらに
島が存在する場合、これらを分離する部分も海ま
たは湖(LAKE)としてそれぞれ把握することが
できる。第4図における記号の意味は、次のとお
りである。
In other words, if we take a predetermined area PE for the image processing area PP and define it as the sea (SEA) area,
The pattern to be processed can be understood as an island existing in this sea (ISLAND), and if there are further islands within this island, the part that separates them can also be understood as an ocean or a lake (LAKE). can. The meanings of the symbols in FIG. 4 are as follows.

イ Sはスタートセグメントを示し、その添字
I,Lは島、海を区別するものであり、数字は
その発生順序を表わすものである。したがつ
て、島のスタートセグメントはSI〜SI、海のス
タートセグメントはSL1,SL2ということにな
る。
B. S indicates the start segment, the subscripts I and L distinguish between islands and oceans, and the numbers indicate the order in which they occur. Therefore, the start segments of the island are S I to S I , and the start segments of the sea are S L1 and S L2 .

ロ Jはジヨイントセグメントであり、添字I,
Lにて島と海の区別をし、数字にてその発生順
序を表わすものである。したがつて、島のジヨ
イントセグメントはJI1〜JI3であり、海のジヨ
イントセグメントはJL1〜JL3ということにな
る。
B. J is a joint segment, and subscripts I,
The letter L distinguishes between islands and the sea, and the numbers indicate the order in which they occur. Therefore, the island joint segments are J I1 to J I3 , and the sea joint segments are J L1 to J L3 .

ハ Iは同じ番号が付される島単片を示し、その
添字によつて島単片番号を表わす。IS1〜IS4
これに相当する。
C. I indicates the island single piece to which the same number is attached, and the subscript represents the island single piece number. I S1 to I S4 correspond to this.

ニ Lは同じ番号に属する海単片であり、その添
字にて海単片番号を表わす。LS1〜LS3がこれに
相当する。
D.L is a sea piece belonging to the same number, and its subscript represents the sea piece number. L S1 to L S3 correspond to this.

以上の如き島または海のセグメント情報,セグ
メント番号は、第2図の島セグメント情報抽出回
路15、海・湖セグメント情報回路19にてそれ
ぞれ抽出される。なお、反転回路14は、上述の
如く、背景となる海に着目した各種情報を抽出す
るために設けられているものである。また、上述
の如き島、海セグメント情報は、セグメントの
X,Y座標、その長さ(セグメント長)および単
片番号(いずれの単片に属するかを表わす番号)
を含むものである。
The island or sea segment information and segment number as described above are extracted by the island segment information extraction circuit 15 and the sea/lake segment information circuit 19 shown in FIG. 2, respectively. Note that the inverting circuit 14 is provided to extract various information focused on the background ocean, as described above. In addition, the above-mentioned island and sea segment information includes the X and Y coordinates of the segment, its length (segment length), and single piece number (number indicating which single piece it belongs to).
This includes:

さらに、この発明では、上述の如きセグメント
情報、単片番号情報だけでなく、以下の如き連結
対情報および包囲対情報が抽出される。すなわ
ち、連結対情報は、どの単片とどの単片が連結し
ているか、つまり、そのつながり具合を表わす情
報であり、包囲対情報は、着目する単片の両隣り
にある単片を把握する情報である。第4図を参照
すると、島単片IS2とIS3とはジヨイントセグメン
トJI1にて、また、島単片IS2とIS4とはジヨイント
セグメントJI2にてそれぞれ連結していることが
わかるので、これらを島連結対情報とするもので
あり、同様にして海単片LS1とLS2とはジヨイント
セグメントJL1にて、また、海単片LS2とLS1とは
ジヨイントセグメントJL2にてそれぞれ連結して
いるので、これらを海連結対情報とするものであ
る。なお、以上のことからも明らかなように、連
結対情報はジヨイントセグメントにもとづいて得
られることがわかる。一方、包囲対情報はスター
トセグメントに着目して得られるもので、例え
ば、島スタートセグメントSI1に着目すると、そ
の両隣りは海セグメントLS1であり、また、海セ
グメントLS2に着目すると、その両隣りは島セグ
メントIS1となるので、これらの関係をそれぞれ
島包囲対情報、海包囲対情報とするものである。
Furthermore, in the present invention, not only the segment information and single piece number information as described above, but also the following concatenated pair information and enclosing pair information are extracted. In other words, the connected pair information is information that indicates which single piece is connected to which single piece, that is, the degree of connection, and the surrounding pair information is used to grasp the single pieces on both sides of the single piece of interest. It is information. Referring to FIG. 4, the single island pieces I S2 and I S3 are connected at the joint segment J I1 , and the single island pieces I S2 and I S4 are connected at the joint segment J I2 . Since it is known, these are considered as island connection pair information.Similarly, sea single pieces L S1 and L S2 are in joint segment J L1, and sea single pieces L S2 and L S1 are in joint segment J L1 . Since they are connected at intra-segment J L2 , these are considered as sea connection pair information. Note that, as is clear from the above, the link pair information can be obtained based on joint segments. On the other hand, surrounding pair information is obtained by focusing on the start segment. For example, if we focus on the island start segment S I1 , its neighbors on both sides are sea segments L S1 , and if we focus on the sea segment L S2 , then Since both sides are island segments I S1 , these relationships are used as island encirclement information and sea encirclement information, respectively.

これらの島、海連結対情報は、第2図の抽出回
路16,20においてそれぞれ抽出され、また、
島、海包囲対情報は、抽出回路17,21におい
てそれぞれ抽出される。なお、これら島、海に関
する画像情報は、島情報メモリ18,海情報メモ
リ22にそれぞれ記憶される。第5図は、これら
のメモリの記憶内容を説明するもので、同図A,
Dは島、海セグメント情報を、B,Eは島、海連
結対情報を、また、C,Fは島、海包囲対情報を
それぞれ示すものである。なお、同図において、
XIE,XLEは島、海セグメントのX座標、YIE
YLEは島、海セグメントのY座標、AIE,ALE
島、海セグメント長、NIE,NLEは島、海の単片
番号、また、YIIS,YILSは島、海包囲対のY座標
を表わすものである。また、島連結対は記号LIS1
NLIS2、海連結対は記号NLLS1,NLLS2の如く表わさ
れ、島包囲対はNIIS1〜NIIS3、海包囲対はNILS1
NILS3の如く表わされる。ここで、島、海包囲対
情報NIIS3,NILS3は省略してもよく、また、島、
海包囲対情報を、撮像装置の走査順に同一の表に
書込むようにすれば、Y座標は不要である。ま
た、記号NTIE,NTLEは島、海セグメント総数、
NTILP,NTLLPは島、海連結対総数、NTIIP,NTLIP
は島、海包囲対総数をそれぞれ表わすものであ
る。なお、これらの各種画像情報は情報抽出回路
15〜17,19〜21からメモリ18,22へ
DMA(ダイレクトメモリアクセス)モードで転
送される。
These island and sea connection pair information are extracted by extraction circuits 16 and 20 shown in FIG. 2, respectively, and
The island and sea encirclement pair information is extracted by extraction circuits 17 and 21, respectively. Note that image information regarding these islands and the sea is stored in the island information memory 18 and the sea information memory 22, respectively. Figure 5 explains the stored contents of these memories.
D shows island and sea segment information, B and E show island and sea connection pair information, and C and F show island and sea encirclement pair information, respectively. In addition, in the same figure,
X IE , X LE are the X coordinates of the island, sea segment, Y IE ,
Y LE is the Y coordinate of the island, sea segment, A IE , A LE is the island, sea segment length, N IE , N LE is the island, sea single piece number, and Y IIS , Y ILS is the island, sea encirclement pair. It represents the Y coordinate of . In addition, the island connected pair has the symbol LIS1 ,
N LIS2 , sea-connected pairs are represented by the symbols N LLS1 , N LLS2 , island-encompassing pairs are N IIS1 ~N IIS3 , sea-encompassing pairs are N ILS1 ~
N Expressed as ILS3 . Here, island, sea encirclement counter information N IIS3 , N ILS3 may be omitted, and island,
If the sea encirclement pair information is written in the same table in the scanning order of the imaging device, the Y coordinate is not necessary. In addition, the symbols N TIE and N TLE are the total number of islands and sea segments,
N TILP , N TLLP is the total number of islands, sea connections, N TIIP , N TLIP
represent the total number of islands and sea encircles, respectively. Note that these various image information are transferred from the information extraction circuits 15 to 17, 19 to 21 to the memories 18 and 22.
Transferred in DMA (direct memory access) mode.

このようにしてハード的に得られる島、海に関
する各種画像情報は、システムバス27を介して
プロセツサ23に与えられるので、ここで、その
連結性の解析、重複しているものの除去等の所定
の処理を行なつてその整理をすることにより、
島、湖単片の1つまたは複数を1つの複片(ブロ
ブまたはパターン)として表わすことが可能とな
る。したがつて、プロセツサ23ではその処理結
果にもとづいて島、海の各複片に所定の番号また
は記号をつけるとともに、これを包囲対情報にも
適用して、第5図C,Fに示される包囲対の表を
これらの番号、記号にて書き換える作業を実行す
る。なお、プロセツサ23は、ROM24のプロ
グラムにて動作し、RAM25を一時メモリとし
て所定の演算を行ない、その結果を入出力インタ
フエイス26を介して出力するとともに、所要の
コマンドを該インタフエイス26を介して入力す
ることができる。
Various kinds of image information regarding the islands and the sea obtained in this way by hardware are given to the processor 23 via the system bus 27, so it is necessary to analyze the connectivity, remove duplicates, etc. By processing and organizing,
It is possible to represent one or more of the islands, lake pieces as a single piece (blob or pattern). Therefore, the processor 23 assigns a predetermined number or symbol to each of the islands and sea pieces based on the processing results, and also applies this to the encirclement information, as shown in FIGS. 5C and F. The task of rewriting the enclosing pair table with these numbers and symbols is executed. Note that the processor 23 operates according to the program in the ROM 24, uses the RAM 25 as temporary memory to perform predetermined calculations, outputs the results via the input/output interface 26, and sends required commands via the interface 26. can be entered.

第6図は連結性の解析が行なわれたパターンを
説明する説明図、第7図はその結果にもとづいて
整理された(書き換えられた)包囲対情報を説明
する説明図である。
FIG. 6 is an explanatory diagram illustrating patterns for which connectivity analysis has been performed, and FIG. 7 is an explanatory diagram illustrating surrounding pair information organized (rewritten) based on the results.

すなわち、1,2,3は海または湖番号であ
り、a,b,c,d,eは島番号である。SI1
SI2,SI3,SI4,SI5,SI6は各島のスタートセグメ
ントであり、SL1,SL2,SL3は各海のスタートセ
グメントである。このときの包囲対情報は第7図
の如く、島番号a〜eと海番号1〜3とで表わさ
れる。なお、第7図Aは島包囲対情報、同Bは海
包囲対情報を示すものである。また、同図Aにお
いて、NII1,NII3は海番号、NII2は島番号、YII
そのときY座標をそれぞれ表わし、このときの島
包囲対総数NTIIPは“6”ということになる。一
方、同図Bにおいて、NIL1,NIL3は島番号、NIL2
は海番号、YILはそのときのY座標をそれぞれ表
わし、このときの海包囲対総数NTLIPは“3”と
いうことになる。したがつて、各スタートセグメ
ントのY座標を調べることにより、包囲対の発生
順序がわかるので、その従属関係を階層構造で表
現することができる。第8図は、第6図または第
7図の如く表現されるパターンの階層構造をトリ
ー形式で説明する説明図である。なお、ここで
“0”層は常に海を表わし、第1,3,5…層は
島、第2,4,6…層は海(湖)を表わすもの
で、第1層には島a,b,d、第2層には海2,
3が、また、第3層には島c,eがそれぞれ属し
ていることがわかる。これを一般的な任意図形に
拡張すると第9図の如くなる。なお、第9図は任
意図形の階層構造を説明する説明図である。同図
において、Sは海、Iは島、Lは湖(海と考えて
もよい。)を表わし、したがつて、そのサフイツ
クスの数は階層の数だけ存在することになる。ま
た、n1,n2,n3…は階層中の発生順序を示すもの
である。
That is, 1, 2, and 3 are ocean or lake numbers, and a, b, c, d, and e are island numbers. S I1 ,
S I2 , S I3 , S I4 , S I5 , and S I6 are the start segments of each island, and S L1 , S L2 , and S L3 are the start segments of each sea. The surrounding pair information at this time is represented by island numbers a to e and sea numbers 1 to 3, as shown in FIG. Note that FIG. 7A shows island encirclement information, and FIG. 7B shows sea encirclement information. In addition, in Figure A, N II1 and N II3 represent the sea number, N II2 represents the island number, and Y II represents the Y coordinate at that time, and the total number of island surrounding pairs N TIIP at this time is "6". . On the other hand, in Figure B, N IL1 and N IL3 are island numbers, and N IL2
is the sea number, YIL represents the Y coordinate at that time, and the total number of sea encirclement pairs NTLIP at this time is "3". Therefore, by checking the Y coordinate of each start segment, the order in which enclosing pairs occur can be determined, so that their dependent relationships can be expressed in a hierarchical structure. FIG. 8 is an explanatory diagram illustrating the hierarchical structure of patterns expressed as in FIG. 6 or 7 in a tree format. Note that the "0" layer always represents the ocean, the 1st, 3rd, 5th... layers represent islands, the 2nd, 4th, 6th... layers represent the ocean (lake), and the 1st layer contains an island a. , b, d, the second layer has sea 2,
3, and islands c and e respectively belong to the third layer. When this is expanded to a general arbitrary figure, it becomes as shown in FIG. Note that FIG. 9 is an explanatory diagram illustrating the hierarchical structure of arbitrary figures. In the figure, S represents the sea, I represents the island, and L represents the lake (which may also be considered as the sea).Therefore, there are as many saphics as there are layers. Further, n 1 , n 2 , n 3 . . . indicate the order of occurrence in the hierarchy.

次に、包囲対情報の解析手順を第10〜12図
を参照して説明する。なお、第10図は一般図形
の一例を示すパターン図、第11図はその場合の
包囲対情報を説明する説明図、第12図は第11
図に対応する階層情報(セル情報)の処理手順を
説明する説明図、第13図はその結果をトリー形
式で説明する説明図である。第10図において、
記号a〜hの8個は島パターンを、また、数字1
〜9の9個は海1と湖パターン2〜9をそれぞれ
表わしており、図の丸印はスタートセグメントを
示している。したがつて、このスタートセグメン
トにおける包囲対をその走査順序にしたがつて順
番に書き表わすと、第11図の如くなり、さら
に、この包囲対の順番にしたがつてパターンの階
層構造を表わすと、第12図の如く表わされる。
なお、第12図の第1行目は、第11図の包囲対
の発生順番に応じて島、海情報を書き並べたもの
であり、同第2行目は第1行目の島、海の階層を
書いたもの、また、第3行目以下は階層的につな
がる島、海番号を層ごとに書き並べたものであ
る。このように、或る島または海を各階層の中に
位置付けをする、つまり第12図の如く階層構造
で表現することにより、その包含関係を識別する
ものである。なお、このような階層(セル)構造
をトリー形式で表現すると第13図の如くなる。
Next, the procedure for analyzing the surrounding pair information will be explained with reference to FIGS. 10 to 12. In addition, FIG. 10 is a pattern diagram showing an example of a general figure, FIG. 11 is an explanatory diagram explaining surrounding pair information in that case, and FIG.
FIG. 13 is an explanatory diagram illustrating the processing procedure of hierarchical information (cell information) corresponding to the figure, and FIG. 13 is an explanatory diagram illustrating the result in tree format. In Figure 10,
The 8 symbols a to h represent the island pattern, and the number 1
9 represent ocean 1 and lake patterns 2 to 9, respectively, and the circles in the figure indicate the start segments. Therefore, if the surrounding pairs in this start segment are expressed in order according to their scanning order, it will be as shown in FIG. 11, and furthermore, if the hierarchical structure of the pattern is expressed according to the order of these surrounding pairs, It is expressed as shown in FIG.
The first line of Figure 12 lists the island and sea information in accordance with the order in which the surrounding pairs in Figure 11 occur, and the second line lists the island and sea information in the first line. In addition, from the third line onwards, the hierarchically connected islands and sea numbers are written and arranged for each layer. In this way, by locating a certain island or sea in each hierarchy, that is, by representing it in a hierarchical structure as shown in FIG. 12, its inclusion relationship can be identified. Incidentally, when such a hierarchical (cell) structure is expressed in a tree format, it becomes as shown in FIG.

第14図は、以上の如き処理の総合的な手順を
説明するためのフローチヤートである。なお、こ
の処理手順は上述した通りであるが、その概略を
説明する。同図イは、第2図に示される抽出回路
15〜17,19〜21を介して得られる各種画
像情報をDMA(ダイレクトメモリアクセス)方
式でメモリ18,22へ記憶する迄の手順であ
り、同図ロは、これら情報にもとづいてプロセツ
サ23にて行なわれる、連結性の解析処理手順で
ある。同図ハは、その結果にもとづいて包囲対の
単片番号を島、海番号に書き換える手順を示し、
同図ニはその包囲関係から階層(セル)情報を得
る部分である。また、同図ホは、階層(セル)情
報から島、海の数等の幾何学的量を求めて分類し
たり、あるいは検査を行なう手順であり、同図ヘ
はその結果を出力する部分である。
FIG. 14 is a flowchart for explaining the overall procedure of the above processing. Note that although this processing procedure is as described above, its outline will be explained below. FIG. 2B shows the procedure for storing various image information obtained through the extraction circuits 15 to 17 and 19 to 21 shown in FIG. FIG. 4B shows the connectivity analysis processing procedure performed by the processor 23 based on this information. Figure C shows the procedure for rewriting the single piece number of the surrounding pair to the island and sea number based on the result.
Figure 2 shows the part that obtains layer (cell) information from the enclosing relationship. In addition, ``E'' in the same figure shows the procedure for determining geometric quantities such as the number of islands and seas from the hierarchical (cell) information and performing classification or inspection, and ``H'' in the same figure is the part that outputs the results. be.

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

以上のように、この発明によれば、以下の如き
利点を得ることができる。
As described above, according to the present invention, the following advantages can be obtained.

イ 一般図形につて、その島、海情報すべての連
結性が解析できるため、各パターンまたはブロ
ブの面積、個数または周囲長等の幾何学的量を
容易に演算することが可能となる。
(b) Since the connectivity of all island and sea information for a general figure can be analyzed, it becomes possible to easily calculate geometric quantities such as the area, number, or perimeter of each pattern or blob.

ロ 同じく一般図形について、島、海の包含関係
を簡単に処理することができ、しかも、階層
(セル)情報で表現することにより、任意の島、
海がどの階層にあり、またそれがどれに含まれ
るか等を簡単に解析することができるため、そ
れらの位相的情報(島に対する孔の数、または
海に浮かぶ島の数等の情報)を容易に得ること
ができる。
(b) Similarly, for general shapes, the inclusion relationship between islands and oceans can be easily processed, and by expressing them in hierarchical (cell) information, arbitrary islands,
Since it is possible to easily analyze what level the ocean is in and which category it is included in, we can easily analyze the topological information (information such as the number of holes for islands or the number of islands floating in the sea). can be obtained easily.

ハ 以上の如き、図形に関する幾何学的、位相的
情報から、検査対象の分類、検査(キズの数、
面積等)を容易に行なうことが可能になる。
C. Classification and inspection of inspection objects (number of scratches,
(area, etc.) can be easily carried out.

ニ 包囲対情報をDMAモードにより、ハード的
に得ることができるため、包含関係の解析が容
易かつ高速に行なわれる。
D. Since the enclosing pair information can be obtained by hardware using DMA mode, the analysis of the enclosing relationship can be performed easily and quickly.

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

第1図はブロブの包含関係を説明する説明図、
第2図はこの発明の実施例を示す構成図、第3図
は一般的なセグメント情報を説明する説明図、第
4図は島、海セグメント情報を説明する説明図、
第5図は画像メモリへ書込まれる第4図の各種抽
出画像情報を説明する説明図、第6図は連結性の
解析がなされた後のパターンを説明する説明図、
第7図は第6図における包囲対情報を説明する説
明図、第8図は第6図または第7図のパターンを
トリー形式で説明する説明図、第9図は一般図形
のトリー表現形式を説明する説明図、第10図は
一般図形の一例を説明する説明図、第11図は第
10図における包囲対情報を説明する説明図、第
12図は第11図にもとづいて作成される階層構
造を説明する説明図、第13図は第10〜12図
に示される関係をトリー形式で説明する説明図、
第14図はこの発明の処理動作を説明するフロー
チヤートである。 符号説明、11……撮像画面、12……撮像装
置、13……2値化回路、14……反転回路、1
5,19……セグメント情報抽出回路、16,2
0……連結対情報抽出回路、17,21……包囲
対情報抽出回路、18,22……画像メモリ、2
3……プロセツサ、24……ROM、25……
RAM、26……入出力インタフエイス、27…
…システムバス。
Figure 1 is an explanatory diagram explaining the inclusion relationship of blobs,
FIG. 2 is a configuration diagram showing an embodiment of the present invention, FIG. 3 is an explanatory diagram explaining general segment information, FIG. 4 is an explanatory diagram explaining island and sea segment information,
FIG. 5 is an explanatory diagram illustrating the various extracted image information of FIG. 4 that is written into the image memory, and FIG. 6 is an explanatory diagram illustrating the pattern after connectivity analysis is performed.
Figure 7 is an explanatory diagram for explaining the surrounding pair information in Figure 6, Figure 8 is an explanatory diagram for explaining the pattern in Figure 6 or Figure 7 in a tree format, and Figure 9 is an explanatory diagram for explaining the tree representation format of a general figure. FIG. 10 is an explanatory diagram to explain an example of a general figure. FIG. 11 is an explanatory diagram to explain the surrounding pair information in FIG. 10. FIG. 12 is a hierarchy created based on FIG. 11. An explanatory diagram explaining the structure; FIG. 13 is an explanatory diagram explaining the relationships shown in FIGS. 10 to 12 in a tree format;
FIG. 14 is a flowchart illustrating the processing operation of the present invention. Description of symbols, 11... Imaging screen, 12... Imaging device, 13... Binarization circuit, 14... Inverting circuit, 1
5, 19...Segment information extraction circuit, 16, 2
0... Connected pair information extraction circuit, 17, 21... Surrounding pair information extraction circuit, 18, 22... Image memory, 2
3...Processor, 24...ROM, 25...
RAM, 26...I/O interface, 27...
...system bus.

Claims (1)

【特許請求の範囲】[Claims] 1 背景を海とみるとき複数の識別対象パターン
を海に浮かぶ島とみて各パターンを水平、垂直走
査する走査手段と、該島を表わす部分を例えば論
理“1”、海を表わす部分を例えば論理“0”と
してそれぞれ2値化する2値化手段と、該2値化
情報から島部分の論理“1”の連なりとして表わ
される島セグメント情報、同一の島セグメントと
して表わされる島単片同志のつながり具合を表わ
す島連結対情報および各島単片がどのような海単
片にて囲まれているかを表わす島包囲対情報等を
含む島画像情報を抽出する島画像情報抽出手段
と、前記2値化情報の論理関係を反転させた情報
から該島画像情報抽出手段と同様にして海セグメ
ント情報、海連結対情報および海包囲対情報等を
含む海画像情報を抽出する海画像情報抽出手段
と、これら島、海画像情報をそれぞれ記憶する記
憶手段と、これら記憶された画像情報にもとづい
て所定の解析処理を実行する情報処理手段とを備
え、該処理手段は少なくとも島、海単片の個々の
連結性からこれらを所定数の島、海複片に整理し
てその番号付けを行なうとともに、該複片番号に
よつて前記島、海包囲対情報を書き換えた後、こ
れを所定の順序に並べて階層構造で表現すること
により各々のパターンの包含関係を解析すること
を特徴とする複数パターンの解析処理装置。
1. When the background is considered to be the sea, a scanning means for horizontally and vertically scanning each pattern by viewing a plurality of identification target patterns as islands floating in the sea, and a part representing the islands is set to a logic "1", and a part representing the sea is set to a logic "1", for example. A binarization means that binarizes each as "0", island segment information that is expressed as a series of logic "1"s in the island part from the binarized information, and a connection between island single pieces that are expressed as the same island segment. island image information extraction means for extracting island image information including island connection pair information indicating the condition and island enclosing pair information indicating what kind of sea piece each island is surrounded by; sea image information extraction means for extracting sea image information including sea segment information, sea connection information, sea encirclement information, etc. from information obtained by inverting the logical relationship of the information, in the same manner as the island image information extraction means; It is equipped with a storage means for storing image information of each island and the sea, and an information processing means for executing a predetermined analysis process based on the stored image information, and the processing means is configured to store at least each piece of island and sea image information. From the viewpoint of connectivity, these are organized into a predetermined number of islands and sea fragments and numbered, and the island and sea encirclement information is rewritten using the plurality numbers, and then arranged in a predetermined order. A plurality of pattern analysis processing device characterized by analyzing the inclusion relationship of each pattern by expressing it in a hierarchical structure.
JP58127798A 1983-07-15 1983-07-15 Analysis processor for plural patterns Granted JPS6029871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58127798A JPS6029871A (en) 1983-07-15 1983-07-15 Analysis processor for plural patterns

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58127798A JPS6029871A (en) 1983-07-15 1983-07-15 Analysis processor for plural patterns

Publications (2)

Publication Number Publication Date
JPS6029871A JPS6029871A (en) 1985-02-15
JPH0130181B2 true JPH0130181B2 (en) 1989-06-16

Family

ID=14968934

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58127798A Granted JPS6029871A (en) 1983-07-15 1983-07-15 Analysis processor for plural patterns

Country Status (1)

Country Link
JP (1) JPS6029871A (en)

Also Published As

Publication number Publication date
JPS6029871A (en) 1985-02-15

Similar Documents

Publication Publication Date Title
JPH0152782B2 (en)
EP1679655A1 (en) Face image candidate area search method, face image candidate area search system, and face image candidate area search program
JP3798179B2 (en) Pattern extraction device and character segmentation device
JPH0130181B2 (en)
JP2021156879A (en) Fracture surface analysis device, fracture surface analysis method, and machine learning data set generation method
JP3130869B2 (en) Fingerprint image processing device, fingerprint image processing method, and recording medium
JP3919505B2 (en) Pattern inspection apparatus and method
JP2007199865A (en) Image processing algorithm evaluation apparatus, image processing algorithm generation apparatus and image inspection apparatus, image processing algorithm evaluation method, image processing algorithm generation method, and image inspection method
JP2004334461A (en) Character recognition device and character recognition program
JP3835098B2 (en) Specific pattern detection apparatus and method
JPS6239459B2 (en)
JPH04255080A (en) image input device
JPH08272980A (en) Closed area extracting device
JP3835097B2 (en) Specific pattern detection apparatus and method
JPH0668761B2 (en) Small particle removal method
JP2507949B2 (en) Character / graphic area determination device
JPS59163678A (en) Detecting circuit of feature point
JPH0332723B2 (en)
JP2506071B2 (en) Contour tracking device
JP2940419B2 (en) Image processing device
JP4094240B2 (en) Image characteristic determination processing apparatus, image characteristic determination processing method, program for executing the method, and computer-readable storage medium storing the program
CN121169789A (en) Method and device for checking record identification based on computer vision
JPH0644289B2 (en) Connected area labeling circuit
JP2870640B2 (en) Figure recognition method
JP3048718B2 (en) Vertex detector