# Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# ImagePerspectiveTransformation

ImagePerspectiveTransformation[image,m]
applies a linear fractional transform specified by a matrix m to the positions of each pixel in image.

ImagePerspectiveTransformation[image,,size]
gives an image of the specified size.

## Details and OptionsDetails and Options

• ImagePerspectiveTransformation is typically used to modify camera position, orientation, and field of view of scene.
• The transformation matrix m correspond to the following case:
•  image 2D, m 2×2 image 2D, m 3×3 image 3D, m 3×3 image 3D, m 4×4
• ImagePerspectiveTransformation can take the following options:
•  Background 0 background color to use DataRange Automatic range of coordinates in the original image Masking Full region of interest to be transformed Padding 0 padding method PlotRange Automatic range of coordinates in the resulting image Resampling Automatic resampling method
• Typical settings for DataRange include:
•  Automatic in 2D, in 3D Full in 2D, in 3D {{left,right},{bottom,top}} explicit coordinate ranges in 2D {{left,right},{front,back},{bottom,top}} explicit coordinate ranges in 3D
• The coordinate system of the resulting image is specified by the PlotRange option. Typical settings include:
•  Automatic same as DataRange settings All try to include all of the transformed pixels Full same ranges as the input image {{left,right},…} explicit coordinate ranges
• When PlotRange is not Automatic, size is chosen based on the size of the original image and the ratio of PlotRange and DataRange.
• Masking option can be one of the following:
• For possible size specifications, see the reference page for ImageResize.

## ExamplesExamplesopen allclose all

### Basic Examples  (2)Basic Examples  (2)

Transform an image using a perspective transformation:

 In[1]:=
 Out[1]=

Perspective transformation of a 3D image:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=