# Generic Geometric Transformations

Perform generic geometric transformations using the `imwarp` workflow

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 `imwarp` function.

## Functions

expand all

 `fitgeotform2d` Fit 2-D geometric transformation to control point pairs (Since R2022b) `affinetform2d` 2-D affine geometric transformation (Since R2022b) `affinetform3d` 3-D affine geometric transformation (Since R2022b) `rigidtform2d` 2-D rigid geometric transformation (Since R2022b) `rigidtform3d` 3-D rigid geometric transformation (Since R2022b) `simtform2d` 2-D similarity geometric transformation (Since R2022b) `simtform3d` 3-D similarity geometric transformation (Since R2022b) `transltform2d` 2-D translation geometric transformation (Since R2022b) `transltform3d` 3-D translation geometric transformation (Since R2022b) `projtform2d` 2-D projective geometric transformation (Since R2022b) `geometricTransform2d` 2-D geometric transformation object `geometricTransform3d` 3-D geometric transformation object `PiecewiseLinearTransformation2D` 2-D piecewise linear geometric transformation `PolynomialTransformation2D` 2-D polynomial geometric transformation `LocalWeightedMeanTransformation2D` 2-D local weighted mean geometric transformation
 `imwarp` Apply geometric transformation to image `transformPointsForward` Apply forward geometric transformation `transformPointsInverse` Apply inverse geometric transformation `Warper` Apply same geometric transformation to many images efficiently
 `tformarray` Apply spatial transformation to N-D array `findbounds` Find output bounds for spatial transformation `fliptform` Flip input and output roles of spatial transformation structure `makeresampler` Create resampling structure `maketform` Create N-D spatial transformation structure (`TFORM`) `tformfwd` Apply forward N-D spatial transformation `tforminv` Apply inverse N-D spatial transformation
 `imref2d` Reference 2-D image to world coordinates `imref3d` Reference 3-D image to world coordinates `affineOutputView` Create output view for warping images (Since R2019b)