JP2974744B2 - Boundary surrounding relation extraction processing method and processing apparatus therefor - Google Patents
Boundary surrounding relation extraction processing method and processing apparatus thereforInfo
- Publication number
- JP2974744B2 JP2974744B2 JP2245373A JP24537390A JP2974744B2 JP 2974744 B2 JP2974744 B2 JP 2974744B2 JP 2245373 A JP2245373 A JP 2245373A JP 24537390 A JP24537390 A JP 24537390A JP 2974744 B2 JP2974744 B2 JP 2974744B2
- Authority
- JP
- Japan
- Prior art keywords
- boundary
- branch
- type
- unit
- feature point
- 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 - Fee Related
Links
Landscapes
- Image Analysis (AREA)
Description
【発明の詳細な説明】 〔発明の属する技術分野〕 本発明は,地図や図面などの線画から,そのトポロジ
カルな構造である境界の包囲関係を自動抽出する境界の
包囲関係抽出処理方法およびそのための処理装置に関す
るものである。Description: TECHNICAL FIELD [0001] The present invention relates to a boundary surrounding relation extraction processing method for automatically extracting a boundary surrounding relation as a topological structure from a line drawing such as a map or a drawing, and a processing method therefor. The present invention relates to a processing device.
地図や図面などの画像は,ベクトルデータに変換した
後,自動認識処理や会話処理を行うことが効率的である
ため,ベクトルデータに対する境界を包囲関係抽出処理
が必要となる。既に,境界追跡を用いた方法(昭和63年
電子情報通信学会春季全国大会,D−239及び特願昭63−0
55692号)が提案されている。Since it is efficient to perform automatic recognition processing and conversation processing on an image such as a map or drawing after converting it into vector data, it is necessary to perform a surrounding relation extraction processing on the boundary with the vector data. Already, the method using the boundary tracking (IEICE Spring National Convention 1988, D-239 and Japanese Patent Application No. 63-0)
No. 55692) has been proposed.
しかし,従来の方法ではベクトルデータ作成時に隣接
セグメントを求めるために画像処理が必要であり、会話
的に作成されたベクトルデータに適用できない等の問題
があった。However, the conventional method has a problem that image processing is required to obtain an adjacent segment when vector data is created, and the method cannot be applied to vector data created interactively.
本発明は,上記の問題を解決して,ベクトルデータだ
けを用いて,境界の包囲関係を抽出することを目的とす
る。SUMMARY OF THE INVENTION It is an object of the present invention to solve the above problem and to extract the surrounding relation of a boundary using only vector data.
ベクトルデータ上の境界追跡を用いて,境界を一本ず
つ追跡して,各境界を追跡する際に隣接する境界を抽出
して,これから追跡する境界のタイプと隣接境界のタイ
プから境界間の包囲関係を抽出する。具体的には,ブラ
ンチをその開始特徴点(ブランチの両端の特徴点をTVラ
スタ順に並べたとき前にくるものを開始特徴点,後にく
るものを終了特徴点と呼ぶ)の座標によりTVラスタ順に
並べ,同じ開始特徴点を持つブランチは開始特徴点に接
続しているセグメントの向きにより開始特徴点の左側か
ら反時計回りの順に並べ,この順序でブランチを調べ
て,ブランチの追跡方向のうち少なくとも一方向が未追
跡であるブランチBを抽出するたびに以下の手順1〜手
順5を順次実行する。Using boundary tracing on vector data, tracing boundaries one by one, extracting adjacent boundaries when tracing each boundary, and enclosing boundaries between boundaries based on the type of boundary to be tracked and the type of adjacent boundary Extract relationships. Specifically, the branch is arranged in the TV raster order by the coordinates of its starting feature point (when the feature points at both ends of the branch are arranged in the TV raster order, the one that comes before is called the start feature point and the one that comes after is called the end feature point). Branches with the same starting feature point are arranged counterclockwise from the left of the starting feature point according to the direction of the segment connected to the starting feature point, and the branches are examined in this order. Each time a branch B whose one direction is not tracked is extracted, the following procedures 1 to 5 are sequentially executed.
第1図,第2図および第3図は夫々本発明の原理説明
図を示す。今第1図に示す如く,特徴点N1,N2,N3,N4,N
5,N6が定まり,セグメントS1,S2,S3,S4,S5,S6,S7が定ま
り,かつ(i)ブランチB1がセグメントS1ないしS4,(i
i)ブランチB2がセグメントS5,(iii)ブランチB3がセ
グメントS6,(iv)ブランチB4がセグメントS7であると
する。そして,本発明の場合には,第2図に点線で示す
如く,外周境界OB1,OB2,OB3や孔境界HB1を得ると共に,
第2図右端に示す如く包囲関係が であると決定するようにする。FIGS. 1, 2, and 3 are explanatory diagrams each illustrating the principle of the present invention. As shown in FIG. 1, feature points N1, N2, N3, N4, N
5, N6 are determined, and the segments S1, S2, S3, S4, S5, S6, S7 are determined, and (i) the branch B1 includes the segments S1 to S4, (i
i) It is assumed that branch B2 is segment S5, (iii) branch B3 is segment S6, and (iv) branch B4 is segment S7. Then, in the case of the present invention, as shown by the dotted lines in FIG. 2, the outer boundary OB1, OB2, OB3 and the hole boundary HB1 are obtained.
As shown in the right end of FIG. Is determined.
また第3図(a)は開始特徴点(x3,y3)から隣接す
るセグメントが距離dのみで唯一つ定まる場合を表わ
し,第3図(b)は角度θを加味してはじめて唯一つに
定まる場合を表わしている。FIG. 3 (a) shows a case where the only segment adjacent to the starting feature point (x3, y3) is determined only by the distance d, and FIG. 3 (b) is determined only by taking the angle θ into account. It represents the case.
(手順1)ブランチBの両方向が未追跡ならば,ブラン
チBの追跡方向を開始特徴点から終了特徴点への方向と
し,追跡する境界のタイプを外周境界とする。ブランチ
Bの一方向だけが未追跡ならばその未追跡な方向を追跡
方向とし,追跡する境界のタイプを孔境界とする。(Procedure 1) If both directions of the branch B have not been tracked, the tracking direction of the branch B is set to the direction from the start feature point to the end feature point, and the type of the boundary to be tracked is set to the outer boundary. If only one direction of the branch B is untracked, the untracked direction is defined as the tracking direction, and the type of the boundary to be tracked is defined as the hole boundary.
(手順2)手順1で得られた境界タイプが外周境界であ
るならば,第3図に示す距離dと角度θを用いて,ブラ
ンチBの開始特徴点(x3,y3)の左に隣接するセグメン
トを求める。すなわち,セグメントの端点を(x1,y
1),(x2,y2)とすると,次の条件を全て満足するセグ
メントの中で距離dが最小のものを隣接セグメントとす
る。(Procedure 2) If the boundary type obtained in Procedure 1 is the outer peripheral boundary, it is adjacent to the left of the starting feature point (x3, y3) of the branch B using the distance d and the angle θ shown in FIG. Find a segment. That is, the end point of the segment is (x1, y
Assuming that 1) and (x2, y2), the segment having the minimum distance d among the segments satisfying all the following conditions is defined as an adjacent segment.
即ち, 条件1) x1≦x3≦x2かつy4<y3(特徴点から左に延ば
した水平半直線との交点(x3,y4)が存在するという条
件) 条件2) x1≠x2(水平なセグメントは除くという条
件) で第3図(a)図示の如く複数のセグメントのうちで最
小の距離値を与えるものを得るが,第3図(b)に示す
ように当該最小のものが複数個ある場合には角度θが最
小のものを隣接セグメントとする。That is, condition 1) x1 ≦ x3 ≦ x2 and y4 <y3 (the condition that there is an intersection (x3, y4) with the horizontal half line extending to the left from the feature point) Condition 2) x1 ≠ x2 (the horizontal segment is In the case where there is obtained a segment which gives the minimum distance value among a plurality of segments as shown in FIG. 3 (a), but there is a plurality of the minimum segments as shown in FIG. 3 (b) The segment having the smallest angle θ is defined as an adjacent segment.
(手順3)手順1で得られた境界タイプが外周境界であ
るならば,手順2で得られた左隣接セグメントの2方向
のうち,ブランチBの開始特徴点を右にみるセグメント
の方向が属する境界を隣接境界とし,手順1で得られた
境界タイプが孔境界であるならば,ブランチBの追跡済
みである方向が属する境界を隣接境界とする。(Procedure 3) If the boundary type obtained in Procedure 1 is the outer boundary, the direction of the segment in which the starting feature point of branch B is to the right belongs to the two directions of the left adjacent segment obtained in Procedure 2. The boundary is an adjacent boundary, and if the boundary type obtained in the procedure 1 is a hole boundary, the boundary to which the tracked direction of the branch B belongs is set as the adjacent boundary.
(手順4)これから追跡する境界C1のタイプと隣接境界
C2のタイプがともに外周境界またはともに孔境界ならば
境界C2を直接囲む境界(既に求められている)が境界C1
も直接囲むとし,その他ならば境界C2が境界C1を直接囲
むと決定する。(Procedure 4) Type of boundary C1 to be tracked and adjacent boundary
If the type of C2 is both the outer boundary or both the hole boundary, the boundary directly surrounding the boundary C2 (already determined) is the boundary C1
Is determined to directly surround the boundary C2, otherwise the boundary C2 is determined to directly surround the boundary C1.
(手順5)ブランチBの方向Hから追跡を開始して一本
の境界を追跡する。(Procedure 5) Tracking is started from the direction H of the branch B to track one boundary.
なお上記(手順1)ないし(手順5)の具体例につい
ては,第5図を参照して後述される。Specific examples of the above (procedure 1) to (procedure 5) will be described later with reference to FIG.
第4図は,本発明の一実施例を説明する図である。 FIG. 4 is a diagram for explaining an embodiment of the present invention.
第4図において,10はメモリ部,20は境界タイプ決定
部,30は左隣接セグメント抽出部,40は隣接境界決定部,5
0は包囲関係決定部,60は境界追跡部,70は制御部であ
る。In FIG. 4, 10 is a memory unit, 20 is a boundary type determining unit, 30 is a left adjacent segment extracting unit, 40 is an adjacent boundary determining unit, 5
0 is a surrounding relation determination unit, 60 is a boundary tracking unit, and 70 is a control unit.
メモリ部10は,ベクトルデータ,境界データ,境界の
包囲関係を蓄積する部分で,第4図には記載されていな
い外部からベクトルデータが供給される。The memory unit 10 stores vector data, boundary data, and the surrounding relationship of the boundary, and is supplied with vector data from outside (not shown in FIG. 4).
境界タイプ決定部20部は,制御部70よりブランチ番号
を受け取り,メモリ部10に蓄積されているベクトルデー
タを参照しながら上記の手順1を実行して,該ブランチ
の追跡方向を制御部70に出力し,これから追跡する境界
のタイプをメモリ部10及び制御部70に出力する部分であ
る。The boundary type determination unit 20 receives the branch number from the control unit 70, executes the above procedure 1 with reference to the vector data stored in the memory unit 10, and sends the tracking direction of the branch to the control unit 70. This is a part for outputting the boundary type to be tracked to the memory unit 10 and the control unit 70.
左隣接セグメント抽出部30は,制御部70よりブランチ
番号を受け取り,メモリ部10に蓄積されているベクトル
データを参照しながら上記の手順2を実行して,該ブラ
ンチの開始特徴点の左側に隣接するセグメントの番号を
求め,制御部70に出力する部分である。The left adjacent segment extraction unit 30 receives the branch number from the control unit 70, executes the above procedure 2 with reference to the vector data stored in the memory unit 10, and obtains the adjacent left side of the starting feature point of the branch. The number of the segment to be calculated is obtained and output to the control unit 70.
隣接境界決定部40は,制御部70よりブランチ番号及び
隣接セグメント番号を受け取り,メモリ部10に蓄積され
ているベクトルデータ及び境界データを参照しながら上
記の手順3を実行して,これから追跡する境界に隣接す
る境界の番号を制御部70に出力する部分である。The adjacent boundary determination unit 40 receives the branch number and the adjacent segment number from the control unit 70, executes the above-described procedure 3 with reference to the vector data and the boundary data stored in the memory unit 10, and executes the boundary to be tracked from now on. This is a part that outputs the number of the boundary adjacent to the control unit 70 to the control unit 70.
包囲関係決定部50は,制御部70より,これから追跡す
る境界の番号及びその隣接境界の番号を与えられて,上
記の手順4を実行して,これから追跡する境界を直接囲
む境界の番号をメモリ部10に出力する部分である。The surrounding relation determination unit 50 is given the number of the boundary to be tracked and the number of the adjacent boundary by the control unit 70, executes the above-described procedure 4, and stores the number of the boundary directly surrounding the boundary to be tracked from now on in the memory. This is a part to be output to the unit 10.
境界追跡部60は,制御部70より境界番号,ブランチ番
号及びブランチの追跡方向を受け取り,メモリ部10に蓄
積されているベクトルデータを用いて該ブランチの該方
向から境界を一本追跡し,境界番号,該境界の有向ブラ
ンチ番号列をメモリ部10に出力する。ベクトルデータ上
での境界追跡の方法については既に示した方法(特願昭
61−106285号,情報処理学会第33回全国大会講演番号4N
−3)を用いる。The boundary tracking unit 60 receives the boundary number, the branch number, and the branch tracking direction from the control unit 70, tracks one boundary from the direction of the branch using vector data stored in the memory unit 10, and The number and the directed branch number sequence at the boundary are output to the memory unit 10. The method of boundary tracing on vector data has already been described (see
No. 61-106285, IPSJ 33rd National Convention Lecture No. 4N
-3) is used.
制御部70は,メモリ部10に蓄積されているベクトルデ
ータのブランチをその開始特徴点の座標によりTVラスタ
順に並べ,同じ開始特徴点を持つブランチは開始特徴点
に接続しているセグメントの向きにより開始特徴点の左
側から反時計回りの順に並べ,この順序でブランチを調
べて,ブランチの追跡方向のうち少なくとも一方向が未
追跡であるブランチを抽出する。そして,得られたブラ
ンチに対して,境界の包囲関係が抽出されるようにメモ
リ部10ないし境界追跡部60を制御する部分である。The control unit 70 arranges the branches of the vector data stored in the memory unit 10 in the order of the TV raster according to the coordinates of the starting feature point, and the branches having the same starting feature point are determined by the direction of the segment connected to the starting feature point. The branches are arranged in a counterclockwise order from the left of the starting feature points, and the branches are checked in this order to extract a branch in which at least one of the branch tracking directions is untracked. Then, it is a part that controls the memory unit 10 or the boundary tracking unit 60 so that the surrounding relation of the boundary is extracted for the obtained branch.
第5図は,第4図に示した実施例の動作を第1図に示
すベクトルデータを例として説明したものである。FIG. 5 illustrates the operation of the embodiment shown in FIG. 4 using the vector data shown in FIG. 1 as an example.
まず,制御部70は,境界番号を1に初期設定して,ブ
ランチをB1,B2,B3,B4の順に調べる。ブランチB1を調べ
るとき,B1の両方向は未追跡であるため,ブランチ番号B
1及び境界番号1を境界タイプ決定部20に渡して動作さ
せる。First, the control unit 70 initially sets the boundary number to 1, and checks branches in the order of B1, B2, B3, and B4. When examining the branch B1, since both directions of B1 are not tracked, the branch number B
1 and the boundary number 1 are passed to the boundary type determination unit 20 for operation.
次に,境界タイプ決定部20は,最初の状態では,例え
ば特徴点N1でブランチB1の両方向が未追跡であるため,
境界タイプは外周境界,追跡方向は開始特徴点から終了
特徴点への方向とする。そして,これらの情報を制御部
70に出力する。また,メモリ部10に境界番号1の境界は
外周境界であるという情報を書き込む。ブランチB1の場
合,開始特徴点と終了特徴点とは同じであるので,追跡
方向はあいまいである。このような場合,開始特徴点に
接続しているセグメントの向きにより開始特徴点の左側
から反時計回りの順に調べて最初に検出されるセグメン
トS1から出てセグメントS4へ戻る方向を開始特徴点から
終了特徴点の方向とする。Next, in the initial state, for example, since the two directions of the branch B1 are not tracked at the feature point N1,
The boundary type is the outer boundary, and the tracking direction is the direction from the start feature point to the end feature point. Then, the information is sent to the control unit.
Output to 70. Further, information that the boundary of boundary number 1 is the outer boundary is written in the memory unit 10. In the case of the branch B1, since the start feature point and the end feature point are the same, the tracking direction is ambiguous. In such a case, the direction of the segment connected to the starting feature point is checked in the counterclockwise order from the left of the starting feature point, and the direction from the first detected segment S1 and returning to segment S4 is determined from the starting feature point. The direction of the end feature point.
次に,制御部70は,これから追跡する境界が外周境界
であるという情報を境界タイプ決定部20から受け取った
ため,左隣接セグメント抽出部30にブランチ番号B1を与
えて動作させる。Next, the control unit 70 receives the information that the boundary to be tracked is the outer boundary from the boundary type determination unit 20, and thus gives the left adjacent segment extraction unit 30 the branch number B1 to operate.
次に,左隣接セグメント抽出部30は,左隣接するセグ
メントが存在しないことを制御部70に出力する。Next, the left adjacent segment extraction unit 30 outputs to the control unit 70 that there is no left adjacent segment.
次に,制御部70は,隣接境界決定部40に境界のタイプ
として外周境界,左隣接セグメントが存在しないことを
渡し,隣接境界決定部40を動作させる。Next, the control unit 70 informs the adjacent boundary determination unit 40 that the outer boundary and the left adjacent segment do not exist as the boundary type, and operates the adjacent boundary determination unit 40.
次に,隣接境界決定部40は,隣接境界として画像の縁
を制御部70に返す。画像の縁とは,すべての境界を囲む
仮想的な境界であり,包囲関係を木構造であらわすとき
のルートとなる。画像の縁の境界タイプは孔境界であ
る。Next, the adjacent boundary determining unit 40 returns the edge of the image to the control unit 70 as the adjacent boundary. The edge of the image is a virtual boundary surrounding all the boundaries, and is a root when the surrounding relation is represented by a tree structure. The boundary type at the edge of the image is a hole boundary.
次に,制御部70は境界番号と1と隣接境界は画像の縁
であるという情報を包囲関係決定部50に渡して動作させ
る。Next, the control unit 70 passes the information indicating that the boundary number, 1 and the adjacent boundary are the edges of the image to the surrounding relation determination unit 50 and causes the operation to be performed.
次に,包囲関係決定部50は,メモリ部10に蓄積されて
いる境界タイプを参照して,境界番号1の境界を直接囲
む境界は画像の縁であるという情報をメモリ部10に蓄積
する。すなわち,第5図(a)の右側に示すような「画
像の縁−境界1」という包囲関係が抽出された。Next, the surrounding relation determination unit 50 refers to the boundary type stored in the memory unit 10 and stores in the memory unit 10 information that the boundary directly surrounding the boundary of boundary number 1 is an image edge. That is, an enclosing relationship of “image edge—boundary 1” as shown on the right side of FIG. 5A was extracted.
次に,制御部70は,境界番号1,ブランチ番号B1及びそ
の追跡方向として開始特徴点から終了特徴点への方向を
境界追跡部60に与えて動作させる。Next, the control unit 70 operates the boundary tracking unit 60 by giving the boundary number 1, the branch number B1, and the direction from the start feature point to the end feature point as the tracking direction thereof.
次に,境界追跡部60は,境界番号1の境界を構成する
有向ブランチ列として開始特徴点から終了特徴点の方向
のブランチB1をメモリ部10に蓄積する。すなわち,第5
図(a)に破線で示す境界1が抽出された。Next, the boundary tracking unit 60 stores, in the memory unit 10, the branch B1 in the direction from the start feature point to the end feature point as a directed branch sequence forming the boundary of the boundary number 1. That is, the fifth
A boundary 1 indicated by a broken line in FIG.
次に,制御部70は,境界番号を2に設定して,ブラン
チB1の終了特徴点から開始特徴点の方向を調べる。この
方向は未追跡であるため,ブランチ番号B1及び境界番号
2を境界タイプ決定部20に渡して動作させる。Next, the control unit 70 sets the boundary number to 2, and checks the direction from the end feature point to the start feature point of the branch B1. Since this direction has not been tracked, the branch number B1 and the boundary number 2 are passed to the boundary type determination unit 20 for operation.
次に,境界タイプ決定部20は,境界タイプは孔境界,
追跡方向は終了特徴点から開始特徴点への方向とする。
そして,これらの情報を制御部70に出力する。また,メ
モリ部10に境界番号2の境界は孔境界であるという情報
を書き込む。Next, the boundary type determination unit 20 determines that the boundary type is a hole boundary,
The tracking direction is a direction from the end feature point to the start feature point.
Then, the information is output to the control unit 70. Further, information that the boundary of the boundary number 2 is a hole boundary is written in the memory unit 10.
次に,制御部70は,隣接境界決定部40に境界のタイプ
として孔境界,ブランチ番号B1を隣接境界決定部40に渡
して動作させる。Next, the control unit 70 passes the hole boundary and the branch number B1 as the boundary type to the adjacent boundary determining unit 40 and causes the adjacent boundary determining unit 40 to operate.
次に,隣接境界決定部40は,隣接境界として境界1を
制御部70に返す。Next, the adjacent boundary determining unit 40 returns the boundary 1 to the control unit 70 as the adjacent boundary.
次に,制御部70は,境界番号2及び隣接境界番号1を
包囲関係決定部50に渡して動作させる。Next, the control unit 70 passes the boundary number 2 and the adjacent boundary number 1 to the surrounding relation determination unit 50 to operate.
次に,包囲関係決定部50は,メモリ部10に記憶されて
いる境界タイプを参照して,境界番号2の境界を直接囲
む境界は境界1であるという情報をメモリ部10に蓄積す
る。すなわち,第5図(b)の右側に示すような包囲関
係が抽出された。Next, the surrounding relation determination unit 50 refers to the boundary type stored in the memory unit 10 and accumulates information in the memory unit 10 that the boundary directly surrounding the boundary of the boundary number 2 is the boundary 1. That is, the surrounding relation as shown on the right side of FIG. 5 (b) was extracted.
次に,制御部70は,境界番号2,ブランチ番号B1及びそ
の追跡方向として終了特徴点から開始特徴点への方向を
境界追跡部60に与えて動作させる。Next, the control unit 70 operates the boundary tracking unit 60 by giving the boundary number 2, the branch number B1, and the direction from the end feature point to the start feature point as the tracking direction thereof.
次に,境界追跡部60は,境界番号2の境界を構成する
有向ブランチ列として終了特徴点から開始特徴点への方
向のブランチB1をメモリ部10に蓄積する。すなわち,第
5図(b)に破線で示す境界2が抽出された。Next, the boundary tracking unit 60 stores in the memory unit 10 the branch B1 in the direction from the end feature point to the start feature point as a directed branch sequence forming the boundary of the boundary number 2. That is, the boundary 2 indicated by the broken line in FIG. 5 (b) was extracted.
次に,制御部70は,境界番号を3に設定して,ブラン
チB2を調べたとき,B2の両方向は未追跡であるため,ブ
ランチ番号B2及び境界番号3を境界タイプ決定部20に渡
して動作させる。Next, the control unit 70 sets the boundary number to 3, and when examining the branch B2, since both directions of B2 have not been tracked, the control unit 70 passes the branch number B2 and the boundary number 3 to the boundary type determination unit 20. Make it work.
次に,境界タイプ決定部20は,ブランチB2の両方向は
未追跡であるため,境界タイプは外周境界,追跡方向は
開始特徴点から終了特徴点への方向とする。そして,こ
れらの情報を制御部70に出力する。また,メモリ部10に
境界番号3の境界は外周境界であるという情報を書き込
む。Next, the boundary type determination unit 20 sets the boundary type as the outer peripheral boundary and the tracking direction as the direction from the start feature point to the end feature point, since both directions of the branch B2 have not been tracked. Then, the information is output to the control unit 70. Further, information that the boundary of the boundary number 3 is the outer peripheral boundary is written in the memory unit 10.
次に,制御部70は,これから追跡する境界が外周境界
であるという情報を境界タイプ決定部20から受け取った
ため,左隣接セグメント抽出部30にブランチ番号B2を与
えて動作させる。Next, the control unit 70 receives the information that the boundary to be tracked is the outer peripheral boundary from the boundary type determination unit 20, and thus gives the left adjacent segment extraction unit 30 the branch number B2 to operate.
次に,左隣接セグメント抽出部30は,左隣接するセグ
メント番号S3を制御部70に出力する。Next, the left adjacent segment extraction unit 30 outputs the left adjacent segment number S3 to the control unit 70.
次に,制御部70は,隣接境界決定部40に境界のタイプ
として外周境界,左端隣接セグメント番号S3を渡し,隣
接境界決定部40を動作させる。Next, the control unit 70 passes the outer boundary and the left end adjacent segment number S3 as the boundary type to the adjacent boundary determining unit 40, and operates the adjacent boundary determining unit 40.
次に,隣接境界決定部40は,隣接境界番号として1を
制御部70に返す。Next, the adjacent boundary determining unit 40 returns 1 to the control unit 70 as the adjacent boundary number.
次に,制御部70は,境界番号3と隣接境界番号1を包
囲関係決定部50に渡して動作させる。Next, the control unit 70 passes the boundary number 3 and the adjacent boundary number 1 to the surrounding relation determination unit 50 to operate.
次に,包囲関係決定部50は,メモリ部10に格納されて
いる境界タイプを参照して,境界番号3の境界を直接囲
む境界は画像の縁であるという情報をメモリ部10に蓄積
する。すなわち,第5図(c)の右側に示すような包囲
関係が抽出された。Next, the surrounding relation determining unit 50 refers to the boundary type stored in the memory unit 10 and accumulates in the memory unit 10 information that the boundary directly surrounding the boundary of the boundary number 3 is an image edge. That is, the surrounding relation as shown on the right side of FIG. 5 (c) was extracted.
次に,制御部70は,境界番号3,ブランチ番号B2及びそ
の追跡方向として開始特徴点から終了特徴点への方向を
境界追跡部60に与えて動作させる。Next, the control unit 70 gives the boundary tracking unit 60 the boundary number 3, the branch number B2, and the direction from the start feature point to the end feature point as its tracking direction, and operates the boundary tracking unit 60.
次に,境界追跡部60は,開始特徴点から終了特徴点へ
の方向のB2,終了特徴点から開始特徴点への方向のB2,開
始特徴点から終了特徴点への方向のB3,終了特徴点から
開始特徴点への方向のB3を境界番号3の境界を構成する
有向ブランチ列としてメモリ部10に蓄積する。すなわ
ち,第5図(c)に破線で示す境界3が抽出された。Next, the boundary tracking unit 60 calculates B2 in the direction from the start feature point to the end feature point, B2 in the direction from the end feature point to the start feature point, B3 in the direction from the start feature point to the end feature point, and the end feature. B3 in the direction from the point to the starting feature point is stored in the memory unit 10 as a directed branch sequence forming the boundary of boundary number 3. That is, the boundary 3 indicated by the broken line in FIG. 5 (c) was extracted.
以下同様にして処理を進めると,第5図(d)に示し
た結果が得られる。When the processing is performed in the same manner, the result shown in FIG. 5D is obtained.
なお,本発明で示した方法は,ブランチを調べる方法
としてTVラスタ(すなわち,左上から右下へ一行ずつ処
理を進める)を用いる方法であるが,他のラスタを用い
る方法も,この方法から容易に導出できる。Note that the method described in the present invention uses a TV raster (that is, processing proceeds line by line from the upper left to the lower right) as a method for examining branches. However, a method using other rasters can be easily obtained from this method. Can be derived.
以上述べたように,本発明によれば,ベクトルデータ
だけを用いて,境界の包囲関係が抽出できる。従って,
従来方法のように画像処理が必要でないので処理時間が
短縮できる。会話的に作成されたベクトルデータにも適
用できるという効果がある。As described above, according to the present invention, the surrounding relation of the boundary can be extracted using only the vector data. Therefore,
Since image processing is not required unlike the conventional method, the processing time can be reduced. There is an effect that it can be applied to vector data created interactively.
第1図ないし第3図は本発明の原理説明図であって,第
1図はベクトルデータを説明する図,第2図は境界の包
囲関係を説明する図,第3図は左隣接セグメントの決め
方を説明する図を表わす。また第4図は本発明の一実施
例を説明する図,第5図は実施例の動作を説明する図で
ある。 10……メモリ部,20……境界タイプ決定部,30……左隣接
セグメント抽出部,40……隣接境界決定部,50……包囲関
係決定部,60……境界追跡部,70……制御部。1 to 3 are diagrams for explaining the principle of the present invention. FIG. 1 is a diagram for explaining vector data, FIG. 2 is a diagram for explaining the surrounding relation of a boundary, and FIG. FIG. FIG. 4 is a diagram for explaining an embodiment of the present invention, and FIG. 5 is a diagram for explaining the operation of the embodiment. 10 memory unit, 20 boundary type determination unit, 30 left adjacent segment extraction unit, 40 adjacent boundary determination unit, 50 surrounding relation determination unit, 60 boundary tracking unit, 70 control Department.
Claims (2)
グメント抽出部と、隣接境界決定部と、包囲関係決定部
と、境界追跡部とを用い、 特徴点と、2つの特徴点を結ぶ線分列であるブランチ
と,ブランチを構成する線分であるセグメントとからな
るベクトルデータを蓄積し、 前記ベクトルデータから、境界の包囲関係を抽出する方
法であって、 (A)前記制御部において、前記ブランチをその開始特
徴点の座標によりTVラスタ順に並べ、この順序で前記ブ
ランチを調べて、前記ブランチの追跡方向のうち少なく
とも一方向が未追跡であるブランチBを抽出する第1の
過程と、 (B)前記境界タイプ決定部において、前記ブランチB
の両方向が未追跡ならば、これから追跡する境界C1のタ
イプを外周境界とし、ブランチBの追跡方向を開始特徴
点から終了特徴点への方向とし、 前記ブランチBの一方向だけが未追跡ならば、これから
追跡する境界C1のタイプを孔境界、前記ブランチBの追
跡方向を未追跡である方向とする第2の過程と、 (C)前記左隣接セグメント抽出部において、前記境界
C1のタイプが外周境界であるならば、前記第1の過程に
より得られたブランチの開始特徴点にたいして、水平で
あるセグメントを除いたセグメントの中から、左に隣接
する左隣接セグメントを抽出する第3の過程と、 (D)前記隣接境界決定部において、前記境界C1のタイ
プが外周境界であるならば、前記左隣接セグメントの2
方向のうち前記ブランチBの開始特徴点を右にみる方向
が属する境界を隣接境界C2とし、 前記境界C1のタイプが孔境界であるならば、前記ブラン
チBの追跡済みである方向が属する境界を隣接境界C2と
する第4の過程と、 (E)前記包囲関係決定部において、前記境界C1のタイ
プと前記隣接境界C2のタイプがともに外周境界またはと
もに孔境界ならば、前記境界C2を直接囲む境界が前記境
界C1も直接囲むとし、 その他ならば前記境界C2が前記境界C1を直接囲むと決定
する第5の過程と、 (F)前記境界追跡部において、前記ブランチBを前記
第2の過程で得られた方向に追跡して一本の境界C1を追
跡する第6の過程と、 を有することを特徴とする境界の包囲関係抽出処理方
法。A control unit, a boundary type determining unit, a left adjacent segment extracting unit, an adjacent boundary determining unit, an enclosing relationship determining unit, and a boundary tracking unit; A method of accumulating vector data including a branch that is a series of line segments to be connected and a segment that is a line segment forming the branch, and extracting an enclosing relationship of a boundary from the vector data, wherein (A) the control unit A first step of arranging the branches in TV raster order according to the coordinates of their starting feature points, examining the branches in this order, and extracting a branch B in which at least one of the tracing directions of the branch is untracked. (B) In the boundary type determination unit, the branch B
If both directions are not tracked, the type of the boundary C1 to be tracked is set as the outer circumferential boundary, the tracking direction of the branch B is set as the direction from the start feature point to the end feature point, and if only one direction of the branch B is untracked, A second process in which the type of the boundary C1 to be tracked from now on is a hole boundary, and the tracking direction of the branch B is an untracked direction; and (C) in the left adjacent segment extraction unit, the boundary
If the type of C1 is an outer peripheral boundary, a left adjacent segment that extracts a left adjacent segment from the segments excluding the horizontal segments with respect to the starting feature point of the branch obtained in the first process is extracted. And (D) in the adjacent boundary determining unit, if the type of the boundary C1 is an outer boundary,
The boundary to which the direction in which the starting feature point of the branch B is viewed to the right belongs to the adjacent boundary C2. If the type of the boundary C1 is a hole boundary, the boundary to which the tracked direction of the branch B belongs is defined. A fourth step of setting the adjacent boundary C2; and (E) the enclosing relation determining unit directly surrounds the boundary C2 if the type of the boundary C1 and the type of the adjacent boundary C2 are both an outer boundary or a hole boundary. A fifth step of determining that the boundary directly encloses the boundary C1; otherwise, determining that the boundary C2 directly encloses the boundary C1; and (F) in the boundary tracking section, the second step of dividing the branch B into the second step. A sixth process of tracing a single boundary C1 by tracing in the direction obtained in (1).
グメント抽出部と、隣接境界決定部と、包囲関係決定部
と、境界追跡部とをそなえ、 特徴点と、2つの特徴点を結ぶ線分列であるブランチ
と,ブランチを構成する線分であるセグメントとからな
るベクトルデータを蓄積した上で 前記ベクトルデータから、境界の包囲関係を抽出する境
界の包囲関係抽出処理装置であって、 (A)前記制御部が、前記ブランチをその開始特徴点の
座標によりTVラスタ順に並べ、この順序で前記ブランチ
を調べて、前記ブランチの追跡方向のうち少なくとも一
方向が未追跡であるブランチBを抽出するよう構成さ
れ、 (B)前記境界タイプ決定部が、前記ブランチBの両方
向が未追跡ならば、これから追跡する境界C1のタイプを
外周境界とし、ブランチBの追跡方向を開始特徴点から
終了特徴点への方向として、前記ブランチBの一方向だ
けが未追跡ならば、これから追跡する境界C1のタイプを
孔境界、前記ブランチBの追跡方向を未追跡である方向
とするよう構成され、 (C)前記左隣接セグメント抽出部が、前記境界C1のタ
イプが外周境界であるならば、前記第1の過程により得
られたブランチの開始特徴点にたいして、水平であるセ
グメントを除いたセグメントの中から、左に隣接する左
隣接セグメントを抽出するよう構成され、 (D)前記隣接境界決定部が、前記境界C1のタイプが外
周境界であるならば、前記左隣接セグメントの2方向の
うち前記ブランチBの開始特徴点を右にみる方向が属す
る境界を隣接境界C2として、前記境界C1のタイプが孔境
界であるならば、前記ブランチBの追跡済みである方向
が属する境界を隣接境界C2とするよう構成され、 (E)前記包囲関係決定部が、前記境界C1のタイプと前
記隣接境界C2のタイプがともに外周境界またはともに孔
境界ならば、前記境界C2を直接囲む境界が前記境界C1も
直接囲むとし、その他ならば前記境界C2が前記境界C1を
直接囲むと決定するよう構成され、 (F)前記境界追跡部が、前記ブランチBを前記第2の
過程で得られた方向に追跡して一本の境界C1を追跡する
よう構成された ことを特徴とする境界の包囲関係抽出処理装置。2. A control unit, a boundary type determining unit, a left adjacent segment extracting unit, an adjacent boundary determining unit, an enclosing relationship determining unit, and a boundary tracking unit, wherein a feature point and two feature points are determined. A boundary surrounding relation extraction processing apparatus for storing vector data including a branch as a series of connecting line segments and a segment as a line segment forming the branch, and extracting a surrounding relation of the boundary from the vector data. (A) The control unit arranges the branches in TV raster order according to the coordinates of the starting feature point, examines the branches in this order, and determines a branch B in which at least one of the tracking directions of the branches is untracked. (B) if both directions of the branch B are not tracked, the boundary type determination unit sets the type of the boundary C1 to be tracked from now on as the outer boundary, If the tracking direction is the direction from the start feature point to the end feature point, and only one direction of the branch B is untracked, the type of the boundary C1 to be tracked from now on is the hole boundary, and the tracking direction of the branch B is untracked. (C) the left adjacent segment extraction unit is horizontal with respect to the starting feature point of the branch obtained in the first process if the type of the boundary C1 is an outer boundary. (D) the adjacent boundary determining unit is configured to extract the left adjacent segment from the segment excluding the segment if the type of the boundary C1 is an outer boundary. If the type of the boundary C1 is a hole boundary, the boundary to which the direction in which the starting feature point of the branch B looks to the right of the two directions belongs is defined as the adjacent boundary C2. (E) the surrounding relation determination unit determines that the type of the boundary C1 and the type of the adjacent boundary C2 are both an outer boundary or a hole boundary, The boundary directly surrounding the boundary C2 is also configured to directly surround the boundary C1; otherwise, the boundary C2 is determined to directly surround the boundary C1. (F) The boundary tracking unit sets the branch B to A boundary surrounding extraction processing apparatus characterized by being configured to track one boundary C1 by tracking in the direction obtained in the second step.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2245373A JP2974744B2 (en) | 1990-09-14 | 1990-09-14 | Boundary surrounding relation extraction processing method and processing apparatus therefor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2245373A JP2974744B2 (en) | 1990-09-14 | 1990-09-14 | Boundary surrounding relation extraction processing method and processing apparatus therefor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04124781A JPH04124781A (en) | 1992-04-24 |
| JP2974744B2 true JP2974744B2 (en) | 1999-11-10 |
Family
ID=17132698
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2245373A Expired - Fee Related JP2974744B2 (en) | 1990-09-14 | 1990-09-14 | Boundary surrounding relation extraction processing method and processing apparatus therefor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2974744B2 (en) |
-
1990
- 1990-09-14 JP JP2245373A patent/JP2974744B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04124781A (en) | 1992-04-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111950424B (en) | Video data processing method and device, computer and readable storage medium | |
| US5987173A (en) | Interactive drawing recognition processing method and apparatus thereof | |
| JPH01307879A (en) | Pattern recognizing device | |
| JPH01307878A (en) | Pattern recognizing device | |
| JPH02263277A (en) | Line image vectorization method | |
| JP2974744B2 (en) | Boundary surrounding relation extraction processing method and processing apparatus therefor | |
| US5563995A (en) | Method and system for directly drawing a convex polygon having a given number of vertices with high speed | |
| JPH03194657A (en) | Graphic processor | |
| JPH11134509A (en) | Drawing recognition processing method and architectural drawing recognition processing method | |
| JP2878194B2 (en) | Partial erasure and partial detection method of image data | |
| EP4492321A1 (en) | Image processing method and apparatus, and storage medium, electronic device and product | |
| JPH01161487A (en) | Object recognizing method | |
| JPS62274467A (en) | Intellectual conversation processing method | |
| CN116823684B (en) | Image processing methods, apparatus, electronic devices and storage media | |
| US20010016070A1 (en) | Object extraction device, object extraction method, and recording media for storing an object extraction program | |
| JP2867650B2 (en) | Symbol candidate area detection method | |
| JPH0325823B2 (en) | ||
| JPH01229383A (en) | Topological structure extracting method | |
| JP2557872B2 (en) | Image feature extraction method | |
| JP2001222718A (en) | Image data conversion method, image data conversion system, and computer-readable storage medium | |
| JPH04155589A (en) | Segment integrating method | |
| JP4154023B2 (en) | Image composition method, image composition apparatus, image composition system, and storage medium | |
| JP3335032B2 (en) | Image connected component extraction device | |
| JPH01282685A (en) | Closed loop extracting system for linear graphic | |
| JPS6290782A (en) | Picture symbolizing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |