Main Content

Common Geometric Transformations

Resize, rotate, crop, and translate images

Use these functions to perform common geometric transformations. For example, use imrotate to rotate an image.


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


  • Resize an Image

    Change the size of an image by specifying a multiplicative scale factor or by specifying the desired output size of the image.

  • Resize Image and Preserve Aspect Ratio

    Resize an image without changing the ratio of width to height.

  • Rotate an Image

    Rotate an image by a specified rotation angle and optionally crop the rotated image to be the same size as the original image.

  • Crop an Image

    Crop a rectangular portion of an image by specifying the size and position of the crop region, or by drawing over the image in a figure window using an interactive tool.

  • Translate an Image Using imtranslate Function

    Shift an image vertically or horizontally by a specified number of pixels.