JPH0561969A - Coordinate data expressing method - Google Patents

Coordinate data expressing method

Info

Publication number
JPH0561969A
JPH0561969A JP3172999A JP17299991A JPH0561969A JP H0561969 A JPH0561969 A JP H0561969A JP 3172999 A JP3172999 A JP 3172999A JP 17299991 A JP17299991 A JP 17299991A JP H0561969 A JPH0561969 A JP H0561969A
Authority
JP
Japan
Prior art keywords
coordinate
line segment
axis
data
parallel
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
JP3172999A
Other languages
Japanese (ja)
Inventor
Shoichi Saito
正一 齊藤
Yoshinori Murakami
良則 村上
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.)
NEC Corp
NEC Miyagi Ltd
Original Assignee
NEC Corp
NEC Miyagi 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 NEC Corp, NEC Miyagi Ltd filed Critical NEC Corp
Priority to JP3172999A priority Critical patent/JPH0561969A/en
Publication of JPH0561969A publication Critical patent/JPH0561969A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/30Hydrogen technology
    • Y02E60/50Fuel cells

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To compress the amount of data with numeric value storing continuous line segments by expressing the end X-coordinate of the line segment when a second line segment is in parallel with the X-axis, and expressing the end Y-coordinate when it is in parallel with the Y-axis. CONSTITUTION:When both two continuous line segments are in parallel with the X-axis or the Y-axis, the two line segments continuing with coordinate data of five numeric values can be expressed by the end X-coordinate of the line segment when a second line segment is in parallel with the X-axis and the end Y-coordinate of the line segment when it is in parallel with the Y-axis. In such a manner, the coordinate data of a first line segment is outputted as start coordinate and end coordinate to a memory device in sequence of X1-X2. The start coordinate of the second line segment shows the end coordinate of the first line segment, and second coordinate X2=X3, therefore, it can be Judged that the line segment is in parallel with the Y-axis, and the end Y-coordinate Y3 is added on the first line segment data, and the two line segments are expressed in the coordinate data of five numeric values X1-Y3. Thereby, the amount of data can be reduced from 2(n+1) on a conventional side to (n+3).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は座標データ表現方法に関
し、特に連続する線分座標データを計算機により処理す
る座標データ表現方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coordinate data representation method, and more particularly to a coordinate data representation method for processing continuous line segment coordinate data by a computer.

【0002】[0002]

【従来の技術】図3は従来の座標データ表現方法の一例
を示す図であり、図3(a)は座標軸に平行な連続線分
を示し、図3(b)は図3(a)の線分データを示す。
X座標とY座標から構成されるn個の線分が連続してい
る場合にその線分を表現する座標データはn+1個必要
となり、各座標はX座標とY座標とから構成されている
ため、2(n+1)個の座標データが必要となる。
2. Description of the Related Art FIG. 3 is a diagram showing an example of a conventional coordinate data expression method, FIG. 3 (a) shows a continuous line segment parallel to a coordinate axis, and FIG. 3 (b) shows that of FIG. The line segment data is shown.
When n line segments composed of the X coordinate and the Y coordinate are continuous, n + 1 coordinate data representing the line segment are required, and each coordinate is composed of the X coordinate and the Y coordinate. 2 (n + 1) pieces of coordinate data are required.

【0003】[0003]

【発明が解決しようとする課題】この従来の座標データ
表現方法では、n個の連続した線分データを記憶する場
合に2(n+1)個の座標データを必要とするので、大
量の連続した線分の座標データを記憶するのに多くの記
憶容量を必要とするという欠点があった。
In this conventional coordinate data representation method, since 2 (n + 1) coordinate data are required to store n continuous line segment data, a large number of continuous line data are required. There is a drawback in that a large storage capacity is required to store minute coordinate data.

【0004】[0004]

【課題を解決するための手段】本発明の座標データ表現
方法は、2次元ユークリッド座標系上の連続する第1と
第2の線分がX軸またはY軸に平行であるとき、前記第
1の線分の座標データとして始点X座標とY座標および
終点X座標とY座標とを表現し、前記第2の線分が前記
X軸に平行な場合には線分の終点X座標を表現し、前記
第2の線分が前記Y軸に平行な場合には線分の終点Y座
標を表現する。
According to the coordinate data representation method of the present invention, when the first and second continuous line segments on the two-dimensional Euclidean coordinate system are parallel to the X axis or the Y axis, the first As the coordinate data of the line segment, the starting point X coordinate and the Y coordinate and the end point X coordinate and the Y coordinate are expressed, and when the second line segment is parallel to the X axis, the ending point X coordinate of the line segment is expressed. , If the second line segment is parallel to the Y axis, it represents the end point Y coordinate of the line segment.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0006】図1は本発明の一実施例を説明するための
図、図2は本実施例を説明するための流れ図である。
FIG. 1 is a diagram for explaining one embodiment of the present invention, and FIG. 2 is a flow chart for explaining this embodiment.

【0007】本実施例は、連続する2線分がいずれもX
軸またはY軸に平行であるとき、1つ目の線分の座標デ
ータの始点X座標とY座標および終点X座標とY座標と
を記憶し、1線分データを表現する。2つ目の線分がX
軸に平行である場合には、線分の終点X座標により、Y
軸に平行である場合には線分の終点Y座標により、5数
値の座標データで連続する2線分を表現する。
In this embodiment, continuous two line segments are all X
When parallel to the axis or the Y-axis, the starting point X coordinate and Y coordinate and the ending point X coordinate and Y coordinate of the coordinate data of the first line segment are stored to represent one line segment data. The second line segment is X
If it is parallel to the axis, the end point X coordinate of the line
When parallel to the axis, the end point Y coordinate of the line segment expresses two continuous line segments with coordinate data of five numerical values.

【0008】2つ目の線分の座標データの判断は、線分
の始点X座標と終点X座標が同じであればY軸に平行と
し、線分の始点Y座標と終点Y座標が同じであればX軸
に平行とする。
The coordinate data of the second line segment is judged to be parallel to the Y axis if the X coordinate of the start point and the X coordinate of the end point of the line segment are the same, and the Y coordinate of the start point and the Y coordinate of the end point are the same. If there is, make it parallel to the X axis.

【0009】図1において、(a)は処理の対象となる
連続線分を示し、(b)は(a)における座標データを
示している。
In FIG. 1, (a) shows a continuous line segment to be processed, and (b) shows the coordinate data in (a).

【0010】図2において、ステップ1では、処理の対
象となる線分データが1つ目の線分であるか否かを判断
する。ステップ2では1つ目の線分ならば線分の始点座
標と終点座標とを記憶装置へ出力する。ステップ3で
は、連続する2つ目の線分の始点X座標と終点X座標ま
たは始点Y座標と終点Y座標とが同じかどうかでX軸も
しくはY軸の座標軸に平行か否かを判断する。ステップ
3では、線分がX軸に平行であるならば、線分の終点の
X座標を記憶装置へ出力する。ステップ4では線分がY
軸に平行であるならば、線分の終点のY座標を記憶装置
へ出力する。ステップ5では連続する次の線分があれば
ステップ6により処理を繰り返し、線分がなければ処理
を終了する。
In FIG. 2, in step 1, it is determined whether the line segment data to be processed is the first line segment. In step 2, if it is the first line segment, the start point coordinates and end point coordinates of the line segment are output to the storage device. In step 3, it is determined whether the second continuous line segment is parallel to the X-axis or Y-axis coordinate axis based on whether the start point X coordinate and the end point X coordinate or the start point Y coordinate and the end point Y coordinate are the same. In step 3, if the line segment is parallel to the X axis, the X coordinate of the end point of the line segment is output to the storage device. In step 4, the line segment is Y
If it is parallel to the axis, the Y coordinate of the end point of the line segment is output to the storage device. In step 5, if there is a next continuous line segment, the process is repeated in step 6, and if there is no line segment, the process ends.

