JPS6282473A - Contour line drawing system for two-dimensional intensity data - Google Patents
Contour line drawing system for two-dimensional intensity dataInfo
- Publication number
- JPS6282473A JPS6282473A JP60223054A JP22305485A JPS6282473A JP S6282473 A JPS6282473 A JP S6282473A JP 60223054 A JP60223054 A JP 60223054A JP 22305485 A JP22305485 A JP 22305485A JP S6282473 A JPS6282473 A JP S6282473A
- Authority
- JP
- Japan
- Prior art keywords
- data
- contour line
- contour
- rectangle
- dimensional intensity
- 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
Links
Landscapes
- Image Processing (AREA)
- Digital Computer Display Output (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、マトリクス状の2次元強度データを矩形上の
4点のデータの組からなるセル単位で順次読み出して等
高線を描画するのに好適な2次元強度データの等高線描
画方式に関するものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention is suitable for drawing contour lines by sequentially reading matrix-shaped two-dimensional intensity data in units of cells each consisting of a data set of four points on a rectangle. This invention relates to a contour line drawing method for two-dimensional intensity data.
分析装置において得られるマトリクス状の2次元強度デ
ータには、2次元NMR(核磁気共鳴)データや2次元
走査をして得られる温度分布データ、その他様々なデー
タがある。このようなデータを分析するに際して、等高
線図で表現することがその分析の内容によってはきわめ
て有効な場合がある。このような場合、一般には分析装
置によって得られた2次元データを一旦記憶装置に格納
した後、これを順次読み出して等高線を描画している。The matrix-shaped two-dimensional intensity data obtained by the analyzer includes two-dimensional NMR (nuclear magnetic resonance) data, temperature distribution data obtained by two-dimensional scanning, and various other data. When analyzing such data, expressing it as a contour map may be extremely effective depending on the content of the analysis. In such cases, generally, two-dimensional data obtained by the analyzer is once stored in a storage device and then sequentially read out to draw contour lines.
この等高線は、例えば等高線の高さと記憶装置から読み
出した個々のデータとを比較し、その高さに最も近い値
のデータを選択してそれらのデータ位置間を結ぶことに
よって等高線を描画するなどの手法が採られる。This contour line can be drawn by, for example, comparing the height of the contour line with individual data read from the storage device, selecting the data with the value closest to the height, and connecting the data positions. method is adopted.
しかしながら、上述のような従来の手法では、実際には
等高線がデータとデータとの中間の位置を通る場合であ
ってもいずれかのデータ位置で描画されるため、等高線
に歪みが生じ緻密さに欠けることになる。このことは、
結果的に分析精度に悪影響を与えることになる。また、
個々のデータを順次読み出して等高線の高さとの比較を
行う比較処理、その高さに最も近い値のデータを判別し
選択する処理、選択したデータの位置間を線分で結ぶ処
理など多種の処理を行うことがら、処理も難しく複雑に
なるため、データ処理装置としての全体の負荷も多くな
り、処理速度の向上を困難にしている。However, in the conventional method described above, even if the contour line actually passes through a position between two data points, it is drawn at one of the data positions, which distorts the contour line and reduces its precision. It will be missing. This means that
As a result, analysis accuracy will be adversely affected. Also,
Various types of processing, such as comparison processing that sequentially reads individual data and compares it with the height of a contour line, processing that determines and selects the data with the value closest to that height, processing that connects the positions of selected data with line segments, etc. As a result, the processing becomes difficult and complicated, which increases the overall load on the data processing device, making it difficult to improve the processing speed.
本発明は、上記の問題点を解決するものであって、簡単
な処理により、より正確に等高線を描画でき処理速度の
向」:を図ることができる2次元強度データの等高線描
画方式を提供することを目的とするものである。The present invention solves the above problems, and provides a contour line drawing method for two-dimensional intensity data that can draw contour lines more accurately and improve processing speed through simple processing. The purpose is to
そのために本発明の2次元強度データの等高線描画方式
は、矩形」二の4点のデータの組からなるセルを順次読
み出して等高線の高さと各データとを比較して等高線が
横断する矩形上の辺上の位置を計算し、該旧算した位置
間を矩形内で結び等高線を描画することを特徴とするも
のである。To this end, the contour line drawing method for two-dimensional intensity data of the present invention sequentially reads out cells each consisting of a set of data at four points in a rectangular shape, compares the height of the contour line with each piece of data, and then This method is characterized by calculating positions on the sides and drawing contour lines by connecting the calculated positions within a rectangle.
本発明の2次元強度データの等高線描画方式では、矩形
上のデータ群からなるセルを順次読み出し、等高線の高
さと各データとを比較するので、各データが等高線の高
さを越えるか否かによって当該矩形上を等高線が横断す
るか否か、さらに横断する場合にはその辺がどれかを容
易に認、識できると共に、その辺上の横断位置を計算す
ることができる。従って、これらの計算に基づく横断位
置間に線分を発生ずることによってデータの位置だけで
なく任意の位置に等高線を描画することができる。In the contour line drawing method of two-dimensional intensity data of the present invention, cells consisting of a data group on a rectangle are sequentially read out and the height of the contour line is compared with each data, so whether or not each data exceeds the height of the contour line is It is possible to easily recognize and identify whether or not the contour line crosses the rectangle, and if so, which side it is on, and also calculate the crossing position on that side. Therefore, by generating line segments between the transverse positions based on these calculations, contour lines can be drawn not only at data positions but also at arbitrary positions.
以下、実施例を図面を参照しつつ説明する。 Examples will be described below with reference to the drawings.
第1図は本発明に係る2次元強度データの等高線描画方
式の1実施例を説明するための図、第2図は2次元強度
データの読み出し処理を説明するための図、第3図はセ
ルの判定パターンを説明するための図、第4図はセル内
の等高線の描画パターンを説明するための図である。FIG. 1 is a diagram for explaining one embodiment of the contour line drawing method for two-dimensional intensity data according to the present invention, FIG. 2 is a diagram for explaining the reading process of two-dimensional intensity data, and FIG. 3 is a diagram for explaining a cell FIG. 4 is a diagram for explaining the drawing pattern of contour lines in a cell.
第1図において、1は分析装置、2はデータメモリ、3
は表示線分座標演算器、4は線分発生器、5はグラフィ
ックメモリ、6はグラフインクディスプレイを示す。分
析装置1は、核磁気共鳴装置などの2次元強度データを
得る装置であり、この2次元強度データを格納するのが
データメモリ2である。表示線分座標演算器3は、4点
の矩形上のデータの組からなるセルをデータメモリ2か
ら順次読み出してそれぞれのデータを等高線の高さと比
較し、等高線が横断する矩形上の辺を認識してその辺上
の位置を計算するものであり、線分発生器4は、この計
算した位置間に線分を発生させるものである。In FIG. 1, 1 is an analyzer, 2 is a data memory, and 3 is a data memory.
4 is a line segment generator, 5 is a graphic memory, and 6 is a graph ink display. The analyzer 1 is a device such as a nuclear magnetic resonance apparatus that obtains two-dimensional intensity data, and the data memory 2 stores this two-dimensional intensity data. The display line segment coordinate calculator 3 sequentially reads cells consisting of a set of rectangular data of four points from the data memory 2, compares each data with the height of the contour line, and recognizes the side of the rectangle that the contour line crosses. The line segment generator 4 generates line segments between the calculated positions.
例えば第2図(a)に示すように2次元座標(x。For example, as shown in FIG. 2(a), two-dimensional coordinates (x).
、yo)、(xIl yo)、・・・・・・、(xn、
y。, yo), (xIl yo), ......, (xn,
y.
)、(xo、y+)、(X+ + ’l+ ) 、・・
・・・・・・・に対応してデータメモリ2に格納された
2次元のデータD。。、D、、、=・==・・、D、l
o、、Do5、D、1、・・・・・・、Dfi4、・・
・・・・・・・、D。、、、Dl、、、・・・・・・D
わがある場合、表示線分座標演算器3は、4点のデータ
DII、D1□、D21.D2゜の組からなるセル毎に
データをデータメモリ2から読み出し、各データと等高
線の高さとを比較する。そして、その比較結果により全
てのデータが等高線の高さを越えている場合、或いはそ
の逆の場合にはそのセル内に等高線は描画されないが、
4点のデータの中に等高線の高さを越えているデータと
越えていないデータがある場合にはそのセル内に等高線
が描画されることになる。そこで、表示線分座標演算器
3は、等高線が描画される場合にはその等高線が横断す
る辺上の位置を求める。すなわち、等高線が横断する位
置は、等高線の高さより低いデータと高いデータを結ぶ
矩形の辺上にあり、第2図(b)に示すようにデータD
2□が等高線の高さを越え(H)、他のデータは等高線
の高さより低い(L)場合には、第2図(alの対応す
るセル部分に示すようにこのデータの位置を含む辺で等
高線が横断することになる。), (xo, y+), (X+ + 'l+),...
Two-dimensional data D stored in the data memory 2 corresponding to . . ,D,,,=・==・・D,l
o,,Do5,D,1,...,Dfi4,...
・・・・・・・・・D. ,,,Dl,,,...D
If there is a line segment coordinate calculator 3, the display line segment coordinate calculator 3 calculates data DII, D1□, D21 . Data is read from the data memory 2 for each cell consisting of a set of D2 degrees, and each data is compared with the height of the contour line. If the comparison result shows that all the data exceeds the height of the contour line, or vice versa, no contour line will be drawn in that cell.
If there are data that exceed the height of the contour line and data that does not exceed the height of the contour line among the four data points, the contour line will be drawn within that cell. Therefore, when a contour line is drawn, the display line segment coordinate calculator 3 determines the position on the side crossed by the contour line. In other words, the position where the contour line crosses is on the side of the rectangle connecting the data lower and higher than the height of the contour line, and as shown in Figure 2(b), data D
If 2□ exceeds the height of the contour line (H) and other data is lower than the height of the contour line (L), the edge that includes the position of this data as shown in the corresponding cell part of Figure 2 (a. The contour lines will cross.
このように第2図(alに示す全てのデータについてセ
ル毎に順次読み出して同様の処理をし、グラフインクメ
モリ5に書き込んでゆくとグラフィックディスプレイ6
に等高線り、 、h、を出力表示することができる。In this way, all the data shown in FIG.
It is possible to output and display the contour lines, ,h,.
ところで、セルの各データと等高線の高さとを比較して
得られるパターンは、第3図に示すように16通りであ
る。そのうち全てのデータが等高線の高さより低いパタ
ーン(0)、或いは高いパターン(F)が先に述べたよ
うに等高線の描画されない場合である。そして残りの1
4のパターンについては、第3図に示すようにそれぞれ
の等高線描画パターンを有することになる。従って、表
示線分座標演算器3及び線分発生器4では、このような
バクーン認識を行うことによって、座標演算を行う辺の
判定や線分発生の認識処理を簡単にすることができる。By the way, as shown in FIG. 3, there are 16 patterns obtained by comparing each cell data and the height of the contour line. Among them, a pattern (0) in which all data are lower than the height of the contour line, or a pattern (F) in which all the data is higher than the height of the contour line is a case where no contour line is drawn as described above. and the remaining 1
As for the pattern No. 4, each has its own contour line drawing pattern as shown in FIG. Therefore, by performing such Bakun recognition in the display line segment coordinate calculator 3 and the line segment generator 4, it is possible to simplify the determination of the side on which the coordinate calculation is to be performed and the recognition process of line segment generation.
例えば、第4図に示すデータDI2とD22のそれぞれ
の位置を結ぶ辺上での等高線が横断する位置P2の座標
(x+□、y2)は、
D22 D+2
により計算される。このようにしてデータDI□とD2
□のそれぞれの位置を結ぶ辺上の横断位置P2(X12
1”lz)及びデータDZIとD22とを結ぶ辺上の位
置P+ (xz、)’+z)が求められると、線分発
生器4は、この位置Pt と位置P2との間に線分を発
生させる。この場合、等高線は一般に曲線となるため、
第4図に示すように単にセルの辺上の等高線横断位置P
、とP2との間を高線ρ。For example, the coordinates (x+□, y2) of the position P2 crossed by the contour line on the side connecting the respective positions of the data DI2 and D22 shown in FIG. 4 are calculated by D22 D+2. In this way, data DI□ and D2
Transverse position P2 (X12
1"lz) and the position P+ (xz,)'+z) on the side connecting data DZI and D22, the line segment generator 4 generates a line segment between this position Pt and position P2. In this case, the contour lines are generally curved, so
As shown in Figure 4, the contour line crossing position P on the side of the cell is simply
, and P2 is a high line ρ.
で結ぶより曲線12やρ3で結ぶ方がより近似度の高い
等高線が得られることになる。この場合、一般に高い方
の点から遠い方、例えば第4図に示すセルの場合にはデ
ータD2□の位置から遠い方すなわちデータDI+に近
い方を通る線分j!2やρ3となる。高等線の曲率は、
第2図(a)に示す等高線り、よりh2のように高い程
大きい。従って、第4図に示すような折れ線による線分
7!2の描画であっても、円弧による線分β3の描画で
あっても、その膨らみ具合は等高線の高さによって調整
すると、より近似度の高い等高線を得ることができる。A contour line with a higher degree of approximation can be obtained by connecting by curve 12 or ρ3 than by connecting by . In this case, the line segment j! generally passes through the point far from the higher point, for example, in the case of the cell shown in FIG. 4, the line segment j! passes through the point far from the position of the data D2□, that is, the point close to the data DI+. 2 or ρ3. The curvature of the higher line is
The contour lines shown in FIG. 2(a) are higher as h2 is higher. Therefore, whether the line segment 7!2 is drawn using a polygonal line as shown in Figure 4 or the line segment β3 is drawn using a circular arc, adjusting the degree of bulge by the height of the contour line will improve the approximation. It is possible to obtain high contour lines.
以上の説明から明らかなように、本発明によれば、矩形
上の4点のデータの組からなるセル毎にそのセル内に等
高線を描画して合成するので、等高線描画のための各種
処理をパターン化することができ、データの位置以外の
任意の位置を通る等高線を描画できる。また、セル内に
等高線を折れ線や円弧(楕円弧)などの曲線を使って描
画することによって、より近似度の高い等高線を描画す
ることができる。さらには、セル単位で強度データ群を
読み出して等高線横断点を求め線分を発生させる処理を
順次行えばよいので、処理が単純化でき処理速度の向上
を図ることができる。As is clear from the above description, according to the present invention, contour lines are drawn and synthesized in each cell consisting of a set of data at four points on a rectangle, so various processes for drawing contour lines are performed. It can be patterned, and contour lines passing through any position other than the data position can be drawn. Furthermore, by drawing contour lines within cells using curved lines such as polygonal lines or circular arcs (elliptical arcs), contour lines with a higher degree of approximation can be drawn. Furthermore, since the process of reading out the intensity data group in units of cells, finding contour crossing points, and generating line segments can be performed sequentially, the process can be simplified and the processing speed can be improved.
第1図は本発明に係る2次元強度データの等高線描画方
式の1実施例を説明するための図、第2図は2次元強度
データの読み出し処理を説明するための図、第3図はセ
ルの判定パターンを説明するための図、第4図はセル内
の等高線の描画パターンを説明するための図である。
1・・・分析装置、2・・・データメモリ、3・・・表
示線分座標演算器、4・・・線分発生器、5・・・グラ
フィックメモリ、6・・・グラフィックディスプレイ。
出 願 人 日本電子株式会社
代理人弁理士 阿 部 龍 吉
二:=千Fイ1ヨヨし二↓壬 (b)第3
図
第4図FIG. 1 is a diagram for explaining one embodiment of the contour line drawing method for two-dimensional intensity data according to the present invention, FIG. 2 is a diagram for explaining the reading process of two-dimensional intensity data, and FIG. 3 is a diagram for explaining a cell FIG. 4 is a diagram for explaining the drawing pattern of contour lines in a cell. DESCRIPTION OF SYMBOLS 1... Analyzer, 2... Data memory, 3... Display line segment coordinate calculator, 4... Line segment generator, 5... Graphic memory, 6... Graphic display. Applicant JEOL Co., Ltd. Representative Patent Attorney Yoshiji Ryu Abe: = 1,000 F I 1 Yoyo Shi 2 ↓ Jin (b) No. 3
Figure 4
Claims (3)
て等高線を描画する2次元強度データの等高線描画方式
であって、矩形上の4点のデータの組からなるセルを順
次読み出して等高線の高さと各データとを比較して等高
線が横断する矩形上の辺上の位置を計算し、該計算した
位置間を矩形内で結び等高線を描画することを特徴とす
る2次元強度データの等高線描画方式。(1) A contour line drawing method for two-dimensional intensity data that sequentially reads out matrix-shaped two-dimensional intensity data and draws contour lines, in which cells consisting of data sets of four points on a rectangle are sequentially read out and the height of the contour line is A contour line drawing method for two-dimensional intensity data, characterized in that the positions on the sides of the rectangle crossed by the contour lines are calculated by comparing each data, and the calculated positions are connected within the rectangle and a contour line is drawn.
点間を矩形内で結ぶことを特徴とする特許請求の範囲第
1項記載の2次元強度データの等高線描画方式。(2) The contour line drawing method for two-dimensional intensity data according to claim 1, characterized in that the calculated points are connected within a rectangle according to a curvature set according to the height.
形内の等高線の描画パターン化を行うことを特徴とする
特許請求の範囲第1項記載の2次元強度データの等高線
描画方式。(3) A contour line drawing method for two-dimensional intensity data according to claim 1, characterized in that the drawing pattern of contour lines within a rectangle is created based on the position of the data exceeding the height of the contour line.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60223054A JPS6282473A (en) | 1985-10-07 | 1985-10-07 | Contour line drawing system for two-dimensional intensity data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60223054A JPS6282473A (en) | 1985-10-07 | 1985-10-07 | Contour line drawing system for two-dimensional intensity data |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6282473A true JPS6282473A (en) | 1987-04-15 |
Family
ID=16792111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60223054A Pending JPS6282473A (en) | 1985-10-07 | 1985-10-07 | Contour line drawing system for two-dimensional intensity data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6282473A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009151323A (en) * | 2002-04-22 | 2009-07-09 | Dgs Computer:Kk | Digital topography making method and making device |
US11732817B2 (en) | 2018-09-10 | 2023-08-22 | Eagle Industry Co., Ltd. | Electromagnetic valve unit |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS53121425A (en) * | 1977-03-31 | 1978-10-23 | Nippon Telegr & Teleph Corp <Ntt> | Transmission system for curve data |
JPS5837682A (en) * | 1981-08-29 | 1983-03-04 | 株式会社島津製作所 | Contour plotter |
JPS58131504A (en) * | 1982-02-01 | 1983-08-05 | Jeol Ltd | Displaying method of contour line |
JPS5949656A (en) * | 1982-09-14 | 1984-03-22 | Fujitsu Ltd | Linear and arcuate approximation system of linear pattern |
-
1985
- 1985-10-07 JP JP60223054A patent/JPS6282473A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS53121425A (en) * | 1977-03-31 | 1978-10-23 | Nippon Telegr & Teleph Corp <Ntt> | Transmission system for curve data |
JPS5837682A (en) * | 1981-08-29 | 1983-03-04 | 株式会社島津製作所 | Contour plotter |
JPS58131504A (en) * | 1982-02-01 | 1983-08-05 | Jeol Ltd | Displaying method of contour line |
JPS5949656A (en) * | 1982-09-14 | 1984-03-22 | Fujitsu Ltd | Linear and arcuate approximation system of linear pattern |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009151323A (en) * | 2002-04-22 | 2009-07-09 | Dgs Computer:Kk | Digital topography making method and making device |
US11732817B2 (en) | 2018-09-10 | 2023-08-22 | Eagle Industry Co., Ltd. | Electromagnetic valve unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH01196675A (en) | Pattern data preparing system | |
CN109948135A (en) | A kind of method and apparatus based on table features normalized image | |
JPS6337478A (en) | Designing apparatus utilizing computer | |
JPS6282473A (en) | Contour line drawing system for two-dimensional intensity data | |
CN107741881A (en) | Zernike square quick calculation methods based on GPU | |
US6201553B1 (en) | Character generating method and apparatus | |
KR20100052850A (en) | A rasterizer for 2d vector graphics and method | |
JPH03119387A (en) | Method and apparatus for forming contour of digital type surface | |
EP0617375A2 (en) | Graphics apparatus and method | |
JPH05269956A (en) | Electronic composition device for composing along optional line | |
US5396586A (en) | Apparatus and method for filling regions bounded by conic curves | |
JPS6288065A (en) | Outputting method for contour of two-dimensional intensified data | |
JP3436008B2 (en) | Drawing processing device | |
JPH0351894A (en) | Information processor equipped with character pattern generating function using vector font | |
JPH0312787A (en) | Inspecting system for overlapping of polygonal patterns | |
JP2740506B2 (en) | Image recognition method | |
JPH0266681A (en) | Drawing processor | |
Herman et al. | New methods for improving the GKS fill area output primitive | |
JP3792171B2 (en) | Character pattern generator | |
JPS6288066A (en) | Inclination display system for two-dimensional intensified data | |
KR900002811B1 (en) | Method for compressing character or pictorial image data | |
CN87102388B (en) | Chinese characters converting method in the computing machine | |
JPH07122906B2 (en) | Graphic display | |
JPH03127097A (en) | Drawing method for vector font | |
JPH07160242A (en) | Character generator |