Use these functions to perform general 2-D and N-D geometric
transformations. Use the geometric transformation classes to define
the transformation and then use
apply the transformation to an image.
|Apply geometric transformation to image|
|Find output bounds for spatial transformation|
|Flip input and output roles of spatial transformation structure|
|Create resampling structure|
|Create spatial transformation structure (TFORM)|
|Apply spatial transformation to N-D array|
|Apply forward spatial transformation|
|Apply inverse spatial transformation|
|2-D affine geometric transformation|
|3-D affine geometric transformation|
|2-D projective geometric transformation|
|2-D piecewise linear geometric transformation|
|2-D polynomial geometric transformation|
|2-D local weighted mean geometric transformation|
Affine and projective transformations are represented by matrices. You can use matrix operations to perform a global transformation of an image.
To perform a general geometric transformation of a 2-D or 3-D image, first define the parameters of the transformation, then warp the image.
You can create custom geometric transformations to process images of arbitrary dimension, or to change the dimensionality of the output image from the input image.
This example shows how to shift an image vertically and horizontally. Use spatial referencing information to display the original image and the translated image from the same perspective.
Learn how image locations are expressed using pixel indices and spatial coordinates.
This example shows how to specify the color of blank space in the image after a geometric transformation.