JPS62276669A - Interpolation device - Google Patents

Interpolation device

Info

Publication number
JPS62276669A
JPS62276669A JP61118404A JP11840486A JPS62276669A JP S62276669 A JPS62276669 A JP S62276669A JP 61118404 A JP61118404 A JP 61118404A JP 11840486 A JP11840486 A JP 11840486A JP S62276669 A JPS62276669 A JP S62276669A
Authority
JP
Japan
Prior art keywords
point
interpolation
vertex
segment connecting
points
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
JP61118404A
Other languages
Japanese (ja)
Inventor
Mikito Takei
竹井 幹人
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.)
NIPPON DENKI OFF SYST KK
Original Assignee
NIPPON DENKI OFF SYST KK
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 NIPPON DENKI OFF SYST KK filed Critical NIPPON DENKI OFF SYST KK
Priority to JP61118404A priority Critical patent/JPS62276669A/en
Publication of JPS62276669A publication Critical patent/JPS62276669A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Complex Calculations (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To realize smooth interpolation by simple and quick processing by successively calculating the middle point of a segment connecting between vertexes by 1st-3rd arithmetic means. CONSTITUTION:The coordinate data of 1st-3rd points successively set up on a continuous curve inputted from an input means 1 and the coordinate data of the 1st vertex to be the symmetrical point of the middle point of the segment connecting the 1st and 3rd points about the 2nd point are stored in a 1st storage means 2. The 1st arithmetic means 3 calculates a 11-th vertex to be the middle point of the segment connecting the 1st point and the 1st vertex and the 2nd arithmetic means 4 calculates a 12-th middle point functioning as the middle point of the segment connecting the 1st point and the 2nd point. The 3rd arithmetic means 5 calculates the middle point of the segment connecting the 11-th vertex and the 12-th middle point. The middle point is the interpolation point between the 1st and 2nd points. The coordinate data of the interpolation point are stored in a 2nd storage means 6 and outputted by an output means 7.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔産業上の利用分野〕 本発明は補間に関し、特にCAD、CAM、画像工学等
において与えられた離れた点を結ぶ近似曲線を得るため
の補間装置に関する。
Detailed Description of the Invention 3. Detailed Description of the Invention [Field of Industrial Application] The present invention relates to interpolation, and particularly to interpolation for obtaining an approximate curve connecting distant points given in CAD, CAM, image engineering, etc. Relating to an interpolation device.

〔従来の技術〕[Conventional technology]

補間法には座標データ間を直線的に補間する線形補間法
、全区間を単一の多項式で表わして補間するラグランシ
ュ補間法、データ点間を別々の多項式で表わし、補間自
然スプライン補間法等がある。
Interpolation methods include linear interpolation, which linearly interpolates between coordinate data, Lagranche interpolation, which interpolates by representing the entire interval with a single polynomial, natural spline interpolation, which represents interpolation between data points with separate polynomials, etc. There is.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した各補間法のうち、線形補間はデータ点において
不連続が目立つ欠点があり、ラグランシュ補間法は多く
の乗除算を含むため演算手段が複雑となり、処理時間も
長く、又、大きな振動を生じるという欠点があり、自然
スプライン補間法は、切断べき関数で表わされるため、
その係数を得る連立−次方程式の条件が悪く、演算手段
が煩雑で時間がかかるという欠点がある。
Among the above-mentioned interpolation methods, linear interpolation has the disadvantage of conspicuous discontinuities at data points, while Lagranche interpolation involves many multiplications and divisions, which complicates the calculation means, takes a long processing time, and causes large vibrations. However, since the natural spline interpolation method is expressed by a truncated power function,
The disadvantage is that the conditions for the simultaneous equations for obtaining the coefficients are poor, and the calculation means are complicated and time consuming.

本発明は上記各方法の欠点を補い、簡単な演算手段、早
い処理速度そして任意の綱かさという利点のある滑らか
な補間を実現するという補間装置を提供しようとするも
のである。
The present invention aims to compensate for the drawbacks of the above-mentioned methods and to provide an interpolation device that realizes smooth interpolation with the advantages of simple calculation means, high processing speed, and arbitrary stiffness.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記の問題点を解決するため連続した曲線上に
あるべき、順次設定された第1.第2及び第3の3つの
点の座標データと、前記第2の点に関する、前記第1の
点と第3の点を結ぶ線分の中点の対称点である第1の頂
点の座標データが与えられた場合において、前記第1 
(又は第3)の点と第1の頂点を結ぶ線分の中点である
第11(又は第31)の頂点を求める第1の演算手段と
、前記第1 (又は第3)の点と第2の点を結ぶ線分の
中点である第12(又は第32)の中点を求める第2の
演算手段と、前記第11 (又は第31)の頂点と第1
2(又は第32)の中点を結ぶ線分の中点を求める第3
の演算手段とを備えるようにしたものである。
In order to solve the above-mentioned problems, the present invention provides first . Coordinate data of the second and third three points, and coordinate data of the first vertex, which is the symmetrical point of the midpoint of the line segment connecting the first point and the third point, regarding the second point. is given, the first
a first calculation means for calculating an eleventh (or thirty-first) vertex that is the midpoint of a line segment connecting the first (or third) point and the first vertex; a second arithmetic means for calculating a twelfth (or thirty-second) midpoint which is a midpoint of a line segment connecting the second points;
3rd to find the midpoint of the line segment connecting the 2nd (or 32nd) midpoints
The computer is equipped with a calculation means.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

図において、入力手段1より入力された、連続した曲線
上にあるべき順次設定された第1.第2及び第3の3つ
の点の座標データと、前記第2の点に関する、前記第1
の点と第3の点を結ぶ線分の中点の対称点である第1の
頂点の座標データは第1の記憶手段2に格納される。
In the figure, the first . coordinate data of the second and third three points; and the coordinate data of the first point regarding the second point.
The coordinate data of the first vertex, which is the symmetrical point of the midpoint of the line segment connecting the point and the third point, is stored in the first storage means 2.

そしてまず、前記第1 (又は第3)の点と第1の頂点
の座標データからその2点を結ぶ線分の中点である第1
1 (又は第31)の頂点の座標データが第1の演算手
段3により与えられる。
First, from the coordinate data of the first (or third) point and the first vertex, the first
The coordinate data of the 1st (or 31st) vertex is given by the first calculation means 3.

一方、前記第1 (又は第3)の点と第2の点の座標デ
ータからその2点を結ぶ線分の中点である第12 (又
は第32)の中点の座標データが第2の演算手段4で演
算される。
On the other hand, from the coordinate data of the first (or third) point and the second point, the coordinate data of the 12th (or 32nd) midpoint, which is the midpoint of the line segment connecting the two points, becomes the second point. It is calculated by the calculation means 4.

次いで前記第11 (又は第31)頂点と第12(又は
第32)の中点の座標データからこの2点を結ぶ線分の
中点の座標データが第3の演算手段5により演算され、
この中点が第1 (又は第3)の点と第2の点の間の補
間点である。この補間点の座標データは第2の記憶手段
6に格納され出力手段7により出力される。
Next, from the coordinate data of the 11th (or 31st) vertex and the 12th (or 32nd) midpoint, the coordinate data of the midpoint of the line segment connecting these two points is calculated by the third calculation means 5,
This midpoint is the interpolation point between the first (or third) point and the second point. The coordinate data of this interpolation point is stored in the second storage means 6 and outputted by the output means 7.

このようにして、第1 (又は第3)の点と第2の点の
間の補間点が算出される。
In this way, the interpolation point between the first (or third) point and the second point is calculated.

次に、2次′元の直交座標における演算を、第2図を参
照して具体的に説明する。例えば第1の点P、(0,O
)、第2の点p、(100,200)と第3の点p、(
300,O)そして第1の頂点T、(50,400)に
ついて考える。
Next, calculations in two-dimensional orthogonal coordinates will be specifically explained with reference to FIG. For example, the first point P, (0, O
), the second point p, (100,200) and the third point p, (
300, O) and consider the first vertex T, (50, 400).

ここで、第1の頂点T、(50,400)が、第2の点
p2 (100,200)に関して、第1の点P、  
(0,O)と第3の点P、(300,O)を結ぶ線分の
中点(150,0)に対して対称であることを確認する
Here, the first vertex T, (50,400) is the first point P, with respect to the second point p2 (100,200).
Confirm that it is symmetrical with respect to the midpoint (150,0) of the line segment connecting (0,O) and the third point P, (300,O).

まず、第1の点P、(0,0)と第1の頂点T、  (
50,400)の中点である第11の頂点T1、(25
,200)が第1の演算手段3より求まる。
First, the first point P, (0,0) and the first vertex T, (
50,400), the 11th vertex T1 is the midpoint of (25
, 200) are determined by the first calculation means 3.

一方、第1の点P、(0,0)と第2の点P2(100
,200)の中点である第12の中点C,2(50,1
00>が第2の演算手段4より求まる。
On the other hand, the first point P, (0,0) and the second point P2 (100
,200) is the midpoint of the 12th midpoint C,2(50,1
00> is determined by the second calculation means 4.

この第11の頂点T1. (25,200)と第12の
中点C,z(50,100)の中点(37,5゜100
)が第3の演算手段5より求まる。
This eleventh vertex T1. (25,200) and the 12th midpoint C,z (50,100) midpoint (37,5°100
) is determined by the third calculation means 5.

このようにして、3点PI、P2.P3に関して、第1
の点P、(0,0)と第2点Pz  (100゜200
)の間に補間点■1□(37,5,100)を得る。
In this way, 3 points PI, P2. Regarding P3, the first
The point P, (0,0) and the second point Pz (100°200
), the interpolation point ■1□ (37, 5, 100) is obtained.

同様にすれば、第2の点p、(100,200)と第3
の点Pz  (300,0)の間にも補間点(187,
5、150)が得られる。
Similarly, the second point p, (100, 200) and the third point
There is also an interpolation point (187, 0) between the points Pz (300, 0)
5,150) is obtained.

さらに細かく補間点をとる場合には、新しく得られた補
間点をデータ点とみなし、その補間点を含むさらに細い
隣接する3点と、対応する頂点について上記演算を行う
、以上を繰り返すことで任意の細かさまで補間点を求め
ることができる。
If you want to take even finer interpolation points, consider the newly obtained interpolation point as a data point, and perform the above calculation on three thinner adjacent points including the interpolation point and the corresponding vertex. It is possible to find interpolation points up to the level of detail.

最初の補間において、3点だけが与えられ、頂点が与え
られていない場合には、第2の点に関し、第1の点と第
3の点を結ぶ線分の中点と対称な点を求め、これを第1
の頂点とする方法がある。
In the first interpolation, if only three points are given and no vertex is given, find a point that is symmetrical about the second point to the midpoint of the line connecting the first and third points. , this is the first
There is a way to make it the vertex of

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は簡単な演算手段で、高速
に、任意の細かさまで滑らかに補間できる効果がある。
As explained above, the present invention has the advantage of being able to perform smooth interpolation to arbitrary fineness at high speed using a simple calculation means.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明の実施例のブロック図。 第2図は、本発明装置によって実行される補間′の説明
図である。 1・・・入力手段 2・・・第1の記憶手段 3・・・第1の演算手段 4・・・第2の演算手段 5・・・第3の演算手段 6・・・第2の記憶手段 7・・・出力手段
FIG. 1 is a block diagram of an embodiment of the present invention. FIG. 2 is an explanatory diagram of interpolation' executed by the apparatus of the present invention. 1... Input means 2... First storage means 3... First calculation means 4... Second calculation means 5... Third calculation means 6... Second storage Means 7: Output means

Claims (1)

【特許請求の範囲】[Claims] 連続した曲線上にあるべき、順次設定された第1、第2
及び第3の3つの点の座標データと、前記第2の点に関
する、前記第1の点と第3の点を結ぶ線分の中点の対称
点である第1の頂点の座標データが与えられている場合
において、前記第1(又は第3)の点と第1の頂点を結
ぶ線分の中点である第11(又は第31)の頂点を求め
る第1の演算手段と、前記第1(又は第3)の点を結ぶ
線分の中点である第12(又は第32)の中点を求める
第2の演算手段と、前記第11(又は第31)の頂点と
第12(又は第32)の中点を結ぶ線分の中点を求める
第3の演算手段とを備えることを特徴とする補間装置。
The first and second sets should be on a continuous curve.
and the coordinate data of the third three points, and the coordinate data of the first vertex, which is the symmetrical point of the midpoint of the line segment connecting the first point and the third point, regarding the second point are given. in the case where a second calculating means for calculating the 12th (or 32nd) midpoint, which is the midpoint of the line segment connecting the 1st (or 3rd) point; or (32)) third calculation means for calculating the midpoint of a line segment connecting the midpoints.
JP61118404A 1986-05-24 1986-05-24 Interpolation device Pending JPS62276669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61118404A JPS62276669A (en) 1986-05-24 1986-05-24 Interpolation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61118404A JPS62276669A (en) 1986-05-24 1986-05-24 Interpolation device

Publications (1)

Publication Number Publication Date
JPS62276669A true JPS62276669A (en) 1987-12-01

Family

ID=14735810

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61118404A Pending JPS62276669A (en) 1986-05-24 1986-05-24 Interpolation device

Country Status (1)

Country Link
JP (1) JPS62276669A (en)

Similar Documents

Publication Publication Date Title
JPH02278290A (en) Method for applying curve to shape shown by linear short vector train
JPS62276669A (en) Interpolation device
JP2684609B2 (en) Graphic display method in graphic data processing device
JPH01217562A (en) System for generating computing grid
JPH01166177A (en) Thick line drawing system for dda circuit
JPH1125266A (en) Method for converting picture and device therefor
JPH02118782A (en) Method for processing picture
JP2740484B2 (en) Graphic processing method
JPH0368086A (en) Linear interpolating circuit
JP2000132712A (en) Device and method for generating two-dimensional finite element mesh using triangular six node higher order element
JPH06314341A (en) Eliiptic interpolating method and arithmetic unit for elliptic interpolation
US6995764B1 (en) Automatic application task placement procedure in a signal processing machine
JPS6286460A (en) Two-dimensional fourier transform calculator
JPH0664618B2 (en) Clipping circuit
JP4089806B2 (en) Curve generating device and method, and storage medium
JPH02194477A (en) Mesh generator by mapping method
JPS62182841A (en) Square root arithmetic system
JPH07311841A (en) Method and device for synthesizing picture
JPH0261779A (en) Coordinate data processing unit
JP2000306116A (en) Method for deriving continuous rotational angle from continuous rotational matrix and storage medium storing program related to the method
JPH07107710B2 (en) Two-dimensional distance calculation device for image processing device
JPH0449473A (en) Image interpolating and contracting system
JPH02159679A (en) Rapid filtering system for image data
JPH0520404A (en) Three-dimensional graphic processing system
JPS5952379A (en) Interpolating device