JPH04199368A - Count value generating system in pattern data processing - Google Patents

Count value generating system in pattern data processing

Info

Publication number
JPH04199368A
JPH04199368A JP2331446A JP33144690A JPH04199368A JP H04199368 A JPH04199368 A JP H04199368A JP 2331446 A JP2331446 A JP 2331446A JP 33144690 A JP33144690 A JP 33144690A JP H04199368 A JPH04199368 A JP H04199368A
Authority
JP
Japan
Prior art keywords
count value
line segment
data
pattern
generated
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.)
Pending
Application number
JP2331446A
Other languages
Japanese (ja)
Inventor
Tetsuo Fujita
哲生 藤田
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP2331446A priority Critical patent/JPH04199368A/en
Publication of JPH04199368A publication Critical patent/JPH04199368A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To simplify the bestowal of a count value, and to shorten processing time by bestowing the count value '2' upon line segment data existing before a closed pattern is generated, and bestowing the count value '1' upon the line segment data generated in processing after that. CONSTITUTION:At the time when a pattern to show the boundary of inputted pattern data is separated, and is made into a polygon as the closed pattern, timing at which the peripheral part vector of the closed pattern is generated is remarked. Namely, in the case that the closed pattern is generated from original pattern data, since a vector having been a boundary line segment in an original pattern is used as it is, it is bestowed with the count value '2', and the closed pattern is formed by generating the line segment of a peripheral part at this position, and accordingly, if the line segment data generated in the processing after that is bestowed with the count value '1', the count value can be generated automatically and rationally. Thus, the bestowal of the count value is simplified.

Description

【発明の詳細な説明】 A、産業上の利用分野 本発明は、図面読取り装置等のスキャナで入力した図形
データのうち市1区、町、村、小字街区等の境界を示す
図形を分離し、閉図形としてポリゴン化(多角形化)す
る図形データ処理における属性用カウント値の発生方式
に関する。
[Detailed Description of the Invention] A. Industrial Field of Application The present invention separates figures indicating the boundaries of the first ward of a city, a town, a village, a small block, etc. from the figure data inputted by a scanner such as a drawing reading device. , relates to a method for generating count values for attributes in graphic data processing that converts polygons into closed shapes.

B0発明の概要 本発明は、図面読取り装置等のスキャナで入力した図形
データのうち市1区、町、村、小字街区等の境界を示す
図形を分離し、閉図形としてポリゴン化する図形データ
処理の属性用カウント値の発生方式において、 閉図形を作成する以前に存在した線分データにカウント
値2を付与し、その後の処理で発生した線分データにカ
ウント値1を付与することにより、カウント値の付与を
簡略・明確化し、処理時間を大幅に短縮する技術を提供
するものである。
B0 Summary of the Invention The present invention is a graphic data processing method that separates shapes indicating the boundaries of one ward of a city, a town, a village, a small-sized block, etc. from graphic data input by a scanner such as a drawing reading device, and converts the shapes into polygons as closed shapes. In the attribute count value generation method, a count value of 2 is assigned to the line segment data that existed before the closed figure was created, and a count value of 1 is assigned to the line segment data generated in subsequent processing. It provides a technology that simplifies and clarifies the assignment of values and significantly shortens processing time.

C8従来の技術 図面読取り装置等のスキャナで図形を読取り、その図形
データのうち市9区、町1村、小字街区等の各境界を閉
図形化してポリゴン化する際に、従来の図形データ処理
では、各ベクトル図形への属性として、閉図形の周辺部
にカウント値“1”を付与し、中央部にはカウント値“
2“を付与して、任意のベクトルを基準に接続対象のベ
クトルを検索し、接続が確認されたものは前記カウント
値を減じてゆき、すべてのカウント値が“0“となった
とき処理を終了するものとしていた。
C8 Conventional technology When a figure is read by a scanner such as a drawing reading device, and each boundary of the 9 city wards, 1 town, 1 small town block, etc. is converted into closed figures and polygons, conventional figure data processing is performed. Now, as an attribute to each vector figure, a count value of "1" is given to the peripheral part of the closed figure, and a count value of "1" is given to the central part.
2", the vector to be connected is searched based on an arbitrary vector, and if the connection is confirmed, the count value is decreased, and when all the count values become "0", the process is executed. It was supposed to end.

即ち、例えば第3図に示す図形では、すべての境界図形
を閉図形とし、その交点、接点における分割処理を行っ
たのち、それらのベクトル線分に対し、属性として周辺
部(a −b 4 C−d −e 4f−+g→g→h
→a)にはカウント値1を、内部(i−+b、 i−h
、 i−j、 j −d、 j−f)には2を付与する
。次に、任意のベクトル(例えばa −* b )を選
択し、そのベクトルを基準にして、接続すべきベクトル
を予め設定された方向に検索する。接続するベクトルが
複数存在する場合には接続する角度により選択を行い、
ポリゴン同志が重ならないようにする。検索をくり返し
、基準ベクトルに戻ったならば、検出したベクトルの図
形データをポリゴンとして記憶する。処理を行ったとき
はカウント値を1減じる。0であった場合は処理対象と
しない。この処理をすべてのベクトルのカウント値が0
となるまでくり返すことにより図示の如くポリゴン化は
完成される。
That is, for example, in the figure shown in FIG. 3, all boundary figures are closed figures, and after division processing is performed at their intersections and contact points, the peripheral part (a - b 4 C -d -e 4f-+g→g→h
→a) has a count value of 1, internal (i-+b, i-h
, ij, j-d, j-f) are given 2. Next, an arbitrary vector (for example, a − * b ) is selected, and a vector to be connected is searched for in a preset direction using that vector as a reference. If there are multiple vectors to connect, select based on the connecting angle,
Make sure polygons do not overlap. When the search is repeated and the reference vector is returned, the graphic data of the detected vector is stored as a polygon. When processing is completed, the count value is decremented by 1. If it is 0, it is not processed. This process is performed until the count value of all vectors is 0.
By repeating this process until , polygonization is completed as shown in the figure.

ここで、カウント値を付与する基準は線分ベクトルの始
点と終点の座標値を使用している。
Here, the coordinate values of the starting point and ending point of the line segment vector are used as the basis for assigning the count value.

即ち、第4図に示す如く各線分にX−Y座標を設定し、
始点と終点のY座標値が同一でかつその値が全Y座標値
の最大値又は最小値であるような線分データにはカウン
ト値1を付与する。また、始点と終点のX座標値が同一
でかつその値が全X座標値の最大値又は最小値であるよ
うな線分データにもカウント値1を付与する。それ以外
の線分データにはカウント値2を付与する。
That is, as shown in Fig. 4, set the X-Y coordinates for each line segment,
A count value of 1 is assigned to line segment data in which the Y coordinate values of the starting point and the ending point are the same and that value is the maximum value or minimum value of all Y coordinate values. Further, a count value of 1 is also given to line segment data in which the starting point and the ending point have the same X-coordinate value and that value is the maximum value or minimum value of all the X-coordinate values. A count value of 2 is assigned to other line segment data.

D4発明が解決しようとする課題 しかしながら、上記従来の方式では、カウント値付与の
基準が、線分ベクトルの始点及び終点の座標値を比較す
ることによって、当該ベクトルを“1”又は“2”と判
定しているが、この方法は周辺のベクトルが座標軸に対
して垂直である場合にのみ容易で、傾斜を有する場合は
比較が困難である。また、全ベクトルの座標値を調べて
最大値と最小値を決定するので、カウント値付与に時間
がかかる。
D4 Problems to be Solved by the Invention However, in the conventional method described above, the standard for assigning count values is to determine whether the vector is "1" or "2" by comparing the coordinate values of the starting point and ending point of the line segment vector. However, this method is easy only when the surrounding vectors are perpendicular to the coordinate axes, and is difficult to compare when they have an inclination. Furthermore, since the coordinate values of all vectors are checked to determine the maximum and minimum values, it takes time to assign count values.

本発明は、このような課題に鑑みて創案されたもので、
カウント値の付与を簡略・明確化し、処理時間を大幅に
短縮する図形データ処理におけるカウント値発生方式を
提供することを目的としている。
The present invention was created in view of these problems, and
The purpose of this invention is to provide a count value generation method in graphic data processing that simplifies and clarifies the assignment of count values and significantly reduces processing time.

E1課題を解決するための手段 本発明における上記課題を解決するための手段とは、周
辺線分を含む所要数の閉図形を作成し、それらの閉図形
を形成する全線分のうち周辺線分のデータにカウント値
1を付与し、その他の線分データにカウント値2を付与
し、各線分データを多角形処理する都度そのカウント値
を1ずつ減算し、カウント値がOになった線分データの
処理を終了する図形データ処理におけるカウント値発生
方式において、閉図形を作成する以前に存在した線分デ
ータにはカウント値2を付与し、その後の処理で発生し
た線分データにカウント値1を付与するカウント値発生
方式によるものとする。
E1 Means for Solving the Problem The means for solving the above problem in the present invention is to create a required number of closed figures including peripheral line segments, and to select the peripheral line segments among all the line segments forming those closed figures. A count value of 1 is assigned to the data of the line segment, a count value of 2 is assigned to the other line segment data, and the count value is subtracted by 1 each time the polygon processing is performed on each line segment data, and the line segment whose count value becomes O is obtained. In the count value generation method in figure data processing that ends data processing, a count value of 2 is given to line segment data that existed before the creation of a closed figure, and a count value of 1 is given to line segment data generated in subsequent processing. It is based on a count value generation method that assigns .

