Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Resize image

`B = imresize(A,scale)`

```
B = imresize(A,[numrows
numcols])
```

```
[Y,newmap]
= imresize(X,map,___)
```

`___ = imresize(___,method)`

`___ = imresize(___,Name,Value)`

returns image `B`

= imresize(`A`

,`scale`

)`B`

that is `scale`

times
the size of `A`

. The input image `A`

can
be a grayscale, RGB, or binary image. If `A`

has more than
two dimensions, `imresize`

only resizes the first two
dimensions. If `scale`

is in the range [0, 1],
`B`

is smaller than `A`

. If
`scale`

is greater than 1, `B`

is
larger than `A`

. By default, `imresize`

uses
bicubic interpolation.

returns image `B`

= imresize(`A`

,```
[numrows
numcols]
```

)`B`

that has the number of rows and columns
specified by the two-element vector `[numrows numcols]`

.

`___ = imresize(___,`

returns the resized image where `Name,Value`

)`Name,Value`

pairs control
various aspects of the resizing operation.

If the size of the output image is not an integer,

`imresize`

does not use the scale specified.`imresize`

uses`ceil`

when calculating the output image size.

`gpuArray`

| `imresize3`

| `imrotate`

| `imtransform`

| `interp2`

| `tformarray`

Was this topic helpful?