ImageForwardTransformation

ImageForwardTransformation[image,function]

gives an image in which each pixel at position function[{x,y}] corresponds to the position {x,y} in image.

ImageForwardTransformation[image,function,size]

gives an image of the specified size.

Details and Options

• ImageForwardTransformation[image,function] gives an image of the same size as the original.
• The pixel positions in the original image are assumed to run from 0 to 1 in the horizontal direction and from 0 to the aspect ratio in the vertical direction.
• For possible size specifications, see the reference page for ImageResize.
• ImageForwardTransformation can take the following options:
•  Background Black background value DataRange Automatic assumed range of and values in the original image Method Automatic interpolation method to use PlotRange Automatic range of coordinates to be included in the result of the transformation
• Typical settings for DataRange include:
•  Automatic {{0,1},{0,h/w}} in 2D, {{0,1},{0,d/w},{0,h/w}} in 3D Full {{0,w},{0,h}} in 2D, {{0,1},{0,d},{0,h}} 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.
• By default, transformed points are interpolated using Method->"Interpolated". Use to avoid interpolation.

Examples

open allclose all

Basic Examples(1)

Applying a forward transformation on an image:

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