Resize image
returns image J
= imresize(I
,[numrows
numcols]
)J
that has the number of rows and columns
specified by the vector [numrows numcols]
.
[
resizes the indexed image Y
,newmap
]
= imresize(X
,map
,___)X
with colormap
map
. By default, imresize
returns an
optimized colormap, newmap
, with the resized indexed image.
To return a colormap that is the same as the original colormap, use the
Colormap
name-value pair argument.
This syntax is not supported on a GPU.
___ = imresize(___,
uses name-value pair arguments to control various aspects of the resizing
operation.Name,Value
)
This syntax is not supported on a GPU.
The function imresize
changed in
version 5.4 (R2007a). Previous versions of the Image Processing
Toolbox™ used
a different algorithm by default. If you need the same results produced
by the previous implementation, use the function imresize_old
.
There is a slight numerical difference between the results of imresize
on
the CPU and the GPU. These differences occur on the right and bottom borders of
the image and are barely noticeable to the naked eye.
If the size of the output image is not an integer, then
imresize
does not use the scale specified.
imresize
uses ceil
when calculating
the output image size.