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.
Use these functions to perform general 2-D, 3-D, and N-D geometric
transformations. To perform a 2-D or 3-D geometric transformation, first
create a geometric transformation object that stores information about
the transformation. Then, pass the image to be transformed and the
geometric transformation object to the
|Apply geometric transformation to image|
|Fit geometric transformation to control point pairs|
|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 geometric transformation object|
|3-D geometric transformation object|
|2-D piecewise linear geometric transformation|
|2-D polynomial geometric transformation|
|2-D local weighted mean geometric transformation|
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.
Affine and projective transformations are represented by matrices. You can use matrix operations to perform a global transformation of an 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 specify the color of blank space in the image after a geometric transformation.
Learn how image locations are expressed using pixel indices and spatial coordinates.
Spatial referencing objects encode the relationship between the image extent in intrinsic coordinates, the image extent in world coordinates, and the image resolution.
YData image properties are
two-element vectors that control the range of coordinates spanned by the