ImageForwardTransformation

ImageForwardTransformation[image,f]

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

ImageForwardTransformation[image,f,size]

gives an image of the specified size.

Details and Options

  • In ImageForwardTransformation[image, f] every pixel at position {x,y} in image is placed at position f[{x,y}] in the output image. This is known as a forward transformation.
  • ImageForwardTransformation[image,f] gives an image of the same size as the original.
  • ImageForwardTransformation works with arbitrary 2D images.
  • 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.
  • Possible settings for size are:
  • Automaticautomatic image size
    Allsame as input image size
    widthexplicit width, automatic height
    {width,height}explicit width and height
    {width,depth,height}explicit width, depth and height in 3D
  • For possible width, depth and height specifications, see the reference page for ImageResize.
  • For possible size specifications, see the reference page for ImageResize.
  • ImageForwardTransformation can take the following options:
  • BackgroundBlackbackground value
    DataRangeAutomaticassumed range of and values in the original image
    MethodAutomaticinterpolation method to use
    PlotRangeAutomaticrange 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:
  • Automaticsame as DataRange settings
    Alltry to include all of the transformed pixels
    Fullsame 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 MethodNone to avoid interpolation.

Examples

open all close all

Basic Examples  (1)

Applying a forward transformation on an image:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Options  (4)

Applications  (3)

Properties & Relations  (3)

Neat Examples  (3)

Introduced in 2010
(8.0)
|
Updated in 2014
(10.0)