DADiSP Worksheet Functions > Function Categories > Image Processing > IMINTERP
Interpolates an image.
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:
|
An array.
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.
If the image is an RGBIMAGE (i.e. a 24 bit image), IMINTERP automatically interpolates each R, G, B (red, green, blue) component.