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
JP2552653B2 - Superposed figure separation method - Google Patents
[go: Go Back, main page]

JP2552653B2 - Superposed figure separation method - Google Patents

Superposed figure separation method

Info

Publication number
JP2552653B2
JP2552653B2 JP61138165A JP13816586A JP2552653B2 JP 2552653 B2 JP2552653 B2 JP 2552653B2 JP 61138165 A JP61138165 A JP 61138165A JP 13816586 A JP13816586 A JP 13816586A JP 2552653 B2 JP2552653 B2 JP 2552653B2
Authority
JP
Japan
Prior art keywords
loop
line
line segment
branch point
branch
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
Application number
JP61138165A
Other languages
Japanese (ja)
Other versions
JPS62295185A (en
Inventor
智 鈴木
豊通 山田
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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP61138165A priority Critical patent/JP2552653B2/en
Publication of JPS62295185A publication Critical patent/JPS62295185A/en
Application granted granted Critical
Publication of JP2552653B2 publication Critical patent/JP2552653B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】 (発明の属する技術分野) 本発明は、地図や図面などの線画において、重畳して
いる図形を分離する方法に関するものである。
Description: TECHNICAL FIELD The present invention relates to a method of separating overlapping figures in a line drawing such as a map or a drawing.

(従来の技術) 地図や図面などの線分で構成されている線画を画像と
して計算機に入力した場合に、画像処理の対象となる線
図形が、例えば道路を表わす線図形や家屋を表わす線図
形毎には区別されておらず混在したり、異なる種類の線
図形の構成する部分どうしが互いに重なったままになっ
ていることがある。このような線図形のままでは地図や
図形のデータベースとしては活用することができないの
で、入力された線図形の中から例えば、道路を表わす線
図形だけ、あるいは家屋を表わす線図形だけ等というよ
うに、それぞれを線図形単位に分離して抽出する必要が
生じてくる。そこで、入力された線図形の中から、背景
領域を囲む線図形をループ図形と呼ぶことにするが、こ
のループ図形を構成している部分が、他のループ図形の
構成部分でもある場合には、ループ図形どうしが重畳し
ているので、その重畳している構成部分を分離して抽出
するという処理を行う必要がある。ループ図形を抽出
し、その図形とその他の図形とが重畳している部分だけ
を抽出する従来方法として、ループ図形上にない線分か
らループ図形を通り、ループ図形上にない線分に至る直
線を抽出して、その直線上、かつループ図形上にある部
分を重畳部分とする方法(情報処理学会第31回全国大
会、6N−1)がある。
(Prior Art) When a line drawing composed of line segments such as a map or a drawing is input as an image into a computer, the line drawing subject to image processing is, for example, a line drawing representing a road or a line drawing representing a house. There is a case in which they are not distinguished from each other, and they are mixed, or parts of different types of line figures remain overlapped with each other. Since such line figures cannot be used as a map or a database of figures, for example, only line figures representing roads or only line figures representing houses can be selected from the input line figures. , It becomes necessary to separate and extract each of them in units of line figures. Therefore, among the input line figures, the line figure that surrounds the background area is called a loop figure. If the part that constitutes this loop figure is also the part that constitutes another loop figure, Since the loop figures are superposed on each other, it is necessary to perform a process of separating and extracting the superposed constituent parts. As a conventional method of extracting a loop figure and extracting only the part where the figure and other figures overlap, a straight line from a line segment that is not on the loop figure to a line segment that is not on the loop figure is extracted. There is a method of extracting and making a portion on the straight line and on the loop graphic a superposed portion (31st National Convention of Information Processing Society of Japan, 6N-1).

しかし、第1図に示すように、単調な折れ線とループ
図形が重畳した場合、重畳部分がループ図形上にない線
分間を結ぶ直線上にないために重畳部分を抽出できない
という問題があった。
However, as shown in FIG. 1, when the monotonous polygonal line and the loop figure are superposed, there is a problem that the superposed section cannot be extracted because the superposed section is not on the straight line connecting the line segments that are not on the loop figure.

第1図において、第1図(a)は入力図形、第1図
(b)はループ図形以外の図形の従来方法による抽出結
果である。
In FIG. 1, FIG. 1 (a) is an input graphic, and FIG. 1 (b) is the extraction result of a graphic other than the loop graphic by the conventional method.

図中、1はループ図形以外の図形で細い線で表わし、
2はループ図形とその他の図形の重畳部分で太い線で表
わし、3は分岐点で黒丸で表わす。
In the figure, 1 is a figure other than the loop figure and is represented by a thin line,
Reference numeral 2 denotes a superimposing portion of a loop graphic and other graphics, which is represented by a thick line, and 3 is a branch point, which is represented by a black circle.

また、分岐点3の一部をP1,P2,…,P6と表わし、線分
の部をL1,L2,…,L12と表わす。
A part of P 1, P 2 of the branching point 3, ... represent a P 6, representing the part of the line segment L 1, L 2, ..., and L 12.

第1図に示す重畳は、地図中の建物を表わす線図形と
道路を表わす線図形の間で生じる。
The superposition shown in FIG. 1 occurs between a line graphic representing a building and a line graphic representing a road in the map.

すなわち、1つのループ図形は1つの建物を表わし、
建物がかたまって街区をなすとき、上記の重畳部は道路
の一方の側を表わしている。
That is, one loop figure represents one building,
When the buildings are grouped together to form a block, the overlapping portion represents one side of the road.

従来方法では、ループ図形上にない線分がL1とL9だけ
しかなく、それらを結ぶ直線は存在しないため、上記の
重畳部分を抽出することができないという問題点があっ
た。
The conventional method has a problem in that it is not possible to extract the above-mentioned overlapping portion because there are only line segments L 1 and L 9 that are not on the loop figure and there is no straight line that connects them.

(発明の目的) 本発明は、従来方式の欠点を解決するために、1つの
ループ図形を1つずつ抽出し、注目している1つのルー
プ図形以外の線分から、注目ループ図形上を通って、注
目している1つのループ図形以外の線分に至る単調な折
れ線を抽出し、注目ループ図形の上でその折れ線上にあ
る部分を他の図形との重畳部分としたものである。
(Object of the Invention) In order to solve the drawbacks of the conventional method, the present invention extracts one loop figure at a time and passes from the line segment other than the one loop figure of interest to the loop figure of interest. A monotonous polygonal line that extends to a line segment other than the one loop figure of interest is extracted, and the portion on the polygonal line on the loop figure of interest is made to be a superimposed portion with another figure.

(発明の構成および作用) 第2図は、本発明の重畳図形分離方法を説明する図で
ある。
(Structure and Action of the Invention) FIG. 2 is a diagram for explaining the superimposed figure separating method of the present invention.

第2図において、第2図(a)は入力図形であり第1
図(a)と同じものである。
In FIG. 2, FIG. 2 (a) is an input figure
It is the same as FIG.

第2図(b)はループ図形以外の図形の本発明による
抽出結果を示す。
FIG. 2 (b) shows the extraction result according to the present invention of figures other than loop figures.

本発明では、第1に1つのループ図形を抽出する。 In the present invention, first, one loop figure is extracted.

この抽出方法の具体的な手順はイメージデータとベク
トルデータの両方に対して、参考文献“特願昭61−5050
9号”に詳細に記述されているので省略する。
The specific procedure of this extraction method is described in the reference “Japanese Patent Application No. 61-5050” for both image data and vector data.
Since it is described in detail in "No. 9," it is omitted.

例えば、ループ図形L4・L8・L12・L7が抽出されたと
する。
For example, a loop shape L 4 · L 8 · L 12 · L 7 is extracted.

第2に、ループ図形L4・L8・L12・L7上にある分岐点
(分岐点とは接続する線分が3本以上ある点である。)
のうち、そのループ図形以外の他の図形上にある点をそ
の分岐点の近傍に有するものP3、P6が抽出される。な
お、点Aと点Bが隣り合う場合、点Aは点Bを近傍に持
つ、または点Aは近傍点Bを持つ、という。
Second, a branch point located on the loop shape L 4 · L 8 · L 12 · L 7 ( the branch point is a point that a line segment connecting the three or more.)
Among these, points P 3 and P 6 having points on other figures other than the loop figure near the branch point are extracted. When the point A and the point B are adjacent to each other, the point A has the point B in the vicinity, or the point A has the neighbor point B.

第3に、これらの分岐点の中から、注目ループ図形に
おいて隣り合う分岐点の対(P3、P6)が抽出される。
Thirdly, a pair (P 3 , P 6 ) of adjacent branch points in the loop figure of interest is extracted from these branch points.

第4に、第2の過程において抽出された分岐点P3、P6
に接続し、かつ注目ループ図形L4・L8・L12・L7以外の
図形にある線分L3、L11が抽出される。
Fourth, branch points P 3 and P 6 extracted in the second process
The line segments L 3 and L 11 that are connected to the loop pattern L and are located in a figure other than the loop figure L 4 , L 8 , L 12, and L 7 of interest are extracted.

第5に、第3の過程において抽出した分岐点対の各々
について、次の処理を行う。一方の分岐点に接続する線
分から分岐点対の間にある線分列を通り、他方の分岐点
に接続する線分に至る折れ線の中に、単調な折れ線を構
成するものがあるならば、単調な折れ線上にあるループ
図形部分を他の図形が重畳する部分とする。
Fifth, the following processing is performed on each of the branch point pairs extracted in the third step. If there is a monotonous polygonal line among the polygonal lines from the line segment connected to one branch point to the line segment connected between the pair of branch points and the line segment connected to the other branch point, The loop figure portion on the monotonous polygonal line is the portion where other figures overlap.

ここで、単調な折れ線とは、その折れ線上のすべての
分岐点において、分岐点に入ってくる線分と、出ていく
線分とのなす角度が、予め与えられたθ(例えば、5
゜)以内にあるものとする。
Here, the monotonous polygonal line means that at all branch points on the polygonal line, the angle formed by the line segment entering the branch point and the line segment emerging therefrom is given in advance by θ (for example, 5
Within ゜).

注目ループ図形L4・L8・L12・L7に対して、まず、分
岐点対(P3,P6)を選択して、2つの折れ線L3・L4・L8
・L12・L11と、L3・L7・L11の中に単調な折れ線がある
かを調べる。
With respect to the target loop shape L 4 · L 8 · L 12 · L 7, firstly, select the branch point pair (P 3, P 6), 2 single fold line L 3 · L 4 · L 8
・ Check if there are monotonous polygonal lines in L 12 , L 11 , and L 3 , L 7 , L 11 .

L3・L4・L8・L12・L11は、分岐点P3における2つの線
分L3とL4との角度と、分岐点P6における2つの線分L12
とL11との角度が共にθ以内であるために、単調な折れ
線と判定される。
L 3 · L 4 · L 8 · L 12 · L 11 is the angle between the two line segments L 3 and L 4 at the branch point P 3, the branch point two line segments L 12 in P 6
Since both the angles of L 11 and L 11 are within θ, it is determined as a monotonous polygonal line.

線分L4とL8との角度及び線分L8とL12との角度はθ以
内ではないが、線分L4とL8との間の点は分岐点ではな
く、線分L8とL12との間の点も分岐点ではないので、そ
れらの角度は問題にしない。そこで、折れ線L3・L4・L8
・L12・L11は単調な折れ線と判定されている。
The angle between the line segments L 4 and L 8 and the angle between the line segments L 8 and L 12 are not within θ, but the point between the line segments L 4 and L 8 is not a branch point but the line segment L 8 The points between and L 12 are also not bifurcations, so their angles do not matter. Therefore, the polygonal lines L 3 , L 4 , L 8
· L 12 · L 11 is determined monotonic polygonal line.

曲線L3・L7・L11は、分岐点P3における2つの線分L3
とL7との角度と、分岐点P6における2つの線分L7とL11
との角度がθ以内にないため、単調でない曲線と判定さ
れる。
The curves L 3 , L 7 and L 11 are the two line segments L 3 at the branch point P 3 .
And the angle between L 7 and the two line segments L 7 and L 11 at the junction P 6 .
Since the angle between and is not within θ, it is determined to be a non-monotonic curve.

従って、単調な折れ線L3・L4・L8・L12・L11とループ
図形L4・L8・L12・L7との共通部分である線分L4,L8,L12
が重畳部分となる。
Therefore, the line segment L 4 , L 8 , L 12 , which is the common part of the monotonous polygonal line L 3 , L 4 , L 8 , L 12 , L 11 and the loop figure L 4 , L 8 , L 12 , L 7.
Is the overlapping portion.

次に、残りの分岐点対について同様な処理を行う。注
目ループ図形L4・L8・L12・L7に対しては(P3,P6)以外
の分岐点対がないため、第5の過程を終了する。次に、
注目ループ図形としてL3・L7・L11・L6が抽出される。
この注目ループの分岐点対として、対(P2,P3)、(P3,
P6)、(P6,P5)、(P5,P2)が抽出される。対(P2,
P3)に対して、折れ線L2・L3・L4が抽出され、線分L2
L3との角度及び線分L3とL4との角度がともにθ以内であ
るので、折れ線L2・L3・L4は単調な折れ線と判定され
る。対(P3,P6)に対して、折れ線L4,L7,L12が抽出さ
れ、線分L4とL7との角度がθ以内でないので、折れ線
L4,L7,L12は単調な折れ線ではないと判定される。対(P
6,P5)に対して、折れ線L12・L11・L10が抽出され、線
分L12とL11との角度及び線分L11とL10との角度がともに
θ以内であるので、折れ線L12・L11・L10は単調な折れ
線と判定される。対(P5,P2)に対して、折れ線がL10
L6・L2が抽出され、線分L10とL6との角度がθ以内でな
いので、折れ線L10・L6・L2は単調な折れ線ではないと
判定される。従って、ループ図形L3・L7・L11・L6と単
調な折れ線L2・L3・L4との共通部分である線分L3と、ル
ープ図形L3・L7・L11・L6と単調な折れ線L12・L11・L10
との共通部分である線分L11とが重畳部分として抽出さ
れる。以下同様に、1つずつループ図形を抽出して、上
記の手順を繰り返し適用する。
Next, similar processing is performed on the remaining pairs of branch points. Since with respect to the target loop shape L 4 · L 8 · L 12 · L 7 (P 3, P 6) is no other than the branch point pairs, it ends the fifth process. next,
L 3 , L 7 , L 11, and L 6 are extracted as the loop figure of interest.
As the pair of branch points of this loop of interest, the pair (P 2 , P 3 ), (P 3 ,
P 6), (P 6, P 5), (P 5, P 2) is extracted. Pair (P 2 ,
The polygonal lines L 2 , L 3 and L 4 are extracted for P 3 ), and the line segment L 2 and
Since the angle with L 3 and the angle with the line segments L 3 and L 4 are both within θ, the polygonal lines L 2 , L 3, and L 4 are determined to be monotonous polygonal lines. The polygonal lines L 4 , L 7 , and L 12 are extracted for the pair (P 3 , P 6 ), and the angle between the line segments L 4 and L 7 is not within θ.
It is determined that L 4 , L 7 , and L 12 are not monotonic polygonal lines. Pair (P
6 and P 5 ), the polygonal lines L 12 , L 11, and L 10 are extracted, and the angle between the line segments L 12 and L 11 and the angle between the line segments L 11 and L 10 are both within θ. The polygonal lines L 12 , L 11 and L 10 are determined as monotonous polygonal lines. For the pair (P 5 , P 2 ), the polygonal line is L 10
Since L 6 and L 2 are extracted and the angle between the line segments L 10 and L 6 is not within θ, it is determined that the polygonal line L 10 L 6 and L 2 is not a monotonous polygonal line. Therefore, the line segment L 3 which is the common part of the loop figure L 3 , L 7 , L 11 , L 6 and the monotonous polygonal line L 2 , L 3 , L 4 and the loop figure L 3 , L 7 , L 11 , L 6 and monotonous polygonal line L 12 , L 11 , L 10
The line segment L 11 that is a common part of the and is extracted as the overlapping part. Similarly, the loop figures are extracted one by one and the above procedure is repeatedly applied.

これにより、第2図に示すように、本発明は、第1図
に示した従来方式の問題点を解決する。
As a result, as shown in FIG. 2, the present invention solves the problem of the conventional method shown in FIG.

第3図は、本発明をイメージデータに対して適用する
例を説明する図である。
FIG. 3 is a diagram illustrating an example in which the present invention is applied to image data.

第3図において、4は画像メモリ部、5は細線化部、
6は重畳イメージ図形分離部、7は制御部である。
In FIG. 3, 4 is an image memory unit, 5 is a thinning unit,
Reference numeral 6 is a superimposed image figure separation unit, and 7 is a control unit.

画像メモリ部4は、地図や図面などをディジタル画像
として蓄積する部分で、第3図には記載されていない外
部からディジタル画像が供給される。
The image memory section 4 is a section for accumulating maps, drawings and the like as digital images, and digital images are supplied from the outside not shown in FIG.

細線化部5は、画像メモリ部4に蓄積されているディ
ジタル画像に含まれる線図形を幅1画素の中心線に変換
して、中心線上にある画素の値を1に、その他の画素の
値を0に変換した細線化画像を画像メモリ部4に格納す
る。
The thinning unit 5 converts a line figure included in the digital image stored in the image memory unit 4 into a center line having a width of 1 pixel, sets the value of the pixel on the center line to 1, and the value of other pixels. The thinned image in which is converted to 0 is stored in the image memory unit 4.

細線化の方法については、幾つかの方法が知られてい
る(電子通信学会,技術研究報告,PRL75−66など)が、
それらのいずれでもよい。
Regarding the thinning method, some methods are known (IEICE, Technical Research Report, PRL75-66, etc.),
Any of them may be used.

重畳イメージ図形分離部6は、画像メモリ部4に蓄積
されている細線化画像からループ図形を抽出し、ループ
図形が他の図形と重畳している部分を抽出して、ループ
図形上にあり、かつ他の図形と重畳していない部分を画
像メモリ部4に蓄積されている細線化画像上で値2の画
素に変換する。
The superposed image figure separation unit 6 extracts a loop figure from the thinned image stored in the image memory unit 4, extracts a portion where the loop figure is superposed on another figure, and is on the loop figure, Further, the portion not superposed on other figures is converted into pixels of value 2 on the thinned image accumulated in the image memory unit 4.

制御部7は、画像メモリ部4にディジタル画像が入力
されたとき、細線化部5を動作させ、その後に重畳イメ
ージ図形分離部6を動作させるように全体を制御する部
分である。
The control unit 7 is a unit that controls the whole so that when the digital image is input to the image memory unit 4, the thinning unit 5 is operated and then the superimposed image figure separation unit 6 is operated.

第4図は、第3図の構成要素である重畳イメージ図形
分離部6をさらに説明する図である。
FIG. 4 is a diagram for further explaining the superimposed image figure separation unit 6 which is a component of FIG.

この重畳イメージ図形分離部6が、本発明の第1の実
施例である。
This superposed image figure separation unit 6 is the first embodiment of the present invention.

第4図において、61はループ図形抽出部、62はループ
図形メモリ部、63は分岐点対抽出部、64は線分抽出部、
65は単調折れ線軸出部、66は制御部である。
In FIG. 4, 61 is a loop graphic extraction unit, 62 is a loop graphic memory unit, 63 is a branch point pair extraction unit, 64 is a line segment extraction unit,
Reference numeral 65 is a monotonous broken line axis alignment portion, and 66 is a control portion.

ループ図形抽出部61は、画像メモリ部4に蓄積されて
いる細線化画像からループ図形を1つずつ点列(すなわ
ち、画素の座標列)として抽出し、ループ図形メモリ部
62に格納する(第1の過程)。
The loop graphic extraction unit 61 extracts one loop graphic from the thinned image stored in the image memory unit 4 one by one as a dot sequence (that is, a coordinate sequence of pixels), and the loop graphic memory unit 61
Store in 62 (first process).

ループ図形メモリ部62は、ループ図形を1つずつ点列
として蓄積する。
The loop graphic memory unit 62 stores each loop graphic as a point sequence.

分岐点対抽出部63は、1つのループ図形をなす点列を
ループ図形メモリ部62から入力して、画像メモリ部4に
蓄積されている細線化画像において、そのループ図形以
外の図形上にある近傍点(近傍画素)を持つ分岐点を抽
出する(第2の過程)。これらの分岐点の中から、注目
ループ図形上において隣り合う分岐点対を抽出する。
(第3の過程) 線分抽出部64は、分岐点対抽出部63から1つのループ
図形をなす点列と、分岐点対とを入力して、入力された
分岐点に接続し、かつ注目ループ図形以外の図形上にあ
る線分を抽出する。(第4の過程) 具体的には、分岐点から注目ループ図形以外の図形上
にある点を1つずつ追跡して、追跡された点列が直線に
近似できなくなったとき追跡を停止して、得られた点列
を1つの線分とする。
The branch point pair extraction unit 63 inputs a sequence of points forming one loop graphic from the loop graphic memory unit 62, and is located on a graphic other than the loop graphic in the thinned image accumulated in the image memory unit 4. A branch point having a neighboring point (neighboring pixel) is extracted (second process). From these branch points, a pair of branch points adjacent to each other on the loop figure of interest is extracted.
(Third Process) The line segment extraction unit 64 inputs the point sequence forming one loop figure and the branch point pair from the branch point pair extraction unit 63, connects them to the input branch point, and Extract line segments on figures other than loop figures. (Fourth step) Specifically, the points on the figures other than the loop figure of interest are tracked one by one from the branch point, and when the tracked point sequence cannot be approximated to a straight line, the tracking is stopped. , The obtained point sequence is taken as one line segment.

点列が直線に近似できるか否かを検査する方法は幾つ
か知られている(昭和59年度電子通信学会総合全国大会
1252など)が、そのいずれでもよい。
There are several known methods for checking whether a sequence of points can be approximated to a straight line.
1252), but any of them may be used.