F0作用 本発明は、閉図形の周辺部ベクトルを発生させるタイミ
ングに着目し、カウント値の付与を簡略化したちである
F0 action The present invention focuses on the timing of generating the peripheral vector of a closed figure, and simplifies the assignment of count values.

原図データから異図形を作成する場合、第1図1示す如
く、原図で境界線分であったベクトルはそのまま使用さ
れるのでカウント値“2”を付与し、閉図形はこれに周
辺部分の線分を発生させることにより形成されるので、
その後の処理で発生した線分データにはカウント値“1
”を付与すれば、自動的かつ合理的にカウント値を発生
させることができる。
When creating a different figure from the original drawing data, as shown in Figure 1, vectors that were boundary line segments in the original drawing are used as they are, so a count value of "2" is assigned to them, and for closed figures, the lines of the surrounding parts are added to this. Because it is formed by generating minutes,
The line segment data generated in subsequent processing has a count value of “1”.
”, it is possible to automatically and rationally generate a count value.

G、実施例 以下、図面を参照して、本発明の実施例を詳細に説明す
る。
G. Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は、本発明の一実施例の構成図である。FIG. 2 is a configuration diagram of an embodiment of the present invention.

同図において、1は周辺図形の線分を含む閉図形を所要
数作成し、それらの閉図形を形成する全ての線分を分解
して多角形処理する処理装置、2は処理の都度線分デー
タを格納する記憶装置としてのディスクユニット、3は
システムのメモリ、4は各部で多角形化された区画と未
処理の区画とを識別するモニタ部、5はモニタ部4に表
示された図形を訂正するため情報を人力する操作入力部
である。
In the figure, 1 is a processing device that creates a required number of closed figures including line segments of peripheral figures, decomposes all the line segments forming those closed figures, and processes them into polygons, and 2 is a processing device that processes line segments each time it is processed. A disk unit as a storage device for storing data; 3 a system memory; 4 a monitor unit that identifies polygonized sections and unprocessed sections; This is an operation input section that manually enters information for correction.

処理装置1は、3つの回路部1.1.12.13を備え
ている。第1の回路部11は図形データの上下方向及び
左右方向に最大値又は最小値となるX座標とY座標を含
む形で線分を発生させ、第2の回路部12は曲線を折れ
線化し、発生した全ての線を交点又は接点で分割し、第
3の回路部13は分割された線分データ群をポリゴン化
する。
The processing device 1 includes three circuit sections 1.1.12.13. The first circuit section 11 generates a line segment including the X and Y coordinates that are the maximum or minimum values in the vertical and horizontal directions of the graphic data, and the second circuit section 12 converts the curve into a polygonal line, All generated lines are divided at intersections or contact points, and the third circuit section 13 converts the divided line segment data group into polygons.

また、ディスク2は3つの回路部21,22゜23で成
り、第1の記憶部21は境界図形データを格納され、第
2の記憶部22は分割された線分データ群を格納され、
第3の記憶部23はポリコン化された図形データを格納
される。
Further, the disk 2 is made up of three circuit sections 21, 22 and 23, the first storage section 21 stores boundary figure data, the second storage section 22 stores divided line segment data groups,
The third storage unit 23 stores polygonized graphic data.

上記の装置で、第1の回路部11は、まず処理に先立っ
て存在するベクトルに一律にカウント値゛2”を付与し
たのち、全ての境界図形を閉図形化し、新規に発生した
ベクトルに対してカウント値“1″を付与する。第2の
回路部12は、曲線を折れ線化し、発生した全ての線を
交点又は接点で分割する。このとき分割されたベクトル
の双方に原ベクトルの持っていたカウント値と同じ値を
付与する。第3の回路部13でポリゴン化された各線分
データは、第1図で既に説明したように、X−Y座標を
設定され、始点及び終点の座標値を演算される。
In the above device, the first circuit unit 11 first uniformly assigns a count value of ``2'' to existing vectors prior to processing, then converts all boundary figures into closed figures, and applies them to newly generated vectors. The second circuit unit 12 converts the curve into polygonal lines and divides all the generated lines at intersections or contact points.At this time, both of the divided vectors are given a count value of "1". As already explained in FIG. 1, each line segment data polygonized by the third circuit section 13 is given the same value as the count value. is calculated.

続く各工程は従来と同様で、所望のベクトルを基準にし
て、接続するベクトルを検索する。検索を繰返し、基準
ベクトルに戻ったならば、検出したベクトルの図形デー
タをポリゴンとして第3の記憶部23に記憶する。処理
を行ったときはカウント値を1減じる。0であった場合
は処理対象としない。この処理を全てのベクトルのカウ
ント値がOとなるまでくり返す。ポリゴン化はカウント
値により処理の終了を判断されるので、同一部分を2回
処理したり、未処理の区画を残したりすることがなく、
過不足ないポリゴン化が行われる。
The subsequent steps are the same as in the conventional method, and a vector to be connected is searched for using the desired vector as a reference. When the search is repeated and the reference vector is returned, the graphic data of the detected vector is stored in the third storage unit 23 as a polygon. When processing is completed, the count value is decremented by 1. If it is 0, it is not processed. This process is repeated until the count values of all vectors become O. Since the end of polygonization is determined based on the count value, there is no need to process the same part twice or leave unprocessed sections.
Polygonization is performed with just the right amount.

H0発明の効果 以上述べた遥り、本発明によれば、カウント値の付与を
簡略・lF!確化し、処理時間を大幅に短縮する図形デ
ータ処理のカウント値発生方式を提供することができる
Effects of the H0 Invention As described above, according to the present invention, the assignment of count values is simplified and IF! Accordingly, it is possible to provide a count value generation method for graphic data processing that greatly reduces processing time.

【図面の簡単な説明】 第1図は本発明原理の説明図、第2図は本発明の一実施
例の構成図、第3図及び第4図は従来例の説明図である
。 1・・・処理装置、2・・記憶装置としてのディスク、
3・・・システムメモリ、4・・モニタ部、5・・・操
作入力部。 外1名 従来例の脱賠図
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an explanatory diagram of the principle of the present invention, FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIGS. 3 and 4 are explanatory diagrams of a conventional example. 1... Processing device, 2... Disk as storage device,
3...System memory, 4...Monitor section, 5...Operation input section. Excluding one person from the conventional example

Claims (1)

【特許請求の範囲】[Claims] (1)周辺線分を含む所要数の閉図形を作成し、それら
の閉図形を形成する全線分のうち周辺線分のデータにカ
ウント値1を付与し、その他の線分データにカウント値
2を付与し、各線分データを多角形処理する都度そのカ
ウント値を1ずつ減算し、カウント値が0になった線分
データの処理を終了する図形データ処理におけるカウン
ト値発生方式において、閉図形を作成する以前に存在し
た線分データにカウント値2を付与し、その後の処理で
発生した線分データにカウント値1を付与することを特
徴とする図形データ処理におけるカウント値発生方式。
(1) Create the required number of closed figures including peripheral line segments, give a count value of 1 to the data of the peripheral line segments among all the line segments forming those closed figures, and give a count value of 2 to the data of other line segments. In the count value generation method in graphic data processing, which assigns a value of A count value generation method in graphic data processing characterized by assigning a count value of 2 to line segment data that existed before creation and assigning a count value of 1 to line segment data generated in subsequent processing.
JP2331446A 1990-11-29 1990-11-29 Count value generating system in pattern data processing Pending JPH04199368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2331446A JPH04199368A (en) 1990-11-29 1990-11-29 Count value generating system in pattern data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2331446A JPH04199368A (en) 1990-11-29 1990-11-29 Count value generating system in pattern data processing

Publications (1)

Publication Number Publication Date
JPH04199368A true JPH04199368A (en) 1992-07-20

Family

ID=18243747

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2331446A Pending JPH04199368A (en) 1990-11-29 1990-11-29 Count value generating system in pattern data processing

Country Status (1)

Country Link
JP (1) JPH04199368A (en)

Similar Documents

Publication Publication Date Title
JPH04199368A (en) Count value generating system in pattern data processing
JP2809762B2 (en) Figure shaping device
JPH0769966B2 (en) Image processing method
JPH0342776A (en) Graphic data processing device
JPS59189471A (en) Wiring route searching system
JP3305395B2 (en) Figure division device
JPH01277781A (en) Testing apparatus for integrated circuit
JP2914025B2 (en) LSI automatic placement and routing processing method
JPH0962721A (en) Method for conversion from two-dimensional cad diagram to three-dimensional cad diagram
JPS5922160A (en) Graph processing method
JP4539203B2 (en) Image processing method and image processing apparatus
JP3779343B2 (en) Processing apparatus for contour point sequences related to each other
JPH03278274A (en) Method for determining wiring order or wiring board and wiring method
JPH07129791A (en) Method and device for automatically forming plane
CN114119825A (en) Solution method for multi-engine scene visualization surface effect offset jitter and related equipment
JP2943358B2 (en) Wiring design equipment
JPH0814855B2 (en) Protein display processing method
JPH0594207A (en) Generation system for cutter path for rough cutting
JPS6312077A (en) Grid description system
JPS60117381A (en) Method and device for extracting contour
JPH0740278B2 (en) Logic circuit drawing generator
JPH05189553A (en) Image processing system
JPH10178634A (en) Image correlation arithmetic unit
JPH03230274A (en) Graphic data processing system
JPS6188379A (en) Picture processing device