Apply geometric transformation to image
[___] = imwarp(___,
specifies the type of interpolation to use.interp
)
[___] =
imwarp(___,
specifies name-value pair arguments to control various aspects of the geometric
transformation. Name,Value
)
Tip
If the input transformation tform
does not define a
forward transform, then use the OutputView
name-value
pair argument to accelerate the transformation.
imwarp
determines the value of pixels in the
output image by mapping locations in the output image to the corresponding locations in
the input image (inverse mapping). imwarp
interpolates within the
input image to compute the output pixel value.
The following figure illustrates a translation transformation. By convention, the axes
in input space are labeled u and v and the
axes in output space are labeled x and y. In
the figure, note how imwarp
modifies the spatial coordinates that
define the locations of pixels in the input image. The pixel at (1,1) is now positioned
at (41,41). In the checkerboard image, each black, white, and gray square is 10 pixels
high and 10 pixels wide. For more information about the distinction between spatial
coordinates and pixel coordinates, see Image Coordinate Systems.
Input Image Translated
affineOutputView
| centerCropWindow2d
| imregdemons
| imregister
| imregtform
| imtranslate
| missing
| randomCropWindow2d