2.8.21 minterp2


Menu Information

Analysis: Mathematics: 2D Interpolate/Extrapolate

Brief Information

Perform interpolation/extrapolation on matrix data

Command Line Usage

1. minterp2 im:=MBook1;

2. minterp2 im:=MBook1 method:=bicubic;

3. minterp2 im:=MBook1 cols:=10 rows:=10;

4. minterp2 im:=MBook1 xmin:=1 xmax:=10 ymin:=1 ymax:=10;

5. minterp2 im:=[MBook1]MSheet1!Mat(1) om:=[MBook1]MSheet2!Mat(1);

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Matrix im

Input

MatrixObject

<active>

The matrix that contains the input data

Method method

Input

int

spline

Interpolation method.
Option list

  • Nearest
    Interpolate using the nearest points.
  • Bilinear
    Two dimensional linear interpolation.
  • Bicubic Convolution
    Two dimensional interpolation using bicubic convolution.
  • Spline
    Two dimensional spline interpolation.
  • Biquadratic
    Two dimensional quadratic interpolation.
  • Bicubic Lagrange
    Two dimensional interpolation using Lagrange polynomials.
Number of Cols cols

Input

int

<auto>

The number of columns in the output matrix

Number of Rows rows

Input

int

<auto>

The number of rows in the output matrix


Missing Value Pretreatment missing

Input

int

<auto>

Preprocess missing values in 2D interpolation.

Option Lists:

  • 0=skip:Skip
    Remove all missing values first and then run interpolation.
  • 1=rc:Interpolated with Renka Cline
    Renka Cline: For an arbitrary point P, compute the interpolated value using the data values and gradient estimates at each of the three vertices of the triangle which contains P.
First X xmin

Input

double

<auto>

The minimum x value of the output matrix

Last X xmax

Input

double

<auto>

The maximum x value of the output matrix

First Y ymin

Input

double

<auto>

The minimum y value of the output matrix

Last Y ymax

Input

double

<auto>

The maximum y value of the output matrix

Output Matrix om

Output

MatrixObject

<new>

The output matrix

See the syntax here.

Examples

  1. Select File: Open from the Origin menu to bring up the Open dialog. With the Files of Type drop-down list, select Matrix (*.ogm). Browse to \Samples\Matrix Conversion and Gridding\ folder under the Origin programming folder. And open 2D Gaussian.ogm.
  2. Select Analysis: Mathematics: 2D Interpolate/Extrapolate from the Origin menu to open the minterp2 X-Function.
  3. Enter 20 on the Number of Cols and Number of Rows edit box. And select spline as the Method.
  4. Click OK to perform the interpolation.

More Information

Please refer to this page in the User Guide for more information:

  • Description
  • Algorithm
  • Reference.



Keywords:interpolate, extrapolate