SIVP Toolbox
Last update : July, 2006

imresize - Resizes image

Calling Sequence

imout = imresize(imin, scale)
imout = imresize(imin, scale, interp)
imout = imresize(imin, [mrows ncols])
imout = imresize(imin, [mrows ncols], interp)

Parameters

Description

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.

Examples


    im = imread(SCI + '/contrib/sivp/images/lena.png');
    ima = imresize(im, 1.5);
    imb = imresize(im, 1.5, 'bilinear');
    imc = imresize(im, [100,200], 'bicubic');

Authors

Shiqi Yu <shiqi.yu[at]gmail.com>

Availability

The latest version of SIVP can be found at

http://sivp.sourceforge.net

See Also

imcrop,