Use these functions to perform common geometric transformations.
For example, use
resize an image.
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.
This example shows how to magnify and shrink an image. You can specify an interpolation method and prevent aliasing.
This example shows how to rotate an image. You can crop the rotated image to be the same size as the original 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.
This example shows how to shift an image vertically or horizontally by a given number of pixels.
You can extract, or crop, a rectangular region of the image. You can fine tune the size and position of the crop region.