単調折れ線抽出部65は、線分抽出部64から1つのルー
プ図形をなす点列と、分岐点対と、分岐点に接続する線
分とを入力し、以下の処理を行う。(第5の過程) まず、前記ループ図形をなす点列を直線近似して線分
列に変換する。但し、分岐点のところでは必ず線分に分
割する。
The monotonic polygonal line extraction unit 65 inputs from the line segment extraction unit 64 a point sequence forming one loop figure, a branch point pair, and a line segment connected to the branch point, and performs the following processing. (Fifth Step) First, the point sequence forming the loop figure is linearly approximated and converted into a line segment sequence. However, it is always divided into line segments at branch points.

次に、分岐点対の各々について、一方の分岐点に接続
する線分から分岐点対の間にある線分列を通り、他方の
分岐点に接続する線分に至る折れ線の中に単調な曲線が
あるならば、分岐点対の間にある線分列を他の図形が重
畳する部分として、そのループ図形上にあり、かつ他の
図形と重畳していない部分を画像メモリ部4に蓄積され
ている細線化画像上で値2の画素に変換する。
Next, for each of the branch point pairs, a monotonous curve is drawn in the polygonal line from the line segment connecting one branch point to the line segment connecting the other branch point. If there is, a line segment sequence between the pair of branch points is set as a portion on which another figure is overlapped, and a portion on the loop figure and not overlapped with another figure is stored in the image memory unit 4. It is converted into a pixel having a value of 2 on the thinned image.

制御部66は、ループ図形抽出部61、分岐点対抽出部6
3、線分抽出部64、単調折れ線抽出部65の順に動作する
ように、ループ図形抽出部61から単調折れ線抽出部65を
制御する部分である。
The control unit 66 includes a loop graphic extraction unit 61 and a branch point pair extraction unit 6
This is a part for controlling the monotone polygonal line extraction unit 65 from the loop graphic extraction unit 61 so that the line segment extraction unit 64 and the monotone polygonal line extraction unit 65 operate in this order.

第5図は、本発明をベクトルデータに対して適用する
例を説明する図である。
FIG. 5 is a diagram for explaining an example in which the present invention is applied to vector data.

第5図において、画像メモリ部4と細線化部5は第3
図のものと同じである。8はベクトル化部、9はベクト
ルメモリ部、10は重畳ベクトル図形分離部、11は制御部
である。
In FIG. 5, the image memory unit 4 and the thinning unit 5 are the third
It is the same as the one in the figure. Reference numeral 8 is a vectorization unit, 9 is a vector memory unit, 10 is a superposition vector figure separation unit, and 11 is a control unit.

ベクトル化部8は、画像メモリ部4に蓄積されている
細線化画像の分岐点及び端点を抽出し、それらの2点の
間の点列を直線近似して線分列に分割し、分岐点及び端
点の座標と、線分の両端の画素の座標をベクトルメモリ
部9に格納する。
The vectorization unit 8 extracts the branch points and end points of the thinned image stored in the image memory unit 4, linearly approximates the point sequence between these two points, and divides into a line segment sequence. And the coordinates of the end points and the coordinates of the pixels at both ends of the line segment are stored in the vector memory unit 9.

