imwarp
工作流执行常见几何变换几何变换将输出图像中的像素坐标映射到输入图像中的坐标。然后,映射过程根据输入图像对输出像素进行插值。
使用这些函数可执行一般的二维、三维和 N 维几何变换。要执行二维或三维几何变换,请首先创建一个几何变换对象,用来存储变换信息。然后,将要变换的图像和几何变换对象传递给 imwarp
函数。
imwarp | 对图像应用几何变换 |
affineOutputView | Create output view for warping images |
fitgeotrans | 对控制点对组进行几何变换拟合 |
findbounds | Find output bounds for spatial transformation |
fliptform | Flip input and output roles of spatial transformation structure |
makeresampler | Create resampling structure |
maketform | Create spatial transformation structure (TFORM ) |
tformarray | Apply spatial transformation to N-D array |
tformfwd | Apply forward spatial transformation |
tforminv | Apply inverse spatial transformation |
2-D and 3-D Geometric Transformation Process Overview
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.
仿射变换和投影变换以矩阵表示。您可以使用矩阵运算来执行图像的全局变换。
N-Dimensional Spatial Transformations
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.
Specify Fill Values in Geometric Transformation Output
This example shows how to specify the color of blank space in the image after a geometric transformation.
了解如何使用离散像素索引和连续空间坐标来表示图像位置。
Define World Coordinate System of Image
Spatial referencing objects encode the relationship between the image extent in intrinsic coordinates, the image extent in world coordinates, and the image resolution.
Shift X- and Y-Coordinate Range of Displayed Image
This example shows how to specify a nondefault world coordinate system by changing the XData
and YData
properties of a displayed image.