Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

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.

Common Geometric Transformations

Resize, rotate, crop, and perform other common image geometric image transformations

Use these functions to perform common geometric transformations. For example, use imresize to resize an image.

Functions

imcropCrop image
imresizeResize image
imresize3Resize 3-D volumetric intensity image
imrotateRotate image
imrotate3Rotate 3-D volumetric grayscale image
imtranslateTranslate image
impyramidImage pyramid reduction and expansion

Topics

What Happens in Geometric Transformation

Geometric transformations map pixel coordinates in the output image to coordinates in the input image. The mapping process then interpolates the value of output pixels from the input image.

Resize an Image with imresize Function

This example shows how to magnify and shrink an image. You can specify an interpolation method and prevent aliasing.

Rotate an Image

This example shows how to rotate an image. You can crop the rotated image to be the same size as the original image.

Crop an Image

To crop a rectangular portion of an image, specify the size and position of the crop region, or draw over the image in a figure window using an interactive tool.

Translate an Image using imtranslate Function

This example shows how to shift an image vertically or horizontally by a given number of pixels.

Crop Image Using Image Viewer App

You can extract, or crop, a rectangular region of the image. You can fine tune the size and position of the crop region.

Was this topic helpful?