直線近似の方法は、幾つかの方法が知られている(昭
和59年度電子通信学会総合全国大会1252など)が、それ
らのいずれでもよい。
Several methods are known as the method of linear approximation (the National Conference of the Institute of Electronics, Information and Communication, Japan, 1252, etc. in 1984), but any of them may be used.

ベクトルメモリ部9は、ベクトル化部8より出力され
るベクトルデータを蓄積する部分である。
The vector memory unit 9 is a unit that stores the vector data output from the vectorization unit 8.

重畳ベクトル図形分離部10は、ベクトルメモリ部9に
蓄積されているベクトルデータからループ図形を抽出
し、ループ図形が他の図形と重畳している部分を抽出し
て、ループ図形上にあり、かつ他の図形と重畳していな
い線分をベクトルメモリ部9に格納する部分である。
The superposed vector graphic separation unit 10 extracts a loop graphic from the vector data accumulated in the vector memory unit 9, extracts a portion where the loop graphic is superposed with another graphic, and is on the loop graphic, and This is a part for storing a line segment which is not superposed on other figures in the vector memory unit 9.

本発明の第2の実施例である重畳ベクトル図形分離部
10の詳細な構成は、第4図に示した重畳イメージ図形分
離部の構成と基本的には同じである。但し、細線化画像
の代りに、それをベクトル化したデータを用いるため各
構成要素の機能は以下のようになる。
A second embodiment of the present invention, a superposition vector figure separation unit
The detailed configuration of 10 is basically the same as the configuration of the superimposed image figure separation unit shown in FIG. However, since the vectorized data is used instead of the thinned image, the function of each component is as follows.

ループ図形抽出部61は、ベクトルメモリ部9に蓄積さ
れているベクトルデータからループ図形を1つずつ線分
列として抽出し、ループ図形メモリ部62に格納する。
The loop graphic extraction unit 61 extracts one loop graphic from the vector data accumulated in the vector memory unit 9 as a line segment sequence, and stores the line segment sequence in the loop graphic memory unit 62.

ループ図形メモリ部62は、ループ図形を1つずつ線分
列として蓄積する。
The loop graphic memory unit 62 stores each loop graphic as a line segment sequence.

分岐点対抽出部63は、1つのループ図形をなす線分列
をループ図形抽出部61から入力して、ベクトルメモリ部
9に蓄積されているベクトルデータにおいて、前記ルー
プ図形以外の図形上にある線分が接続している分岐点を
抽出し、これらの分岐点の中から、注目ループ図形上に
おいて隣り合う分岐点対を抽出する。
The branch point pair extraction unit 63 inputs a line segment sequence forming one loop graphic from the loop graphic extraction unit 61, and exists in a graphic other than the loop graphic in the vector data accumulated in the vector memory unit 9. The branch points to which the line segments are connected are extracted, and from these branch points, the pair of branch points adjacent to each other on the loop figure of interest are extracted.

線分抽出部64は、分岐点対抽出部63から1つのループ
図形をなす線分列と、分岐点対とを入力して、入力され
た分岐点に接続し、かつ注目ループ図形以外の図形上に
ある線分を抽出する。
The line segment extraction unit 64 inputs the line segment sequence forming one loop figure and the branch point pair from the branch point pair extraction unit 63, connects the input branch point, and draws a figure other than the loop figure of interest. Extract the line segment above.

単調折れ線抽出部65は、線分抽出部64から1つのルー
プ図形をなす線分列と、分岐点対と、分岐点に接続する
線分とを入力して、分岐点対の各々について、一方の分
岐点に接続する線分から分岐点対の間にある線分列を通
り、他方の分岐点に接続する線分に至る曲線の中に単調
な折れ線があるならば、分岐点対の間にある線分列を他
の図形が重畳する部分として、ループ図形上にありかつ
他の図形と重畳していない部分の線分列をベクトルメモ
リ部9に出力する。
The monotonic polygonal line extraction unit 65 inputs the line segment sequence forming one loop figure, the branch point pair, and the line segment connected to the branch point from the line segment extraction unit 64, and outputs one for each branch point pair. If there is a monotonous polygonal line in the curve from the line segment connected to the branch point to the line segment between the branch point pair and the line segment connected to the other branch point, between the branch point pairs The line segment string of a portion which is on the loop graphic and is not superimposed on another graphic is output to the vector memory unit 9 as a part where a certain line segment is overlapped with another graphic.

制御部11は、画像メモリ部4にディジタル画像が入力
されたとき、細線化部5、ベクトル化部8、重畳ベクト
ル図形分離部10の順に動作させるように全体を制御する
部分である。
The control unit 11 is a unit that controls the whole so that when the digital image is input to the image memory unit 4, the thinning unit 5, the vectorization unit 8, and the superposition vector figure separation unit 10 are operated in this order.

