Apply projective or affine transformation to an image
|Port||Input/Output||Description||Supported Data Types|
M-by-N grayscale image or M-by-N-by-3 truecolor image.
When you set Transformation
matrix source to
When you set Transformation matrix source to
When you enable the ROI input port, you can also enable an Err_roi output port to indicate if any part of an ROI is outside the input image. The ROI input port accepts an ROI rectangle, specified as a 4-element vector: [x y width height].
Same as input
Indicates if any part of an ROI is outside the input image.
Input matrix source, specified as either
Input port or
If you select
Custom, you can enter the transformation
matrix parameter in the field that appears with this selection.
Custom transformation matrix, specified as a 3-by-2 or 3-by-3
matrix. This parameters appears when you set Transformation
matrix source to
Interpolation method used to calculate output pixel values,
Bicubic. See Nearest Neighbor, Bilinear, and Bicubic Interpolation Methodsfor
an overview of these methods.
Value of the pixels that are outside of the input image, specified as either a scalar value or a 3-element vector.
Source of the output image size, specified as either either
as input image or
Custom. If you select
you can specify the bounding box in the field that appears with this
Position, width, and height of the output image, specified as
a 4-element vector: [x y width height].
This parameter appears when you set Output image position
Select this check box to enable the ROI input port. Use this port to specify the rectangular region you want to transform.
Select this check box to enable the Err_roi output port.
 Wolberg, George . Digital Image Warping, 3rd edition. IEEE Computer Society Press, 1994.
 Hartley, Richard, and Andrew Zisserman. Multiple View Geometry in Computer Vision. 2nd edition. IEEE Computer Society Press, 2003.
The size of the transformation matrix dictates the transformation type.
In a projective transformation, the relationship between the input and the output points is defined by:
You must arrange the transformation coefficients as a 3-by-3 matrix as in:
In an affine transformation, The value of the pixel located at in the input image determines the value of the pixel located at in the output image. The relationship between the input and output point locations is defined by:
You must arrange the transformation coefficients as a 3-by-2 matrix: