IMINTERP

Purpose:

Interpolates an image.

Syntax:

IMINTERP(image, factor, method)

image

-

An array. The input image.

factor

-

Optional. An integer, the interpolation factor. Defaults to 2.

method

-

Optional. An integer, the interpolation method:

0:

linear (default)

1:

cubic spline

Returns:

An array.

Example:

W1: readimage(gethome + "data\mandrill.bmp")

W2: iminterp(W1, 4, 0)

W3: iminterp(W1, 4, 1)

 

W2 produces a linearly interpolated image and W3 contains a cubic spline interpolated image. The both images are interpolated by a factor of 4.

Remarks:

If the image is an RGBIMAGE (i.e. a 24 bit image), IMINTERP automatically interpolates each R, G, B (red, green, blue) component.

See Also:

CONV2D

GETRGB

IMCONV

INTERP2

NONLIN2D

READBMP

READIMAGE

SETASPECT

SOBEL

SPLINE2