Resizes image
imout = imresize(imin, scale) imout = imresize(imin, scale, interp) imout = imresize(imin, [mrows ncols]) imout = imresize(imin, [mrows ncols], interp)
[width, height] x scale
.interp
must be one of the follows: 1. 'nearest' - nearest-neigbor interpolation (default value); 2. 'bilinear' - bilinear interpolation; 3. 'bicubic' - bicubic interpolation; 4. 'area' - resampling using pixel area relation.imresize
resize the input image. When
scale
parameter is specified, the width and height of
the image is resized in the same scale. There are four interpolation
method can be used: nearest-neigbor, bilinear, bicubic and area methods.
The default method is nearest-neigbor method.
im = imread(fullpath(getSIVPpath() + "/images/lena.png")); ima = imresize(im, 1.5); imb = imresize(im, 1.5, 'bilinear'); imc = imresize(im, [100,200], 'bicubic'); | ![]() | ![]() |
http://sivp.sf.net