Common Geometric Transformations
Use these functions to perform common geometric transformations. For
example, use imrotate
to rotate an
image.
Functions
Topics
- 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 Vertically and Horizontally
Shift an image vertically or horizontally by a specified number of pixels.
- Explore Slices from 3-D Image Volume with Anisotropic Voxel Spacing
Display slices from a 3-D image volume with voxel spacing that varies between spatial dimensions.