なお、ループ図形は、かすれや途切れにより閉じてい
なくても、論理的に1つのループ図形と判定できるもの
であれば構わない。
The loop graphic may be logically determined as one loop graphic even if it is not closed due to faintness or break.

(発明の効果) 以上述べたように、本発明は、ループ図形と他の図形
が重畳する部分を、ループ図形上にない線分間を結ぶ直
線上にない部分も含めて抽出できるため、従来方式より
も抽出洩れが少ないという効果が得られる。
(Effects of the Invention) As described above, the present invention can extract a portion where a loop figure and another figure overlap, including a portion that is not on a straight line connecting line segments that are not on the loop figure. The effect of less omission of extraction is obtained.

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

第1図は従来方式の重畳図形分離方法の欠点を示す図、
第2図は本発明の重畳図形分離方法を説明する図、第3
図は本発明をイメージデータに対して適用する例を説明
する図、第4図は本発明の一実施例を説明する図、第5
図は本発明をベクトルデータに対して適用する例を説明
する図である。 1……ループ図形以外の図形、 2……ループ図形とその他の図形の重畳部分、 3……分岐点、4……画像メモリ部、 5……細線化部、 6……重畳イメージ図形分離部、 7……制御部、8……ベクトル化部、 9……ベクトルメモリ部、 10……重畳ベクトル図形分離部、11……制御部、 61……ループ図形抽出部、 62……ループ図形メモリ部、 63……分岐点対抽出部、64……線分抽出部、 65……単調折れ線抽出部、66……制御部。
FIG. 1 is a diagram showing a drawback of the conventional method of separating superposed figures,
FIG. 2 is a diagram for explaining the superimposed figure separating method of the present invention, and FIG.
FIG. 4 is a diagram illustrating an example in which the present invention is applied to image data, FIG. 4 is a diagram illustrating an embodiment of the present invention, and FIG.
The figure is a diagram for explaining an example in which the present invention is applied to vector data. 1 ... Figures other than loop figures, 2 ... Superposed section of loop figures and other figures, 3 ... Branch points, 4 ... Image memory section, 5 ... Thinning section, 6 ... Superposed image figure separation section , 7 ... control unit, 8 ... vectorization unit, 9 ... vector memory unit, 10 ... superposed vector graphic separation unit, 11 ... control unit, 61 ... loop graphic extraction unit, 62 ... loop graphic memory 63 ... Branch point pair extraction unit, 64 ... Line segment extraction unit, 65 ... Monotone broken line extraction unit, 66 ... Control unit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】地図や図形が、イメージデータあるいはベ
クトルデータとして計算機に入力され、前記計算機内の
メモリに蓄積された図形データから、1つの背景領域を
囲むループ図形を抽出し、そのループ図形の構成部分が
前記ループ図形以外の図形の構成部分でもある場合、す
なわち重畳している場合に、その重畳した構成部分を分
離して抽出する方法であって、 前記イメージデータあるいはベクトルデータからループ
図形を抽出する第1の過程と、 該ループ図形を構成する前記イメージデータあるいはベ
クトルデータから、前記ループ図形以外の図形上の点を
近傍に持つものを分岐点として抽出する第2の過程と、 前記第2の過程により得られた複数の分岐点の中から隣
り合う分岐点対を抽出する第3の過程と、 前記第2の過程により得られた分岐点に接続し、かつ、
前記ループ図形以外の図形上の線分を、前記イメージデ
ータあるいはベクトルデータから直線近似により求める
第4の過程と、 前記第1の過程で得られたループ図形を前記第3の過程
により得られた分岐点対に基づき直線近似して線分列に
変換し、 分岐点対の各々について、分岐点対の一方の分岐点に接
続する前記第4の過程により得られた線分から分岐点対
の間にあるループ図形上の線分列を通り、分岐点対の他
方の分岐点に接続する前記第4の過程により得られた線
分に至る折れ線の中に単調な折れ線があるか否かを検査
し、単調な折れ線があるならば、注目ループ図形上で、
単調な折れ線上にある線分列をループ図形以外の図形と
重畳する構成部分とする第5の過程と、 を有することを特徴とする重畳図形分離方法。
1. A map or figure is input to a computer as image data or vector data, a loop figure surrounding one background area is extracted from the figure data stored in a memory in the computer, and the loop figure A method of separating and extracting the superimposed constituent parts when the constituent parts are also constituent parts of figures other than the loop figure, that is, when the figure overlaps, and a loop figure is extracted from the image data or vector data. A first step of extracting, a second step of extracting from the image data or the vector data forming the loop figure, a point having a point on the figure other than the loop figure in the vicinity as a branch point; The third step of extracting adjacent branch point pairs from the plurality of branch points obtained by the second step, and the second step Connected to the obtained branch point, and
A fourth step of obtaining a line segment on a figure other than the loop figure by linear approximation from the image data or vector data, and a loop figure obtained in the first step by the third step A straight line approximation is performed on the basis of the pair of branch points to convert into a sequence of line segments, and for each pair of branch points, between the line segment obtained by the fourth process and the branch point pair connected to one branch point of the pair of branch points. It is checked whether or not there is a monotonous polygonal line among the polygonal lines that pass through the line segment on the loop figure and are connected to the other branch point of the pair of branch points to the line segment obtained by the fourth step. If there is a monotonous polygonal line, on the attention loop figure,
And a fifth step of forming a line segment sequence on a monotonous polygonal line as a constituent portion for superposing on a figure other than a loop figure.
JP61138165A 1986-06-16 1986-06-16 Superposed figure separation method Expired - Fee Related JP2552653B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61138165A JP2552653B2 (en) 1986-06-16 1986-06-16 Superposed figure separation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61138165A JP2552653B2 (en) 1986-06-16 1986-06-16 Superposed figure separation method

