# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English verison of the page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

# Generic Geometric Transformations

Perform generic geometric transformations using the `imwarp` workflow

Use these functions to perform general 2-D and N-D geometric transformations. Use the geometric transformation classes to define the transformation and then use `imwarp` to apply the transformation to an image.

## Functions

 `imwarp` Apply geometric transformation to image
 `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

## Using Objects

 `Warper` Apply same geometric transformation to many images efficiently
 `imref2d` Reference 2-D image to world coordinates `imref3d` Reference 3-D image to world coordinates
 `affine2d` 2-D affine geometric transformation `affine3d` 3-D affine geometric transformation `projective2d` 2-D projective geometric transformation `PiecewiseLinearTransformation2D` 2-D piecewise linear geometric transformation `PolynomialTransformation2D` 2-D polynomial geometric transformation `LocalWeightedMeanTransformation2D` 2-D local weighted mean geometric transformation

## Topics

Matrix Representation of Geometric Transformations

Affine and projective transformations are represented by matrices. You can use matrix operations to perform a global transformation of an image.

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.

Perform Simple 2-D Translation Transformation

This example shows how to shift an image vertically and horizontally. Use spatial referencing information to display the original image and the translated image from the same perspective.

Image Coordinate Systems

Learn how image locations are expressed using pixel indices and spatial coordinates.

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.