【0011】このようにすると、1つ目の線分の座標デ
ータは、始点座標と終点座標をX1,Y1,X2,Y2
の順序で記憶装置へ出力する。2つ目の線分の始点は、
1つ目の線分の終点の座標であり、2つ目のX2=X3
であるため、線分はY軸に平行と判断し、終点Y座標
(Y3)を1つ目の線分データに追加することにより、
2線分を(X1,Y1,X2,Y2,Y3)の5数値の
座標データで表現することにより、従来例の2(n+
1)をn+3にデータ数を減すことができる。
In this way, in the coordinate data of the first line segment, the start point coordinates and end point coordinates are X1, Y1, X2, Y2.
To the storage device in this order. The starting point of the second line segment is
The coordinates of the end point of the first line segment, and the second X2 = X3
Therefore, the line segment is determined to be parallel to the Y axis, and the end point Y coordinate (Y3) is added to the first line segment data,
By expressing the two line segments by the coordinate data of five numerical values (X1, Y1, X2, Y2, Y3), 2 (n +) of the conventional example is obtained.
The number of data can be reduced from 1) to n + 3.

【0012】[0012]

【発明の効果】以上説明したように本発明は、X軸また
はY軸に平行な連続するn線分を記憶装置へ記憶する数
値のデータ数が圧縮されるという効果がある。
As described above, the present invention has an effect that the number of numerical data stored in the storage device for consecutive n line segments parallel to the X axis or the Y axis is compressed.

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

【図1】本発明の一実施例を説明するための図である。FIG. 1 is a diagram for explaining an embodiment of the present invention.

【図2】本実施例を説明するための流れ図である。FIG. 2 is a flowchart for explaining the present embodiment.

【図3】従来の座標データ表現方法の一例を示す図であ
る。
FIG. 3 is a diagram showing an example of a conventional coordinate data expression method.

【符号の説明】[Explanation of symbols]

X1〜X8 X軸のデータ Y1〜Y8 Y軸のデータ X1-X8 X-axis data Y1-Y8 Y-axis data

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 2次元ユークリッド座標系上の連続する
第1と第2の線分がX軸またはY軸に平行であるとき、
前記第1の線分の座標データとして始点X座標とY座標
および終点X座標とY座標とを表現し、前記第2の線分
が前記X軸に平行な場合には線分の終点X座標を表現
し、前記第2の線分が前記Y軸に平行な場合には線分の
終点Y座標を表現することを特徴とする座標データ表現
方法。
1. When the first and second continuous line segments on the two-dimensional Euclidean coordinate system are parallel to the X axis or the Y axis,
A start point X coordinate and a Y coordinate and an end point X coordinate and a Y coordinate are expressed as the coordinate data of the first line segment, and when the second line segment is parallel to the X axis, an end point X coordinate of the line segment. Is expressed, and when the second line segment is parallel to the Y-axis, the end point Y coordinate of the line segment is expressed.
JP3172999A 1991-07-15 1991-07-15 Coordinate data expressing method Pending JPH0561969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3172999A JPH0561969A (en) 1991-07-15 1991-07-15 Coordinate data expressing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3172999A JPH0561969A (en) 1991-07-15 1991-07-15 Coordinate data expressing method

Publications (1)

Publication Number Publication Date
JPH0561969A true JPH0561969A (en) 1993-03-12

Family

ID=15952313

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3172999A Pending JPH0561969A (en) 1991-07-15 1991-07-15 Coordinate data expressing method

Country Status (1)

Country Link
JP (1) JPH0561969A (en)

Similar Documents

Publication Publication Date Title
JPH0561969A (en) Coordinate data expressing method
JP3045359B2 (en) Image processing device
US7154513B2 (en) Method and system for displaying images
JP2645597B2 (en) How to edit drawing order
JP2795047B2 (en) Analysis input data creation processing device
JP2650271B2 (en) How to store contour information
JPH1091319A (en) Method and device for processing stroke information
JP2507399B2 (en) Database equipment
JPH06204884A (en) Data restoration circuit
CN115936101A (en) Sparse data compression device and method for neural network tensor processor
JPS6378265A (en) Process controlling system
JP2652973B2 (en) Image processing device
JP2508190B2 (en) Drawing method
JPH02247758A (en) Control system for terminal information
JPH02168359A (en) Outline font developer
JPH07184063A (en) Binary image compression system
JPH05176188A (en) Compressed picture data expansion system
JPH02110775A (en) Graphic character data preserving system
JPH0281103A (en) Display method for nc working program
JPS61239775A (en) Image enlarging device
JPH0998342A (en) Special effect digital device
JPH02294750A (en) Data storage system
JPH0497493A (en) Marker data storing system
JPS63151996A (en) Rule data addition output system
JPH02123426A (en) Microprocessor

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20051205

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051213

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070116