ImageTransformation

ImageTransformation[image,function]
gives an image in which each pixel at position p corresponds to the position in image.

ImageTransformation[image,function,size]
gives an image of the specified size.

Details and OptionsDetails and Options

  • In ImageTransformation[image,f], f is a function of form in 2D or in 3D that defines a backward transformation from points in the resulting image or into the input image image.
  • The function f can also be specified with a TransformationFunction object.
  • In 2D, the range of the coordinate system for the input image is assumed to be , where a is the aspect ratio. The bottom-left corner of the image corresponds to coordinates by default.
  • In 3D, the range of the coordinate system for the input image is assumed to be , where are the image dimensions. The bottom-left front corner of the image corresponds to coordinates by default.
  • Other coordinate systems can be specified by setting the DataRange option.
  • ImageTransformation can take the following options:
  • Background0background color to use
    DataRangeAutomaticrange of coordinates in the original image
    MaskingFullregion of interest to be transformed
    Padding0padding method
    PlotRangeAutomaticrange of coordinates in the resulting image
    ResamplingAutomaticresampling method
  • By default, ImageTransformation returns an image with the aspect ratio of the input image.
  • 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:
  • Automaticsame as DataRange settings
    Alltry to include all of the transformed pixels
    Fullsame ranges as the input image
    {{left,right},}explicit coordinate ranges
  • In ImageTransformation[image,function], the pixel dimensions of the resulting image are based on the dimensions of image and the ratio of PlotRange and DataRange.
  • Masking option can be one of the following:
  • Allinput image only
    Fullinput image and padding
    maskany mask image
  • For possible size specifications, see the reference page for ImageResize.
Introduced in 2010
(8.0)
| Updated in 2014
(10.0)