Returns a vector orarray resized to the given dimensions.
dimi The dimension(s) of the resampled array. Must be integral multiples or factors of the original array's dimension(s).
If not present, specifies that bilinear interpolation is to be used for magnifying and that neighborhood averaging is to be used for shrinking. (Bilinear interpolation gives higher quality results, but requires more time.)
x = DIST(20)
SHADE_SURF, x, Color = 0
LOADCT, 7 y = TVRD(0, 0, 640, 512)
INFO, y
VARIABLE BYTE = Array(640, 512)
z = REBIN(y, 320, 256)
WINDOW, 0, Xsize = 960, Ysize = 512
TV, y, 0
TV, z, 5
Figure 2-93 Original image (left); resized image (right).
Figure 2-94 Original image (left); resized image (right).
For more information on resampling and resizing images, see Image Magnification and Reduction in Chapter 6 of the PV-WAVE User's Guide.
For information on interpolation methods, see Efficiency and Accuracy of Interpolation in Chapter 6 of the PV-WAVE User's Guide.