JP3633011B2 - Figure extraction method - Google Patents

Figure extraction method Download PDF

Info

Publication number
JP3633011B2
JP3633011B2 JP30357694A JP30357694A JP3633011B2 JP 3633011 B2 JP3633011 B2 JP 3633011B2 JP 30357694 A JP30357694 A JP 30357694A JP 30357694 A JP30357694 A JP 30357694A JP 3633011 B2 JP3633011 B2 JP 3633011B2
Authority
JP
Japan
Prior art keywords
section
graphic
list
intersection
end 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
Application number
JP30357694A
Other languages
Japanese (ja)
Other versions
JPH08161501A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial 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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP30357694A priority Critical patent/JP3633011B2/en
Publication of JPH08161501A publication Critical patent/JPH08161501A/en
Application granted granted Critical
Publication of JP3633011B2 publication Critical patent/JP3633011B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、図形の閉領域を抽出する図形抽出方法に関するものである。
【0002】
【従来の技術】
従来図形処理機能を備えたワードプロセッサやDTPなどの図形処理装置において、円・矩形・多角形などの図形の描画が行えるようになっている。しかしながら、従来図1のように、複数の図形の構成要素が複雑に交差して形成される閉領域や、図2のように、単一の図形の構成要素により閉じられた閉領域を認識して描画する技術は、ほとんど開示されていない。この点、特開昭59−60560号公報、特開平2−294323号公報に関連する記述が認められるが、前者では矩形のような簡単な図形のみの処理に限られ、後者でも多角形や円などの基本的な図形の組み合わせのみが扱われているにすぎない。
【0003】
【発明が解決しようとする課題】
このように従来技術では、円・矩形・多角形以外の楕円、円弧、ベジェ曲線、スプライン曲線などの図形の構成要素によって形成される閉領域を抽出することができない。また。単一の図形の構成要素の自己交差により形成される閉領域の抽出についても行うことができない。このように、従来技術では、閉領域の抽出の自由度が低いという問題点があった。
【0004】
そこで本発明は、図形の構成要素の任意の組み合わせによる閉領域を抽出することができる図形抽出方法を提供することを目的とする。
【0005】
【課題を解決するための手段】
本発明の図形抽出方法は、図形を表示して閉領域を形成する図形の構成要素の選択情報を取得するステップと、選択された各構成要素を折れ線化するステップと、折れ線化した各構成要素同士の交点を算出するステップと、算出した交点から区間を算出し、区間内の折れ線を用いて抽出された閉領域を構築するステップとを有する。
【0006】
【作用】
上記構成において、図形の構成要素を折れ線近似して折れ線同士の交点を求めることにより、楕円・円弧などの2次曲線やベジェ曲線・スプライン曲線などの曲線、その他様々な曲線の構成要素により形成される閉領域を、統一的な手法により、抽出することができる。
【0007】
【実施例】
次に図面を参照しながら、本発明の実施例を説明する。
【0008】
まず本発明の実施例の図形抽出方法の概要を簡単に説明する。図1のように、表示画面において、3個の円、楕円が重なっている場合、図形の構成要素同士の重なり合いにより、7つの閉領域(A,B,C,AB,BC,CA,ABC)が形成される。たとえば、これらの閉領域のうち、閉領域ABの部分のみを塗りつぶすために、この閉領域ABを図形として認識することを考える。この閉領域ABは、3個の図形の構成要素の交点である点P1、点P2、点P4を端点とする図形の境界部分L2(P1〜P4)、L8(P1〜P2)、L11(P2〜P4)からなる。本実施例の図形抽出方法は、これら交点P1,P2,P4を端点とする境界部分(本明細書において区間という)を接続することにより、一つの図形を認識し、新たな図形を抽出するものである。
【0009】
さて図3は、本発明の一実施例における図形抽出方法が適用される図形処理装置のブロック図である。図3中、1は全体を制御するCPU(中央処理装置)、2は対象となる図形や処理状況を表示するCRTなどの表示装置、3は選択に必要な座標などをユーザが入力するためのマウスなどの入力装置、4は図12のフローチャートに沿いCPU1により実行される制御プログラムなどを記憶しているROM(リードオンリーメモリ)、5は後述する各リストなどのための記憶領域が設けられたRAM(ランダムアクセスメモリ)からなる主記憶部である。
【0010】
図4は、本発明の一実施例における図形抽出方法が適用される図形処理装置の機能ブロック図である。図4中、主記憶部5は、図形データを記憶する図形リスト7、図形の選択情報を格納する選択リスト8、折れ線化されたデータを格納する折れ線データリスト9、交点座標を格納する交点リスト10、算出された区間の情報を格納する区間リスト11、抽出データリスト12を含んでいる。
【0011】
このうち、図形リスト7は、図5に示すように、図形番号、図形種別、図形座標情報および座標変換情報を含んでいる。選択リスト8は、図6に示すように、選択リスト番号、選択された図形番号、指示座標を含んでいる。折れ線データリスト9は、図7に示すように、図形番号、頂点個数、頂点座標を含んでいる。交点リスト10は、図8に示すように、図形番号、交点個数、交点座標を含んでいる。区間リスト11は、図9に示すように、選択リスト番号、区間端点座標1、区間端点座標2を含んでいる。抽出データリスト12は、図10に示すように、頂点個数、頂点座標を含んでいる。
【0012】
図形選択手段13は、表示装置2の画面上に表示される図形が入力装置3により指示されたかどうかを判定するもので、選択された図形番号及び指示座標を選択リスト8に格納する。折れ線化手段14は、選択された図形を細分化すべく、選択リスト8に登録されている図形データを読み込んで、図形の各構成要素を折れ線近似し、その折れ線データの頂点数と頂点データを図形番号と共に、折れ線データリスト9に格納する。このとき、図形に回転などの座標変換などがあれば、折れ線データを座標変換してから格納しておく。
【0013】
交点計算手段15は、折れ線データリスト9に格納される図形を選びうる全ての組み合わせにおいて、2個取り出し、取り出した図形同士の交点を計算し、求めた交点座標と交点数を図形番号と共に、交点リスト10に格納する。区間算出手段16は、選択リスト8に格納される図形の指示座標を取り出し、その指示座標の図形番号と同じ図形番号を持つ交点リスト10のどの交点とどの交点との間に、指示座標が挟まれるかを検索する。検索した交点座標が見つかったならば、片方の交点座標を区間端点座標1として、もう一方の交点座標を区間端点座標2として、選択リスト番号と共に区間リスト11に格納する。
【0014】
区間接続手段17は、区間リスト11に格納される区間データを取りだし、最初の区間データの区間端点座標を抽出する図形データの開始点とし、以降この開始点からもう一方の区間端点座標までを同じ図形番号を持つ折れ線データリスト9に登録される折れ線データを使って補間し、最後の点を区間端点座標とする。次に、最後の点である区間端点座標と同じ座標を持つ区間端点座標を区間リスト11から取り出し、同じようにその区間端点座標からもう一方の区間端点座標までを折れ線データリスト9を使って補間する。これら区間を接続して得られた折れ線データは抽出データリスト12に格納される。
【0015】
また制御部6は、他の要素をコントロールするものであり、図形選択手段13、折れ線化手段14、交点計算手段15、区間算出手段16、区間接続手段17及び制御部6は、CPU1がROM4内の制御プログラムを実行することにより実現される。
【0016】
次に本実施例の図形抽出方法の、各プロセスを図12のフローチャートに沿って説明する。まず、表示装置2には、図1のように図形F1,F2,F3が3個互いに重なって表示されているものとする。また図形F2は、回転した楕円である。そして、入力装置3により、点Q1が指示されると、図形選択手段13は、どの図形が選択されたのかを検索し、その結果検索された図形F2が選択リスト8に登録される。同じように点Q2,Q3が指示された場合も、それぞれ図形F1,F3が選択リスト8に登録される(ステップ1)。
【0017】
この後図示していない閉領域抽出コマンドが入力されると、まず選択リスト8に登録された図形F1,F2,F3の各図形データの折れ線化処理が折れ線化手段14により実施され、折れ線化データが折れ線データリスト9に格納される(ステップ2)。このとき、楕円の折れ線化データは図示しない座標変換装置により、回転の座標変換が行われる。次に、折れ線データリスト9に登録されたデータを使って交点計算手段15が、登録された3個の図形データから2つの図形を選び出しうる組み合わせだけ交点計算を実施し、結果を図形毎に交点リスト10に格納する(ステップ3)。たとえば図8のように、図形F1の交点は、P1,P4,P5,P3、図形F2の交点はP1,P2,P5,P6、図形F3の交点はP6,P4,P2,P3となる。次に、区間算出手段16が、選択リスト8に格納される図形の選択座標Q1,Q2,Q3を取りだし、これらの選択座標Q1,Q2,Q3が同じ図形番号を持つ交点リスト10のどの交点とどの交点の間にあるかを検索し、その結果を区間リスト11に格納する(ステップ4)。最後に区間接続手段17が、区間リスト11に登録される3つの区間の接続を行い、新たな閉領域を抽出された閉領域として構築し、抽出データリスト12に格納する(ステップ5)。ここでは、まず区間接続手段17が区間リスト11の先頭に格納される区間端点座標1(P1)を取り出し、この座標を抽出図形の開始点とし、この区間を折れ線補間する(区間L8の折れ線化)。このとき、折れ線補間するデータは、区間リスト11の先頭の選択リスト番号1と選択リスト8から図形番号2を選び出し、図形番号2の折れ線データリスト9が使用される。次に、区間の終了座標である区間端点座標2(P2)と同じ座標を持つ区間端点座標を検索し、その結果3番目の区間の区間端点座標2(P2)が検索され、1番目の区間の区間端点座標2(P2)とこの区間の区間端点座標2(P2)とを接続する。同じようにこの区間を折れ線補間し(区間L11の折れ線化)、この区間の終了座標である区間端点座標1(P4)と同じ座標を持つ区間端点座標を検索し、その結果2番目の区間の区間端点座標2(P4)が検索され、3番目の区間の区間端点座標1(P4)とこの区間の区間端点座標2(P4)とを接続する。同じようにこの区間を折れ線補間し(区間L2の折れ線化)、この区間の終了座標である区間端点座標1(P1)と同じ座標を持つ区間端点座標を検索し、その結果1番目の区間の区間端点座標1(P1)が検索され、2番目の区間の区間端点座標1(P1)と1番目の区間の区間端点座標1(P1)とを接続する。1番目の区間の区間端点座標1は抽出図形の開始点であるのでここで処理を中断する。折れ線化したデータは頂点数とともに抽出データリスト12に格納される。
【0018】
もちろん上記の方法によれば、図1における別の閉領域(たとえばA,ABCなど)も同様の処理により抽出することができる。また全ての図形を折れ線化して閉領域を抽出するため、例えば楕円、円弧などの2次曲線やベジェ曲線、スプライン曲線などの図形の組み合わせや回転などがかかった図形で形成される複雑な形状の閉領域も同様に簡単に抽出することができる。例えば図11の着色した部分のようなものも抽出可能である。
【0019】
さらに、図2のように単一の図形の自己交差による閉領域を抽出する場合には、折れ線化した図形自身での交点計算を行えば、同様に閉領域を抽出することができる。
【0020】
【発明の効果】
本発明の図形抽出方法は、図形を表示して閉領域を形成する図形の構成要素の選択情報を取得するステップと、選択された各構成要素を折れ線化するステップと、折れ線化した各構成要素同士の交点を算出するステップと、算出した交点から区間を算出し、区間内の折れ線を用いて抽出された閉領域を構築するステップとを有するので、任意の形状の図形の構成要素から構成される閉領域を統一的な手法により柔軟かつ簡単に抽出することができる。
【図面の簡単な説明】
【図1】本発明の一実施例における閉領域の例示図
【図2】本発明の一実施例における自己交差による閉領域の例示図
【図3】本発明の一実施例における図形抽出方法が適用される図形処理装置のブロック図
【図4】本発明の一実施例における図形抽出方法が適用される図形処理装置の機能ブロック図
【図5】本発明の一実施例における図形リストの例示図
【図6】本発明の一実施例における選択リストの例示図
【図7】本発明の一実施例における折れ線データリストの例示図
【図8】本発明の一実施例における交点リストの例示図
【図9】本発明の一実施例における区間リストの例示図
【図10】本発明の一実施例における抽出データリストの例示図
【図11】本発明の一実施例における閉領域の例示図
【図12】本発明の一実施例における図形抽出方法のフローチャート
【符号の説明】
2 表示装置
3 入力装置
5 主記憶部
6 制御部
7 図形リスト
8 選択リスト
9 折れ線データリスト
10 交点リスト
11 区間リスト
12 抽出データリスト
13 図形選択手段
14 折れ線化手段
15 交点計算手段
16 区間算出手段
17 区間接続手段
[0001]
[Industrial application fields]
The present invention relates to a graphic extraction method for extracting a closed region of a graphic.
[0002]
[Prior art]
A graphic processor such as a word processor or DTP having a conventional graphic processing function can draw a graphic such as a circle, a rectangle, or a polygon. However, as shown in FIG. 1, a closed region formed by a complex intersection of a plurality of graphic components and a closed region closed by a single graphic component as shown in FIG. 2 are recognized. Most of the techniques for drawing are not disclosed. In this respect, descriptions related to Japanese Patent Application Laid-Open Nos. 59-60560 and 2-294323 are recognized, but the former is limited to processing only simple figures such as rectangles, and the latter is also limited to polygons and circles. Only basic figure combinations such as are handled.
[0003]
[Problems to be solved by the invention]
As described above, the conventional technology cannot extract a closed region formed by graphic components such as an ellipse other than a circle, rectangle, or polygon, an arc, a Bezier curve, or a spline curve. Also. It is also impossible to extract a closed region formed by self-intersection of a single figure component. As described above, the conventional technique has a problem that the degree of freedom in extracting the closed region is low.
[0004]
Therefore, an object of the present invention is to provide a graphic extraction method capable of extracting a closed region by an arbitrary combination of graphic components.
[0005]
[Means for Solving the Problems]
The figure extraction method of the present invention includes a step of acquiring selection information of a figure constituent element that displays a figure to form a closed region, a step of making each selected constituent element a polygonal line, and each constituent element having a polygonal line A step of calculating an intersection point between each other, and a step of calculating a section from the calculated intersection point and constructing a closed region extracted using a broken line in the section.
[0006]
[Action]
In the above configuration, by approximating the components of the figure with a polygonal line and calculating the intersection of the polygonal lines, it is formed by a quadratic curve such as an ellipse or arc, a curve such as a Bezier curve or a spline curve, and other various curve components. The closed region can be extracted by a unified method.
[0007]
【Example】
Next, embodiments of the present invention will be described with reference to the drawings.
[0008]
First, the outline of the graphic extraction method of the embodiment of the present invention will be briefly described. As shown in FIG. 1, when three circles and ellipses overlap on the display screen, seven closed regions (A, B, C, AB, BC, CA, ABC) are formed due to the overlapping of the components of the figure. Is formed. For example, in order to fill only the portion of the closed region AB among these closed regions, consider that the closed region AB is recognized as a figure. This closed region AB is a boundary portion L2 (P1 to P4), L8 (P1 to P2), and L11 (P2) of the figure whose end points are the points P1, P2, and P4, which are the intersections of the components of the three figures. ~ P4). The graphic extraction method of this embodiment recognizes one graphic and extracts a new graphic by connecting the boundary portions (referred to as sections in this specification) having these intersections P1, P2, and P4 as end points. It is.
[0009]
FIG. 3 is a block diagram of a graphic processing apparatus to which the graphic extraction method in one embodiment of the present invention is applied. In FIG. 3, 1 is a CPU (central processing unit) for controlling the whole, 2 is a display device such as a CRT for displaying a target figure and processing status, and 3 is for a user to input coordinates necessary for selection. An input device such as a mouse, 4 is a ROM (Read Only Memory) storing a control program executed by the CPU 1 in accordance with the flowchart of FIG. 12, and 5 is provided with a storage area for each list to be described later. This is a main storage unit comprising a RAM (Random Access Memory).
[0010]
FIG. 4 is a functional block diagram of a graphic processing apparatus to which the graphic extraction method in one embodiment of the present invention is applied. In FIG. 4, the main memory 5 includes a graphic list 7 for storing graphic data, a selection list 8 for storing graphic selection information, a polygonal line data list 9 for storing polygonal data, and an intersection list for storing intersection coordinates. 10 includes a section list 11 for storing calculated section information and an extracted data list 12.
[0011]
Among these, the graphic list 7 includes a graphic number, a graphic type, graphic coordinate information, and coordinate conversion information as shown in FIG. As shown in FIG. 6, the selection list 8 includes a selection list number, a selected figure number, and designated coordinates. The polygonal line data list 9 includes a figure number, the number of vertices, and vertex coordinates as shown in FIG. As shown in FIG. 8, the intersection list 10 includes a figure number, the number of intersections, and intersection coordinates. The section list 11 includes a selection list number, a section end point coordinate 1, and a section end point coordinate 2, as shown in FIG. As shown in FIG. 10, the extracted data list 12 includes the number of vertices and vertex coordinates.
[0012]
The graphic selection means 13 determines whether or not a graphic displayed on the screen of the display device 2 is instructed by the input device 3, and stores the selected graphic number and designated coordinates in the selection list 8. The polygonal line forming means 14 reads the graphic data registered in the selection list 8 in order to subdivide the selected graphic, approximates each component of the graphic with a polygonal line, and calculates the number of vertices and the vertex data of the polygonal line data. The number is stored in the broken line data list 9 together with the number. At this time, if the figure has coordinate conversion such as rotation, the polygonal line data is stored after the coordinate conversion.
[0013]
The intersection calculation means 15 takes out two of the combinations that can be selected from the figures stored in the polygonal line data list 9, calculates the intersection between the extracted figures, and calculates the intersection coordinates and the number of intersections together with the figure number. Store in list 10. The section calculation means 16 takes out the designated coordinates of the figure stored in the selection list 8, and the designated coordinates are sandwiched between which intersection of the intersection list 10 having the same figure number as the figure number of the designated coordinate. Search for If the searched intersection coordinates are found, one intersection coordinate is set as the section end point coordinate 1 and the other intersection coordinate is stored as the section end point coordinate 2 in the section list 11 together with the selection list number.
[0014]
The section connection means 17 takes out the section data stored in the section list 11 and uses the section end point coordinates of the first section data as the starting point of the graphic data to be extracted, and thereafter the same from the start point to the other section end point coordinates. Interpolation is performed using the polygonal line data registered in the polygonal line data list 9 having the figure number, and the last point is set as the section end point coordinate. Next, a section end point coordinate having the same coordinates as the section end point coordinate which is the last point is taken out from the section list 11, and similarly, the section end point coordinate to the other section end point coordinate is interpolated using the broken line data list 9. To do. The polygonal line data obtained by connecting these sections is stored in the extracted data list 12.
[0015]
The control unit 6 controls other elements. The graphic selection unit 13, the polygonal line conversion unit 14, the intersection calculation unit 15, the section calculation unit 16, the section connection unit 17, and the control unit 6 are stored in the ROM 4 by the CPU 1. This is realized by executing the control program.
[0016]
Next, each process of the graphic extraction method of this embodiment will be described with reference to the flowchart of FIG. First, it is assumed that three graphics F1, F2, and F3 are displayed on the display device 2 as shown in FIG. The figure F2 is a rotated ellipse. Then, when the point Q1 is instructed by the input device 3, the graphic selection means 13 searches which graphic is selected, and the graphic F2 searched as a result is registered in the selection list 8. Similarly, when the points Q2 and Q3 are designated, the graphics F1 and F3 are registered in the selection list 8 (step 1).
[0017]
Thereafter, when a closed area extraction command (not shown) is input, first, the polygonal line forming means 14 performs the polygonal line conversion process on the graphic data of the graphic elements F1, F2, and F3 registered in the selection list 8 to obtain the polygonal line data. Is stored in the polygonal line data list 9 (step 2). At this time, the elliptical polygonal data is subjected to rotational coordinate conversion by a coordinate conversion device (not shown). Next, using the data registered in the polygonal line data list 9, the intersection calculation means 15 performs intersection calculation for combinations that can select two figures from the registered three figure data, and the result is calculated for each figure. Store in the list 10 (step 3). For example, as shown in FIG. 8, the intersections of the figure F1 are P1, P4, P5, P3, the intersections of the figure F2 are P1, P2, P5, P6, and the intersections of the figure F3 are P6, P4, P2, P3. Next, the section calculation means 16 takes out the selected coordinates Q1, Q2, and Q3 of the graphic stored in the selection list 8, and the selected coordinate Q1, Q2, Q3 and which intersection of the intersection list 10 having the same graphic number. It is searched which intersection is located, and the result is stored in the section list 11 (step 4). Finally, the section connection means 17 connects the three sections registered in the section list 11, constructs a new closed area as an extracted closed area, and stores it in the extracted data list 12 (step 5). Here, first, the section connecting means 17 takes out the section end point coordinate 1 (P1) stored at the head of the section list 11 and uses this coordinate as the starting point of the extracted figure, and this section is subjected to polygonal interpolation (segmentation of the section L8). ). At this time, for the data to be interpolated, the figure number 2 is selected from the selection list number 1 and the selection list 8 at the head of the section list 11, and the line data list 9 of the figure number 2 is used. Next, a section end point coordinate having the same coordinates as the section end point coordinate 2 (P2), which is the end coordinate of the section, is searched. As a result, the section end point coordinate 2 (P2) of the third section is searched, and the first section The section end point coordinate 2 (P2) of this section and the section end point coordinate 2 (P2) of this section are connected. Similarly, this section is interpolated with polygonal lines (segmentation of the section L11), and the end point coordinates having the same coordinates as the end point coordinates 1 (P4) as the end coordinates of this section are searched. As a result, the second section The section end point coordinate 2 (P4) is searched, and the section end point coordinate 1 (P4) of the third section is connected to the section end point coordinate 2 (P4) of this section. Similarly, this section is interpolated with a polygonal line (segmentation of the section L2), and a section end point coordinate having the same coordinates as the section end point coordinate 1 (P1), which is the end coordinate of this section, is searched. As a result, the first section The section end point coordinate 1 (P1) is searched, and the section end point coordinate 1 (P1) of the second section and the section end point coordinate 1 (P1) of the first section are connected. Since the section end point coordinate 1 of the first section is the starting point of the extracted figure, the processing is interrupted here. The broken line data is stored in the extracted data list 12 together with the number of vertices.
[0018]
Of course, according to the above method, another closed region (for example, A, ABC, etc.) in FIG. 1 can be extracted by the same process. Also, in order to extract all the figures into polygonal lines and extract the closed region, for example, a complicated shape formed by a combination of figures such as a quadratic curve such as an ellipse or an arc, a Bezier curve, or a spline curve or a figure that is rotated. Similarly, the closed region can be extracted. For example, a colored portion in FIG. 11 can be extracted.
[0019]
Furthermore, when extracting a closed region due to self-intersection of a single graphic as shown in FIG. 2, the closed region can be extracted in the same manner by performing intersection calculation on the polygonal line itself.
[0020]
【The invention's effect】
The figure extraction method of the present invention includes a step of acquiring selection information of a figure constituent element that displays a figure to form a closed region, a step of making each selected constituent element a polygonal line, and each constituent element having a polygonal line Since it has a step of calculating an intersection point between each other and a step of calculating a section from the calculated intersection point and constructing a closed region extracted using a polygonal line in the section, it is composed of components of a figure of an arbitrary shape. The closed region can be extracted flexibly and easily by a unified method.
[Brief description of the drawings]
FIG. 1 is a diagram showing an example of a closed region according to an embodiment of the present invention. FIG. 2 is a diagram showing an example of a closed region due to self-intersection according to an embodiment of the present invention. FIG. 4 is a functional block diagram of a graphic processing apparatus to which the graphic extraction method according to one embodiment of the present invention is applied. FIG. 5 is an exemplary diagram of a graphic list according to one embodiment of the present invention. FIG. 6 is a diagram illustrating an example of a selection list according to an embodiment of the present invention. FIG. 7 is a diagram illustrating an example of a polygonal line data list according to an embodiment of the present invention. 9 is an exemplary diagram of a section list according to an embodiment of the present invention. FIG. 10 is an exemplary diagram of an extracted data list according to an embodiment of the present invention. FIG. 11 is an exemplary diagram of a closed region according to an embodiment of the present invention. 12 In one embodiment of the present invention Flow chart of figure extraction method [EXPLANATION OF SYMBOLS]
2 Display device 3 Input device 5 Main storage unit 6 Control unit 7 Graphic list 8 Selection list 9 Polygonal line data list 10 Intersection list 11 Section list 12 Extracted data list 13 Graphic selection means 14 Polygonal section 15 Intersection calculation means 16 Section calculation means 17 Section connection means

Claims (1)

複数の線分により囲まれる閉領域を形成するように、複数の図形どうしを重なり合わせた状態にて、互いに隣接する上記複数の閉領域からなる形状をひとつの図形として抽出する図形抽出方法において、
ユーザにより指示された上記互いに隣接する複数の閉領域を囲む線分を記憶する第1のステップと、
上記指示された線分を含む上記図形を折れ線化する第2のステップと、
上記折れ線化した図形どうしの交点の位置情報を算出する第3のステップと、
上記交点で挟まれる線分のうち前記第1のステップで指示した線分を選択する第4のステップと、
上記選択した線分の各端部を上記交点の位置情報に基づいて接続することにより上記互いに隣接する複数の閉領域からなる形状を抽出する第5のステップと、を備えることを特徴とする図形抽出方法。
In a graphic extraction method for extracting a shape composed of a plurality of closed regions adjacent to each other as a single figure in a state where a plurality of figures are overlapped so as to form a closed region surrounded by a plurality of line segments,
A first step of storing a line segment surrounding the plurality of adjacent closed areas instructed by the user;
A second step of making the figure including the indicated line segment a polygonal line;
A third step of calculating the position information of the intersection of the polygonal lines;
A fourth step of selecting the line segment indicated in the first step among the line segments sandwiched between the intersection points;
A fifth step of extracting a shape composed of a plurality of closed regions adjacent to each other by connecting each end of the selected line segment based on the position information of the intersection. Extraction method.
JP30357694A 1994-12-07 1994-12-07 Figure extraction method Expired - Fee Related JP3633011B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30357694A JP3633011B2 (en) 1994-12-07 1994-12-07 Figure extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30357694A JP3633011B2 (en) 1994-12-07 1994-12-07 Figure extraction method

Publications (2)

Publication Number Publication Date
JPH08161501A JPH08161501A (en) 1996-06-21
JP3633011B2 true JP3633011B2 (en) 2005-03-30

Family

ID=17922670

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30357694A Expired - Fee Related JP3633011B2 (en) 1994-12-07 1994-12-07 Figure extraction method

Country Status (1)

Country Link
JP (1) JP3633011B2 (en)

Also Published As

Publication number Publication date
JPH08161501A (en) 1996-06-21

Similar Documents

Publication Publication Date Title
JPH0445874B2 (en)
JPH0462100B2 (en)
US6111587A (en) Method for converting non-zero winding to even-odd fill polygons
JP2024025829A (en) Information processing apparatus, information processing method, and program
JPH0336668A (en) Shape generating system for cad system
JP3547250B2 (en) Drawing method
JP3599198B2 (en) Figure editing device
JP3633011B2 (en) Figure extraction method
JP7510472B2 (en) Information processing device, information processing method, and program
JP2716133B2 (en) Block diagram data display processor
JP2610828B2 (en) Figure information extraction method
JPH0969166A (en) Information processor, its method and storage medium
JP2002208028A (en) Geometry clipping device for polygon
JP2575636B2 (en) Graphic display device
JPH11306370A (en) Picture processor
JP2802890B2 (en) Display control device in graphic display system
JPH08147463A (en) Figure generating device
JPH06282593A (en) Leader preparing method
JPH04139585A (en) Image processor
KR100241738B1 (en) Outline display method of clipping polygon in image editor
JPH0962855A (en) Information processor, information processing method and storage medium
JP4960768B2 (en) Information processing apparatus, information processing method, and program
JPH02144770A (en) Display device
JP2667187B2 (en) Line clipping method in multi-window
JP2714114B2 (en) Graphic processing method and graphic system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040805

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040907

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041029

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041207

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041220

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080107

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090107

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100107

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110107

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110107

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120107

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130107

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees