JPH0616289B2 - Area recognition method - Google Patents

Area recognition method

Info

Publication number
JPH0616289B2
JPH0616289B2 JP60122165A JP12216585A JPH0616289B2 JP H0616289 B2 JPH0616289 B2 JP H0616289B2 JP 60122165 A JP60122165 A JP 60122165A JP 12216585 A JP12216585 A JP 12216585A JP H0616289 B2 JPH0616289 B2 JP H0616289B2
Authority
JP
Japan
Prior art keywords
area
line segment
graphic
condition
recognition method
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 - Lifetime
Application number
JP60122165A
Other languages
Japanese (ja)
Other versions
JPS61279980A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60122165A priority Critical patent/JPH0616289B2/en
Publication of JPS61279980A publication Critical patent/JPS61279980A/en
Publication of JPH0616289B2 publication Critical patent/JPH0616289B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、コンピユータグラフイツクスやパターン認
識,形状把握に好適な領域認識方法に関する。
Description: FIELD OF THE INVENTION The present invention relates to a region recognition method suitable for computer graphics, pattern recognition, and shape recognition.

〔発明の背景〕[Background of the Invention]

近年、設計,製造,デザイン,芸術,CAD(Computer
Aided Design),CAM(Computer Aided Manufacturin
g),CAE(Computer Aided Engineering)等において、
図形処理システムのワークステーシヨンあるいはグラフ
イツクターミナルを使用することにより、図形や概念を
コンピユータの援助を得で具現化することが広く普及し
てきている。そして、図形や概念の具現化を行う場合、
一般に図形処理システムにワイヤフレームと呼ばれる線
画を入力し、スタイラスペンやライトペン,キーボー
ド,フアンクシヨンキー等を使用して、座標指示や各種
情報の入力といつた操作を行つている。この座標指示と
いう操作は、グラフイツクスの使用者と装置との対話を
円滑に行わせる。このような図形処理システムにおいて
は、使用者が入力した図形に属性情報(例えば有限要素
分割,面の塗りつぶし等)を付加する場合、スタイラス
ペンを用いてデイスプレイ上のカーソルを連動させ、属
性情報を付加したい領域の輪郭線を一つづつ順序よく指
示したり、あるいは輪郭線の端点の座標値等を指示して
目的とする領域のデータを示している。図形処理システ
ムのコンピユータは、指示・入力されたデータに基づき
一連の図形情報をメモリから取り出し、領域の認識処理
を行う。この領域の認識処理は、例えば輪郭線群の端点
の割り出し、同一端点を持つ輪郭線群の取り出し、閉ル
ープの検索,領域の認識などである。そして、メモリか
ら取り出した一連の情報から領域の認識処理により、領
域として成立するかどうかを判断し、領域として成立す
るものはメモリに登録する。この登録が行われたことに
より、属性情報が付加されたことになる。
In recent years, design, manufacturing, design, art, CAD (Computer
Aided Design), CAM (Computer Aided Manufacturin
g), CAE (Computer Aided Engineering), etc.
It has become widespread to embody graphics and concepts with the aid of computers by using workstations or graphics terminals of graphics processing systems. And when embodying figures and concepts,
Generally, a line drawing called a wire frame is input to a graphic processing system, and a stylus pen, a light pen, a keyboard, a function key, etc. are used to input coordinates and input various information. This operation of pointing the coordinates allows the user of the graphics to interact smoothly with the device. In such a graphic processing system, when attribute information (for example, finite element division, surface filling, etc.) is added to the graphic input by the user, the cursor on the display is interlocked with a stylus pen to display the attribute information. The contour lines of the region to be added are designated one by one in order, or the coordinate values of the end points of the contour line are designated to indicate the data of the target region. The computer of the graphic processing system retrieves a series of graphic information from the memory based on the instructed / input data, and performs a region recognition process. The recognition processing of this area includes, for example, the determination of the end points of the contour line group, the extraction of the contour line group having the same end point, the search of the closed loop, and the recognition of the area. Then, it is judged whether or not the area is established by the area recognition processing from the series of information extracted from the memory, and the information that is established as the area is registered in the memory. By this registration, the attribute information is added.

しかし、上記のような従来の領域認識処理には、次のよ
うな問題点があつた。
However, the conventional area recognition processing as described above has the following problems.

(1)一般に図形処理システムにおいて取り扱われる図
形形状は、複雑なものが多く、領域の輪郭線を指示する
ことが容易でない。しかも、指示する順序を正確に示す
ために表示されている線画の数が多く、輪郭線の指示の
妨げとなる。
(1) In general, many graphic shapes handled in the graphic processing system are complicated, and it is not easy to instruct the contour line of the area. Moreover, the number of line drawings displayed to accurately indicate the order of instruction is large, which hinders the instruction of the contour line.

(2)輪郭線の指示が正しく行われないと、コンピユー
タの認識処理の妨げとなる。
(2) If the contour line is not specified correctly, it will hinder the recognition process of the computer.

(3)輪郭線を順序よく指示したつもりであつても、使
用者の目の錯覚等に起因して、領域の表裏あるいは内外
が反転してしまい、使用者の要求する領域の認識がなさ
れていないことも生じうる。
(3) Even if the user intends to instruct the contour lines in order, the front and back of the area or the inside and outside are reversed due to the illusion of the user's eyes, etc., and the area requested by the user is not recognized. Things can happen.

(4)領域が六面体などの場合、領域自体の輪郭線の指
示方法が複雑となり、実用性に乏しい。
(4) When the area is a hexahedron or the like, the method of instructing the contour line of the area itself becomes complicated, which is not practical.

このように従来の図形処理システムにおいては、図形が
複雑になるほど装置との対話時間やコンピユータの専有
時間を多く必要とするなどの併発的な問題もあつた。
As described above, in the conventional graphic processing system, there are concomitant problems such that the more complicated the graphic is, the more time it takes for the user to interact with the device and the more time the computer occupies.

一方、特公昭58−16217 号公報には、表示されている画
像を順次走査し、背景と異なる画素の垂直方向と水平方
向とに連続している部分(連結領域)を外部記憶手段に
順次記憶し、画像上の多数の領域に番号付けを行うこと
が開示されている。しかし、この特公昭58−16217 号公
報に記載の技術は、領域の一部を取り出すことができ
ず、特定の領域を得ようとする場合には、前記したと同
様の操作を行わねばならない。
On the other hand, in Japanese Examined Patent Publication No. 58-16217, a displayed image is sequentially scanned, and a portion (connecting area) where pixels different from the background are continuous in the vertical direction and the horizontal direction is sequentially stored in an external storage means. However, it is disclosed that a number of areas on an image are numbered. However, in the technique disclosed in Japanese Patent Publication No. 58-16217, a part of the area cannot be taken out, and when obtaining a specific area, the same operation as described above must be performed.

なお、この他の領域認識のための手段あるいは装置、ま
たは形状認識のための関連技術として、例えば特開昭57
−19882 号公報,特開昭55−91077号公報,特開昭55−8
3977 号公報,特開昭55− 83972 号公報,特開昭55−1
0621 号公報などがある。
Incidentally, as other means or device for area recognition, or as a related technique for shape recognition, for example, Japanese Patent Laid-Open No.
-19882, JP-A-55-91077, JP-A-55-8
3977, JP55-83972, JP55-1
0621 publication and the like.

〔発明の目的〕[Object of the Invention]

本発明は、図形処理装置に入力してある図形の任意の領
域を、容易に取り出すことができる領域認識方法を提供
することを目的とする。
An object of the present invention is to provide an area recognition method capable of easily extracting an arbitrary area of a graphic input to a graphic processing device.

〔発明の概要〕[Outline of Invention]

本発明は、情報処理装置に図形の情報を入力して蓄積
し、この入力した図形の任意の領域を指示して表示せし
める領域認識方法において、前記図形を構成する各線分
の、少なくとも端点における接続条件を含む情報を予め
前記情報処理装置に入力し、前記図形の認識しようとす
る領域を指定する少なくとも端点を含む指示情報を前記
情報処理装置に与え、前記指示情報で指定された端点を
含み、前記線分の接続条件を満たす線分を前記情報処理
装置に抽出させ、該抽出された線分の新たな端点を新た
な指示情報として前記情報処理装置に認識させ、該新た
な端点を含み、前記接続条件を満たす線分を抽出させ、
抽出された線分が前記指示情報で指定された領域を形成
するまで上記手順を繰り返すことにより、情報処理装置
自体に領域を構成する線分を探索させ、図形の任意の領
域を容易に取り出すことができるように構成したもので
ある。
The present invention relates to an area recognition method for inputting and accumulating graphic information to an information processing device and indicating and displaying an arbitrary area of the inputted graphic, in which at least end points of respective line segments forming the graphic are connected. Information including conditions is input to the information processing device in advance, instruction information including at least an end point for designating an area to be recognized of the graphic is given to the information processing device, and the end point is designated by the instruction information. A line segment satisfying the connection condition of the line segment is extracted by the information processing device, and a new endpoint of the extracted line segment is recognized by the information processing device as new instruction information, and the new endpoint is included. Extract line segments that meet the connection conditions,
Repeating the above procedure until the extracted line segment forms the region specified by the instruction information, causing the information processing device itself to search for the line segment that constitutes the region, and easily extract any region of the figure. It is configured to be able to.

〔発明の実施例〕Example of Invention

本発明に係る領域認識方法の好ましい実施例を、添付図
面に従つて詳説する。
A preferred embodiment of the area recognition method according to the present invention will be described in detail with reference to the accompanying drawings.

第2図は、本発明に係る領域認識方法を実施する図形処
理システムの基本構成を示したブロツク図である。この
図形処理システムは、入力部10と処理部20と出力部
30とからなつている。入力部10は、第3図に示すよ
うに、スタイラスペン12,タブレツト14,キーボー
ド16,フアンクシヨンキー18などを有する、座標情
報指示装置および情報入力装置を構成している。この入
力部10は、出力部30に表示された既に入力してある
図形の構成要素、例えば線分のデータを指示したり、パ
ラメータの入力を行うことができる。
FIG. 2 is a block diagram showing the basic configuration of a graphic processing system for implementing the area recognition method according to the present invention. This graphic processing system includes an input unit 10, a processing unit 20, and an output unit 30. As shown in FIG. 3, the input section 10 constitutes a coordinate information pointing device and an information input device having a stylus pen 12, a tablet 14, a keyboard 16, a function key 18, and the like. The input unit 10 can instruct the already-input component of the graphic displayed on the output unit 30, for example, the data of a line segment, and input parameters.

処理部20は、マイクロコンピユータ22,ホストコン
ピユータ24,補助記憶装置26等からなつており、マ
イクロコンピユータ22がタブレツト14,キーボード
16,フアンクシヨンキー18に接続している。そし
て、この処理部20は、ハードコピー機,プロツタ等を
有する出力部30の例えばカラーデイスプレイ32への
表示や、入力部10を構成する各種装置からのデータの
取り込み,検査,探索,認識,補助記憶装置26への記
録、および図形処理装置を構成する各機器の動作制御を
司つている。
The processing unit 20 includes a microcomputer 22, a host computer 24, an auxiliary storage device 26, etc., and the microcomputer 22 is connected to the tablet 14, the keyboard 16, and the function key 18. The processing unit 20 displays the output unit 30 having a hard copy machine, a plotter, etc. on, for example, the color display 32, fetches data from various devices constituting the input unit 10, inspects, searches, recognizes, and assists. It controls the recording in the storage device 26 and the operation control of each device constituting the graphic processing device.

上記の図形処理システムによる領域認識方法は、図形の
有限要素分割を例にとると、第1図に示したPAD(Pro
blem Analysis Diagram)のごとくなつている。
Taking the finite element division of a figure as an example, the area recognition method by the figure processing system described above takes the PAD (Pro) shown in FIG.
blem Analysis Diagram).

補助記憶装置26には、有限要素分割をすべき図形が既
に入力されており、この入力した図形がカラーデイスプ
レイ32に表示されている。また、カラーデイスプレイ
32に表示された図形は、マイクロコンピユータ22と
ホストコンピユータ24とにより図形の情報としての端
点座標位置,ベクトル,半径,ポリゴンデータ等が読み
取られ、補助記憶装置26に蓄積されている。そして、
使用者がカラーデイスプレイ32に表示された図形を、
有限要素分割する場合、第1図のステツプ100に示す
ごとく、キーボード16により有限要素の位相的次元数
を指示するとともに、位相的次元数に対応する基準図形
をスタイラスペン12とタブレツト14とを用いて指示
(入力)する。入力データとして、位相的次元数を1、
または2、あるいは3のいずれかを入力すると、第4図
に例示したそれぞれの位相的次元数に対応する位相的条
件に基づいて処理が実行される。位相的次元数が1の場
合、領域を認識するための位相的条件は線分であり、具
体的には第4図(A)に示すごとく、直線、円弧、曲線、
楕円弧等の線分である。また、位相的次元数が2の場
合、領域を認識するための位相的条件は閉ループであ
り、具体的には第4図(B)に示すごとく、三辺形,四辺
形等の面となる。さらに、位相的次元数が3の場合、領
域を認識するための位相的条件は立体となり、具体的に
は第4図(C)に示すごとく、四面体、五面体、六面体等
の立体である。そして、これら位相的次元数に対応する
基準図形は、第5図に示すとおりである。
A graphic to be divided into finite elements has already been input to the auxiliary storage device 26, and the input graphic is displayed on the color display 32. Further, the figure displayed on the color display 32 is read by the micro computer 22 and the host computer 24 as the end point coordinate position, the vector, the radius, the polygon data and the like as the figure information and accumulated in the auxiliary storage device 26. . And
The figure displayed on the color display 32 by the user
When dividing into finite elements, as shown in step 100 of FIG. 1, the keyboard 16 is used to indicate the topological dimension number of the finite element, and the reference figure corresponding to the topological dimension number is used by the stylus pen 12 and the tablet 14. To instruct (input). As input data, the topological dimension number is 1,
When either 2, or 3 is input, the process is executed based on the topological condition corresponding to each topological dimension number illustrated in FIG. When the topological dimension is 1, the topological condition for recognizing a region is a line segment. Specifically, as shown in FIG. 4 (A), a straight line, an arc, a curve,
It is a line segment such as an elliptic arc. When the topological dimension is 2, the topological condition for recognizing a region is a closed loop, and specifically, as shown in FIG. 4 (B), the surface is a triangle, a quadrangle, or the like. . Further, when the topological dimension is 3, the topological condition for recognizing the region is a solid, and specifically, as shown in FIG. 4 (C), it is a tetrahedron, pentahedron, hexahedron, etc. . The reference figures corresponding to these topological dimensions are as shown in FIG.

すなわち、位相的次元数が1の場合、基準図形は第5図
(A)に示すごとく、V1,V2といつた端点のことであ
り、これを基準端点と呼ぶ。以下同様に、位相的次元数
が2の場合の基準図形は、第5図(B)に示す線分e1
e4のいずれかを指し、これを基準エツジと呼ぶ。位相的
次元数が3の場合の基準図形は、五面体を例にとると、
第5図(C)に示したループを形成する線分e1−e2
e3,e4−e7−e5−e1等を指し、これらを基準ループとい
う。
That is, when the topological dimension is 1, the reference figure is the end points of V 1 and V 2 as shown in FIG. 5 (A), which is called the reference end point. Similarly, the reference figure in the case where the topological dimension is 2 is the line segment e 1 ~ shown in FIG. 5 (B).
It refers to one of e 4 and this is called the reference edge. Taking the pentahedron as an example, the reference figure when the topological dimension is 3 is
Line segment e 1 −e 2 − forming the loop shown in FIG. 5 (C)
e 3 , e 4 −e 7 −e 5 −e 1 etc., and these are called reference loops.

使用者が指示した位相的次元数と基準図形とは、認識し
ようとする領域を指定する指示情報として、処理部20
を構成するマイクロコンピユータ22により読み取ら
れ、ホストコンピユータ24に転送される。ホストコン
ピユータ24はステツプ101に示すように、転送され
てきた指示情報に基き、補助記憶装置26内に保存して
ある図形情報にアクセスし、指示された基準図形を含
み、予め与えられた幾何学的条件と位相的条件とを満す
全ての領域を探索する。本実施例における幾何学的条件
は、線分の端点が二つの線分に共有されるとき、該二つ
の線分は接続されているとみなすというものであり、あ
る端点に対してこの幾何学的条件が満たされている線分
とは、該線分の端点と前記ある端点が共通である線分を
いう。すなわち、第6図にその一例を示すと、カラーデ
イスプレイ32における表示が、第6図(A)のごとく
なつているとすると、図形データの内部構造模型が第6
図(B)に示すように、○印により示した各端点が共有
されている場合を、幾何学的条件が満足されているもの
とし、第6図(C)に示すごとく、端点が共有されない
部分があるときは、幾何学的条件を満足しないものとし
ている。また、位相的条件とは、先の第4図に示したと
おりであり、例えば、第4図(C)に示された三角柱に対
して入力される位相的条件は、閉ループが閉じた立体を
形成していること、該閉ループが三辺形、四辺形からな
ること、などを示すものである。
The topological dimension number and the reference figure instructed by the user are used as instruction information for specifying the area to be recognized, and are processed by the processing unit 20.
Are read by the micro computer 22 constituting the above, and transferred to the host computer 24. As shown in step 101, the host computer 24 accesses the graphic information stored in the auxiliary storage device 26 on the basis of the transferred instruction information, and includes the instructed reference figure, and has a predetermined geometry. All regions satisfying the dynamic condition and the topological condition are searched. The geometrical condition in this embodiment is that when an endpoint of a line segment is shared by two line segments, the two line segments are considered to be connected. The line segment satisfying the target condition is a line segment in which the end point of the line segment and the certain end point are common. That is, when an example is shown in FIG. 6, assuming that the display on the color display 32 is as shown in FIG. 6 (A), the internal structure model of the graphic data is the sixth model.
As shown in FIG. 6 (B), when the endpoints indicated by a circle are shared, it is assumed that the geometric conditions are satisfied, and as shown in FIG. 6 (C), the endpoints are not shared. When there is a part, it is assumed that the geometric condition is not satisfied. The topological condition is as shown in FIG. 4 above. For example, the topological condition input to the triangular prism shown in FIG. That the closed loop is formed of a triangle or a quadrangle.

前記幾何学的条件と位相的条件は、上記のように、線分
の端点における接続条件や、各図形の位相的条件を示す
情報として入力される。
The geometrical condition and the topological condition are input as information indicating the connection condition at the end points of the line segment and the topological condition of each figure as described above.

この領域の探索は、例えば入力されている図形が第5図
(B)の四辺形の場合、位相的次元数が2と与えられ、
を基準図形(基準エッジ)として入力されたとする
と、ホストコンピユータ24は、基準図形(基準エッ
ジ)eの2つの端点V1,V2のいずれかを共有する線分
と線分eとを探索する。その後、ホストコンピユ
ータ24は、線分e2,e4の基準図形(基準エッジ)e
と共有していない方の端点V3,V4を共有する線分を探索
し、そのような線分としてeが存在することを確認す
ると、与えられた位相的条件を満足するものとして、e1
−e2−e3−e4というループ情報を一時的に記憶する。し
かし、上記の探索によって幾何学的条件と位相的条件と
を満足する領域が検出されない場合には、“領域が存在
し得ない”として処理を終了する。
In the search for this region, for example, when the input figure is a quadrangle in FIG. 5 (B), the topological dimension number is given as 2,
Assuming that e 1 is input as a reference figure (reference edge), the host computer 24 determines that the line segment e 2 and the line segment that share one of the two end points V 1 and V 2 of the reference figure (reference edge) e 1. Search for e 4 . After that, the host computer 24 determines the reference figure (reference edge) e 1 of the line segments e 2 and e 4.
If a line segment that shares the end points V 3 and V 4 that are not shared with is searched for and it is confirmed that e 3 exists as such a line segment, it is determined that the given topological condition is satisfied. e 1
Temporarily stores the loop information −e 2 −e 3 −e 4 . However, when the area that satisfies the geometrical condition and the topological condition is not detected by the above search, it is determined that "the area cannot exist", and the processing ends.

次に、ホストコンピユータ24は、ステツプ102に示
すように、検出した領域に矛盾が存在するか否かを検査
する。この検査は次の2点から行われる。
Next, the host computer 24 checks, as shown in step 102, whether or not there is a contradiction in the detected area. This inspection is performed from the following two points.

(1)現在検出した領域の重心が、過去に検出した領域
の重心と一致するかどうか。
(1) Whether the center of gravity of the currently detected region matches the center of gravity of the previously detected region.

(2)指定された基準図形を含む検出領域が、2つ以上
存在するかどうか。
(2) Whether or not there are two or more detection areas including the designated reference graphic.

この検査の(1)については、物体には重心があり、物
体の形状により重心が異なるという点に着目して行うも
ので、検出した領域の座標値から重心を求め、重心が異
なつていれば新たな領域として認識し、重心が同じであ
れば既に認識ずみの領域としてそのデータを捨てる。ま
た、検査の(2)に関しては、基準図形を含む領域は、
原則として1つだけ存在するという仮定条件をたててお
くことにより、検出した領域が2つ以上存在する場合、
1つを残して他を捨てる。この場合、本実施例において
は、ステツプ104に示すように、どの領域が必要であ
るかを使用者の認識に委ねる対話チエツク方式を採つて
いる。しかし、自動モードにより、ホストコンピユータ
24に選択させることも可能である。
Regarding (1) of this inspection, attention is paid to the fact that the object has a center of gravity, and the center of gravity differs depending on the shape of the object. The center of gravity is obtained from the coordinate values of the detected area, and the center of gravity is different. If it is recognized as a new area, the data is discarded as an already recognized area if the centers of gravity are the same. Regarding the inspection (2), the area including the reference figure is
As a general rule, by setting the assumption that there is only one, when there are two or more detected regions,
Leave one and discard the others. In this case, in this embodiment, as shown in step 104, an interactive check method is adopted in which it is left to the user's recognition which area is necessary. However, it is also possible to allow the host computer 24 to select in the automatic mode.

検出した領域が上記の矛盾を含まない場合には、ステツ
プ103に示すように、その領域を補助記憶装置26に
入力してある図形のデータとともに登録する。続いて、
ホストコンピユータ24は、ステツプ105に移り、今
登録した領域を基準領域とするとともに、基準領域を構
成する線分のうち、基準図形として指示されたものを除
いたものの中から、例えば第5図(B)のe2,e3,e4
いずれか1つを、新たな基準図形(基準エッジ)として
設定しなおし、ステツプ101に戻り、領域の探索処理
を続行する。新たに設定した基準図形は、例えばループ
を探索するときに、必ず反時計回りに処理するように設
定しておくことにより、探索の順序の早いものが次の基
準図形となる。即ち、上記の例においては、eが新た
な基準図形(基準エツジ)となる。
If the detected area does not include the above contradiction, the area is registered with the graphic data input to the auxiliary storage device 26 as shown in step 103. continue,
The host computer 24 moves to step 105, sets the region that has just been registered as the reference region, and selects from among the line segments forming the reference region, excluding those designated as the reference graphic, for example, FIG. Any one of e 2 , e 3 , and e 4 in B) is reset as a new reference figure (reference edge), the process returns to step 101, and the area search processing is continued. By setting the newly set reference graphic so that it is always processed in the counterclockwise direction, for example, when searching for a loop, the reference graphic with the earliest search order becomes the next reference graphic. That is, in the above example, e 2 becomes a new reference figure (reference edge).

一方、ホストコンピユータ24は、ステツプ105にお
いて基準領域とした領域を構成している線分の全てが、
基準図形(基準エッジ)として選ばれたか否かを検査し
ている。また、ステツプ105は、基準領域の更新を基
準図形の場合と同じ手段によつて行つている。すなわ
ち、基準領域を構成している全ての線分が基準図形とし
て選択されたのちは、補助記憶装置26に蓄積してある
領域のうち、今まで基準領域としていた領域の次に蓄積
した領域を新しい基準領域に更新し、その領域を構成し
ている線分の全てが基準図形として選ばれたか否かをチ
エツクする。
On the other hand, in the host computer 24, all of the line segments that make up the area used as the reference area in step 105 are
It is inspected whether or not it has been selected as a reference figure (reference edge). The step 105 updates the reference area by the same means as in the case of the reference figure. That is, after all the line segments forming the reference area are selected as the reference figure, the area accumulated next to the area previously used as the reference area among the areas accumulated in the auxiliary storage device 26 is selected. It is updated to a new reference area, and it is checked whether all the line segments forming the area have been selected as the reference figure.

このようにして、上記ステツプ101〜105の操作を
再帰的に繰返し、入力した図形の領域を認識することが
可能となる。そして、処理の終了は、探索した領域が全
て基準領域となり、かつこれら各基準領域における全て
の線分が基準図形として選出され、これらの基準図形を
含む領域が探索されて、認識処理が終了した時点である
(ステツプ106)。その後、ステツプ107,108
に進み、認識した領域の全てを自動的に有限要素分割す
る。そして、その結果のハードコピーが欲しい場合等
は、フアンクシヨンキー18によりその指示を与える。
In this way, it is possible to recursively repeat the operations of steps 101 to 105 and recognize the area of the input graphic. Then, the processing ends, all the searched areas become the reference areas, and all the line segments in each of these reference areas are selected as the reference figures, the areas including these reference figures are searched, and the recognition processing ends. It is time (step 106). Then, steps 107 and 108
Then, all the recognized areas are automatically divided into finite elements. If a hard copy of the result is desired, the instruction is given by the function key 18.

次に、上記の領域認識方法について、第7図を用いてよ
り詳細に説明する。
Next, the area recognition method will be described in more detail with reference to FIG.

第7図(A)の場合において、まず、使用者によりスタ
イラスペン12とタブレツト14を用いて線分Aが指示
され、キーボード16を用いて位相次元数2が入力され
ると、マイクロコンピユータ22は線分Aが指示された
ことを解釈し、位相次元数とともにホストコンピユータ
24に転送し、ホストコンピユータ24が線分Aを基準
図形(基準エッジ)として解釈する(ステツプ10
0)。続いて、ホストコンピユータ24は、基準図形
(基準エッジ)Aの両端点から端を発する線分B,Dを
探索するとともに、線分B,Dが基準図形(基準エッ
ジ)Aと共有していない方の端点を共有する線分Cを探
索し、端点を黒丸で示した領域ABCDを抽出する(ステツ
プ101)。次に、ホストコンピユータ24は、抽出し
た領域ABCDに矛盾があるか否かを判断するため、領域AB
CDについて重心を求めるとともに、基準図形(基準エッ
ジ)を共有する他の領域があるか否かを判定する(ステ
ツプ102)。本実施例では、領域ABCDに矛盾がないた
め、この領域を補助記憶装置26内に確保してあるデー
タベースに登録する(ステツプ103)。
In the case of FIG. 7 (A), first, when the user designates the line segment A using the stylus pen 12 and the tablet 14, and the phase dimension number 2 is input using the keyboard 16, the micro computer 22 It interprets that the line segment A is instructed and transfers it together with the phase dimension number to the host computer 24, and the host computer 24 interprets the line segment A as a reference figure (reference edge) (step 10).
0). Subsequently, the host computer 24 searches for line segments B and D that start from both end points of the reference figure (reference edge) A, and the line segments B and D do not share the reference figure (reference edge) A. A line segment C sharing the other end point is searched for, and a region ABCD whose end point is indicated by a black circle is extracted (step 101). Next, the host computer 24 determines whether or not there is a contradiction in the extracted area ABCD.
The center of gravity of the CD is obtained, and it is determined whether or not there is another area sharing the reference figure (reference edge) (step 102). In this embodiment, since there is no contradiction in the area ABCD, this area is registered in the database secured in the auxiliary storage device 26 (step 103).

次に、ホストコンピユータ24は、領域ABCDを基準領域
とするとともに、線分Bを新たな基準図形(基準エッ
ジ)とし(ステツプ105)、ステツプ101に戻つて
新たな領域を探索する。しかし、線分Bを基準図形(基
準エッジ)として探索した領域BCDAは、基準領域(領域
ABCD)と同じ領域であり、重心が一致するため、新たな
領域として認識しない(ステツプ102)。そこで、ホ
ストコンピユータ24は、線分Cを新たな基準図形(基
準エッジ)として更新し(ステツプ105)、基準図形
(基準エッジ)Cについて領域の探索を行い、領域CDAB
と領域CEFGとを抽出する(ステツプ101)。しかし、
領域CDABについては、領域ABCDと重心が同一であるた
め、新たな領域と認識されず、領域CEFGのみを新たな領
域として認識し、登録する(ステツプ102,ステツプ
103)。その後、ホストコンピユータ24は、線分D
を基準図形(基準エッジ)として領域の操索を行い、線
分Bの場合と同様の処理をする。
Next, the host computer 24 uses the area ABCD as the reference area and the line segment B as a new reference figure (reference edge) (step 105), and returns to step 101 to search for a new area. However, the area BCDA searched for the line segment B as the reference figure (reference edge) is
Since it is the same area as ABCD) and the centers of gravity are the same, it is not recognized as a new area (step 102). Therefore, the host computer 24 updates the line segment C as a new reference figure (reference edge) (step 105), searches for an area for the reference figure (reference edge) C, and outputs the area CDAB.
And the area CEFG are extracted (step 101). But,
Since the area CDAB has the same center of gravity as the area ABCD, it is not recognized as a new area and only the area CEFG is recognized as a new area and registered (step 102, step 103). After that, the host computer 24 displays the line segment D.
Is operated as a reference figure (reference edge), and the same processing as in the case of the line segment B is performed.

このようにして、基準領域ABCDを構成するすべての線分
を基準図形(基準エッジ)として領域の探索を終了する
と、ホストコンピユータ24は、基準領域を更新して領
域CEFGを新たな基準領域に定め、この新たな基準領域CE
FGの線分Eを新しい基準図形(基準エッジ)にする(ス
テツプ105)。しかしながら、線分E,F,Gを基準
図形(基準エッジ)とする領域の探索は、線分B,Dの
場合と同様の結果となり、新たに領域を認識することが
ない。そして、線分E,F,Gについての領域の探索が
終了すると、更新すべき基準領域も基準図形(基準エッ
ジ)もなくなるため、領域の探索が終了する(ステツプ
106)。最後に、ホストコンピユータ24は、与えら
れた指示に従い、各線分に分割数を設定し、認識領域の
全てについて自動的に有限要素分割を行う。
In this way, when the area search is completed by using all the line segments forming the reference area ABCD as reference figures (reference edges), the host computer 24 updates the reference area and sets the area CEFG as a new reference area. , This new reference area CE
The line segment E of FG is set as a new reference figure (reference edge) (step 105). However, a search for an area using the line segments E, F, and G as reference graphics (reference edges) has the same result as in the case of the line segments B and D, and a new area is not recognized. When the area search for the line segments E, F, and G is completed, the reference area to be updated and the reference figure (reference edge) are eliminated, and the area search is completed (step 106). Finally, the host computer 24 sets the number of divisions for each line segment according to the given instruction, and automatically performs finite element division for all recognition regions.

位相次元数が1または3の場合についても、位相次元数
が2の場合を基本にして容易に理解でき、第7図(B)
は位相次元数が3の例を示したものである。第7図
(B)において、最初に指示される基準図形(基準ルー
プ)は、斜線を施した面を構成する線分である。そし
て、最初に得られる基準領域は、端点を黒丸で示した線
分からなる六面体Qとなる。
Even when the phase dimension number is 1 or 3, it can be easily understood based on the case where the phase dimension number is 2 as shown in FIG. 7 (B).
Shows an example in which the number of phase dimensions is three. In FIG. 7 (B), the reference figure (reference loop) that is first designated is a line segment that constitutes a hatched surface. Then, the first obtained reference area is a hexahedron Q composed of line segments whose end points are indicated by black circles.

本実施例の具体例を第8図に示した。第8図(A)に示
したものが、図形処理システムに入力した図形であり、
*と#とが付いている線分が基準図形(基準エツジ)で
ある。また、このときの位相的次元数は2である。そし
て、第8図(B)〜(M)は、探索した領域をデイスプ
レイ上に表示したものであり、これらに付してある番号
は、領域の向き付け(左回り)を示し、番号1が各領域
における基準図形(基準エツジ)である。また、第8図
(N)は、認識した領域を有限要素分割した結果であ
る。
A specific example of this embodiment is shown in FIG. What is shown in FIG. 8 (A) is a graphic input to the graphic processing system,
The line segment with * and # is the reference figure (reference edge). The topological dimension number at this time is two. 8 (B) to (M) show the searched areas on the display, and the numbers attached to these indicate the orientation of the areas (counterclockwise), and the number 1 is It is a reference figure (reference edge) in each area. Further, FIG. 8 (N) is the result of finite element division of the recognized area.

以上のように、本実施例によれば、図形処理装置の使用
者が最初に基準図形と位相的次元数を指定・入力するだ
けで、コンピユータが領域の指定および探索(ステツプ
101),領域の検査(ステツプ102)を行うため、
必要な領域を迅速にかつ非常に効率的に取り出すことが
できる。また、探索する領域の幾何学的および位相的条
件について、種々の工夫をすることができ、より効率的
かつ汎用的効果を得ることができる。例えば、入力した
図形の全ての線分の端点が同一平面上にある場合、3次
元認識領域にはなり得ないという条件を付することがで
きる。さらに、2次元認識領域が多辺形であるとき、領
域内に最外郭線以外の線素があつてはならないという条
件を付することなどにより、目的に合つた性能,機能向
上を容易に行える。
As described above, according to the present embodiment, the user of the graphic processing apparatus only first specifies and inputs the reference graphic and the topological dimension number, and the computer specifies and searches the area (step 101), and the area is searched. To perform the inspection (step 102),
The required area can be retrieved quickly and very efficiently. In addition, various modifications can be made to the geometrical and topological conditions of the area to be searched, and more efficient and general-purpose effects can be obtained. For example, it is possible to add a condition that if the endpoints of all the line segments of the input figure are on the same plane, the three-dimensional recognition area cannot be obtained. Furthermore, when the two-dimensional recognition area is a polygon, by adding a condition that no line element other than the outermost line should be applied in the area, performance and function improvement suitable for the purpose can be easily performed. .

さらに、本実施例においては、使用者は最初に基準図形
と位相的次元数とを指示・入力するだけであるため、誤
操作を極めて少なくすることができ、しかも修正が容易
である。
Further, in the present embodiment, the user only needs to first instruct and input the reference figure and the topological dimension number, so that the erroneous operation can be extremely reduced and the correction is easy.

前記実施例においては、有限要素分割について説明した
が、第9図に示すように、図面の面張りまたは塗りつぶ
しに適用することもできる。すなわち、第9図(A)の
図形処理システムに入力した図形を、第9図(B)に示
すごとく有限要素分割することも可能であり、第9図
(C)の斜線に示すごとく図形の塗りつぶしも可能であ
る。また、前記実施例においては、位相的条件としては
第4図に示すような領域を与えた場合について説明した
が、多辺形または多面体を領域として与えることも容易
に可能である。なお、第10図〜第12図は、実際の図
形処理システムにより有限要素分割を行つた結果を示し
たものであり、第10〜第12図の(A)は、最初に図
形処理システムに入力した図形、同じく(B)は有限要
素割分を行つた図形である。第10図〜第12図に対応
した図形について、前記実施例に基づきより詳細な有限
要素分割したときの所要時間を従来と比較すると、次の
第1表のごとくなる。ただし、第1表中の第10図〜第
12図の記載は、第10図〜第12図そのものでなく、
これらに対応した「同様の図形」の意味である。
Although the finite element division has been described in the above embodiment, as shown in FIG. 9, it can also be applied to surface drawing or painting of the drawing. That is, it is also possible to divide the figure input into the figure processing system of FIG. 9 (A) into finite elements as shown in FIG. 9 (B), and to draw the figure as shown by the diagonal lines in FIG. 9 (C). Filling is also possible. Further, in the above-mentioned embodiment, the case where the region as shown in FIG. 4 is given as the topological condition has been described, but it is also possible to easily give a polygon or a polyhedron as the region. 10 to 12 show the results of finite element division performed by an actual graphic processing system, and FIG. 10 (A) to FIG. 12 (A) are input to the graphic processing system first. Similarly, the figure (B) is a figure obtained by performing finite element division. Comparing the time required for more detailed finite element division of the figure corresponding to FIGS. 10 to 12 with the conventional example, the following Table 1 is obtained. However, the description of FIGS. 10 to 12 in Table 1 is not the same as FIGS.
It means the "similar figure" corresponding to these.

なお、計測時間は、パラメータ入力時から領域の定義、
または認識が終了するまでのものである。また、使用す
る計算機や応答時間,計測時の計算機の環境により、計
測時間が多少左右されるが、この比較値に大差はない。
The measurement time is defined by the area from the time of parameter input,
Or until recognition is completed. Further, the measurement time is somewhat affected by the computer used, the response time, and the environment of the computer at the time of measurement, but there is no great difference in this comparison value.

これら各実施例においては、入力した図形の全ての領域
について有限要素分割をしているが、入力した図形の一
部について有限要素分割や面張り、塗りつぶしを行うこ
とができることはもちろんである。この場合、対話方式
ばかりでなく、自動モードにより行うこともできる。
In each of these embodiments, the finite element division is performed for all the regions of the input graphic, but it is needless to say that the finite element division, the surface covering, and the filling can be performed for a part of the input graphic. In this case, not only the interactive method but also the automatic mode can be used.

〔発明の効果〕〔The invention's effect〕

以上に説明したごとく、本発明によれば、図形処理シス
テム自体に領域の探索,検査を行わせるために、入力し
た図形の必要とする領域を容易,迅速に得ることができ
る。
As described above, according to the present invention, the area required by the input graphic can be easily and quickly obtained in order to cause the graphic processing system itself to search and inspect the area.

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

第1図は本発明に係る領域認識方法の実施例の手順を示
すPAD表示図、第2図は本発明に係る領域認識方法を
実施する図形処理システムの基本構成ブロツク図、第3
図は本発明に係る領域認識方法を実施する図形処理シス
テムの具体的な実施例を示す構成図、第4図(A)〜
(C)は位相的条件の例を示す説明図であつて、(A)
は位相的次元数が1の場合,(B)は位相的次元数が2
の場合,(C)は位相的次元数が3の場合、第5図
(A)〜(C)は基準図形の説明図であり、(A)は位
相的次元数が1の場合,(B)は位相的次元数が2の場
合、(C)は位相的次元数が3の場合、第6図(A)〜
(C)は幾何学的条件の一例を示す説明図、第7図
(A),(B)は本発明の実施例に係る領域認識方法の
具体的手順を示す説明図、第8図(A)〜(N)は本発
明に係る領域認識方法の具体的実施例である有限要素分
割の説明図、第9図(A)〜(C)は本発明の実施例に
係る領域認識方法を応用した有限要素分割と塗りつぶし
の説明図、第10図ないし第12図は実際の図形処理シ
ステムによる有限要素分割の結果を示す図である。 12……スタイラスペン、14……タブレツト、16…
…キーボード、18……フアンクシヨンキー、22……
マイクロコンピユータ、24……ホストコンピユータ、
26……補助記憶装置、32……カラーデイスプレイ。
FIG. 1 is a PAD display diagram showing a procedure of an embodiment of an area recognition method according to the present invention, and FIG. 2 is a block diagram of a basic configuration of a graphic processing system for implementing the area recognition method according to the present invention.
FIG. 4A is a block diagram showing a concrete embodiment of a graphic processing system for carrying out the area recognition method according to the present invention.
(C) is explanatory drawing which shows the example of topological conditions, (A)
If the topological dimension is 1, then (B) the topological dimension is 2
, (C) is an explanatory view of the reference figure when the topological dimension is 3, and (A) is an explanatory view of the reference figure. (A) is (B) when the topological dimension is 1. ) Is a case where the topological dimension is 2, (C) is a case where the topological dimension is 3, FIG.
FIG. 7 (C) is an explanatory view showing an example of geometric conditions, FIGS. 7 (A) and 7 (B) are explanatory views showing a specific procedure of the area recognition method according to the embodiment of the present invention, and FIG. 8 (A). ) To (N) are explanatory diagrams of finite element division, which is a specific embodiment of the area recognition method according to the present invention, and FIGS. 9A to 9C are application of the area recognition method according to the embodiment of the present invention. FIG. 10 to FIG. 12 are explanatory diagrams of the finite element division and the filling, and FIGS. 10 to 12 are diagrams showing the result of the finite element division by the actual graphic processing system. 12 ... Stylus pen, 14 ... Tablet, 16 ...
… Keyboard, 18 …… function keys, 22 ……
Microcomputer, 24 ... Host computer,
26 ... Auxiliary storage device, 32 ... Color display.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】情報処理装置に図形の情報を入力して蓄積
し、この入力した図形の任意の領域を指示して表示せし
める領域認識方法において、 前記図形を構成する各線分の、少なくとも端点におけ
る接続条件を含む情報を予め前記情報処理装置に入力
し、 前記図形の認識しようとする領域を指定する少なくと
も端点を含む指示情報を前記情報処理装置に与え、 前記指示情報で指定された端点を含み、前記線分の接
続条件を満たす線分を前記情報処理装置に抽出させ、 該抽出された線分の新たな端点を新たな指示情報とし
て前記情報処理装置に認識させ、 該新たな端点を含み、前記接続条件を満たす線分を抽
出させ、 抽出された線分が前記指示情報で指定された領域を形
成するまで上記手順が繰り返えされること、 を特徴とする領域認識方法。
1. An area recognition method for inputting and accumulating graphic information to an information processing device and indicating and displaying an arbitrary area of the input graphic, comprising: at least an end point of each line segment constituting the graphic. Information including a connection condition is input to the information processing device in advance, instruction information including at least an end point for designating an area to be recognized of the graphic is given to the information processing device, and the end point designated by the instruction information is included. , Causing the information processing device to extract a line segment satisfying the connection condition of the line segment, causing the information processing device to recognize the new endpoint of the extracted line segment as new instruction information, and including the new endpoint. An area recognition method, wherein a line segment satisfying the connection condition is extracted, and the above procedure is repeated until the extracted line segment forms an area specified by the instruction information. .
【請求項2】特許請求の範囲第1項記載の領域認識方法
において、 前記図形を構成する各線分の、少なくとも端点におけ
る接続条件を含む情報が、前記図形を構成する線分の端
点が二つの線分で共有されるとき、該二つの線分が接続
されているとする幾何学的条件であることと、 認識しようとする領域を指定する少なくとも端点を含
む指示情報が、前記図形の少なくとも端点を含む一部
と、認識しようとする領域の位相的次元数とを含むもの
であること、 とを特徴とする領域認識方法。
2. The area recognition method according to claim 1, wherein the information including the connection condition at least at the end points of each line segment forming the figure is two end points of the line segment forming the figure. When shared by line segments, the geometric condition is that the two line segments are connected, and the instruction information including at least the end point that specifies the area to be recognized is at least the end point of the figure. A region recognition method, characterized in that it includes a part including "," and a topological dimension number of a region to be recognized.
【請求項3】特許請求の範囲第1項記載の領域認識方法
において、 前記図形を構成する各線分の、少なくとも端点におけ
る接続条件を含む情報が、前記図形を構成する線分の端
点が二つの線分で共有されるとき該二つの線分が接続さ
れているとする幾何学的条件と、前記図形の位相的条件
とを含むものであることと、 前記図形の位相的条件は、当該図形が、端点を持つ各
独立の線分からなるもの、端点を共有する線分で形成さ
れる閉図形、及び該閉図形の組合せで形成される閉じた
立体のいずれであるかを規定するものであることと、 とを特徴とする領域認識方法。
3. The area recognition method according to claim 1, wherein the information including the connection condition at least at the end points of each line segment forming the figure is two end points of the line segment forming the figure. The geometric condition that the two line segments are connected when shared by line segments and the topological condition of the figure are included, and the topological condition of the figure is that the figure is It defines whether each is an independent line segment having end points, a closed figure formed by line segments sharing an end point, or a closed solid formed by a combination of the closed figures. An area recognition method characterized by, and.
【請求項4】特許請求の範囲第1項記載の領域認識方法
において、 前記図形を構成する各線分の、少なくとも端点におけ
る接続条件を含む情報が、前記図形を構成する線分の端
点が二つの線分で共有されるとき該二つの線分が接続さ
れているとする幾何学的条件と、前記図形の位相的条件
とを含むものであることと、 前記図形の位相的条件は、当該図形が、端点を持つ各
独立の線分からなるもの、端点を共有する線分で形成さ
れる閉図形、及び該閉図形の組合せで形成される閉じた
立体のいずれであるかを表現するものであることと、 認識しようとする領域を指定する少なくとも端点を含
む指示情報が、前記図形の少なくとも端点を含む一部
と、認識しようとする領域の位相的次元数とを含むもの
であること、 とを特徴とする領域認識方法。
4. The area recognition method according to claim 1, wherein the information including the connection condition at least at the end points of each line segment forming the graphic is two end points of the line segment forming the graphic. The geometric condition that the two line segments are connected when shared by line segments and the topological condition of the figure are included, and the topological condition of the figure is that the figure is It represents whether it is an independent line segment having end points, a closed figure formed by line segments sharing an end point, or a closed solid formed by a combination of the closed figures. An area in which the instruction information specifying at least an end point that specifies the area to be recognized includes a part of the figure including at least the end point and the topological dimension number of the area to be recognized. Recognition method .
JP60122165A 1985-06-05 1985-06-05 Area recognition method Expired - Lifetime JPH0616289B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60122165A JPH0616289B2 (en) 1985-06-05 1985-06-05 Area recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60122165A JPH0616289B2 (en) 1985-06-05 1985-06-05 Area recognition method

Publications (2)

Publication Number Publication Date
JPS61279980A JPS61279980A (en) 1986-12-10
JPH0616289B2 true JPH0616289B2 (en) 1994-03-02

Family

ID=14829188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60122165A Expired - Lifetime JPH0616289B2 (en) 1985-06-05 1985-06-05 Area recognition method

Country Status (1)

Country Link
JP (1) JPH0616289B2 (en)

Also Published As

Publication number Publication date
JPS61279980A (en) 1986-12-10

Similar Documents

Publication Publication Date Title
JP2735187B2 (en) Information search method
US7420556B2 (en) Information processing method and information processing apparatus
US20140047367A1 (en) Image processing apparatus, image processing method, and program
JPH05342310A (en) Method and device for three-dimensional conversion of linear element data
JP3574202B2 (en) Graphic I / O device
US8543902B2 (en) Converting a drawing into multiple matrices
JP2002288687A (en) Device and method for calculating feature amount
CN114818065A (en) Three-dimensional roadway model building method and device, electronic equipment and storage medium
JP3978962B2 (en) Information search method and information search apparatus
JPH077456B2 (en) Recognition device of figure by degree of polymerization
CN112529984B (en) Method, device, electronic equipment and storage medium for drawing polygon
JPH0616289B2 (en) Area recognition method
JP2662539B2 (en) 3D graphics processor
JPH11175765A (en) Method and device for generating three-dimensional model and storage medium
JP2735197B2 (en) Graphic input device
JPH10124541A (en) Method for partially selecting three-dimensional shape dividing model and information processor
JP2003288369A (en) Design support program and design support method
CN115089965A (en) Method, apparatus, device and storage medium for path rendering in a scene
JP2536948B2 (en) Three-point specified circular arc detection method and device
JP2007128173A (en) Area calculation method using cad
JP3162130B2 (en) Graphic data input method and graphic data output method
JP2003271681A (en) Method for making fillet and program of three- dimensional cad
JPH04308886A (en) Map information input device
JPH0214373A (en) Three-dimensional point designating system
JPH06333008A (en) Input device for designation of image contour

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term