Main Content

Common Geometric Transformations

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

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

Functions

imcrop Crop image
imcrop3 Crop 3-D image
imresize Resize image
imresize3 Resize 3-D volumetric intensity image
imrotate Rotate image
imrotate3 Rotate 3-D volumetric grayscale image
imtranslate Translate image
impyramid Image pyramid reduction and expansion

Topics

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.