Publications (2)

Publication Number Publication Date
JPS62295185A JPS62295185A (en) 1987-12-22
JP2552653B2 true JP2552653B2 (en) 1996-11-13

Family

ID=15215544

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61138165A Expired - Fee Related JP2552653B2 (en) 1986-06-16 1986-06-16 Superposed figure separation method

Country Status (1)

Country Link
JP (1) JP2552653B2 (en)

Also Published As

Publication number Publication date
JPS62295185A (en) 1987-12-22

Similar Documents

Publication Publication Date Title
JP2018060296A (en) Image processing apparatus, image processing system, and image processing method
CN113298039A (en) Target detection method considering remote sensing image rotating target
Girard et al. End-to-end learning of polygons for remote sensing image classification
CN111462140B (en) Real-time image instance segmentation method based on block stitching
Koutaki et al. Automatic road extraction based on cross detection in suburb
Deng et al. AFDANet: An adaptive full-stage feature fusion and directional-aware network for road extraction in remote sensing images
JP2552653B2 (en) Superposed figure separation method
Li et al. Multi-discriminator generative adversarial network for high resolution gray-scale satellite image colorization
Lu et al. A high-resolution remote sensing image registration method combining object and point features
CN120783246A (en) Method for detecting small targets of multi-scale unmanned aerial vehicle under complex background
CN119540275A (en) Target segmentation vector boundary simplification method, electronic device and storage medium
EP0752683A2 (en) Method and apparatus for modifying multi-tone image
KR102200783B1 (en) Updating system for numerical map used by field research
JP2611326B2 (en) Road recognition device for vehicles
JPH06348991A (en) Driving environment recognition device for mobile vehicles
Sun et al. A Novel Map Representation for Automatic Construction of Topological Map and Lane-Level Route Planning
CN118097449B (en) Flood disaster monitoring method and device based on multi-source remote sensing and electronic equipment
Ablameyko et al. Knowledge based technique for map-drawing interpretation
JPH0833917B2 (en) Graphic input processing device by intelligent conversation processing
Zhang et al. Robot-assisted intelligent 3D mapping of unknown cluttered search and rescue environments
CN121392302A (en) Lightweight deformable strip characteristic extraction method for remote sensing image building extraction
JPH07282230A (en) Method for connecting map drawing data
CN118196582A (en) High-precision map alignment and fusion method and system suitable for multi-view target detection
JPH01293486A (en) Shape recognizing device
CN121330607A (en) A method and system for assisting visually impaired travel based on improved YOLOv11 and BiseNetV2 collaborative reasoning

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees