ImageTransformation

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

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

Details and OptionsDetails and Options

  • The bottom-left corner of the image corresponds to coordinates by default. Other coordinate systems can be specified by setting the PlotRange and DataRange options.
  • ImageTransformation can take the following options:
  • DataRangeAutomaticrange of coordinates in the original image
    PlotRangeAutomaticrange of coordinates in the resulting image
    PaddingBlackpadding method
    ResamplingAutomaticresampling method
  • The range of the coordinate system for the input image is assumed to be , where a is the aspect ratio. Other coordinate systems can be specified by setting the DataRange option.
  • Typical settings for DataRange include:
  • Automaticrange , where a is the aspect ratio
    {{left,right},{bottom,top}}explicit coordinate ranges
    Fulltrue pixel range
  • The coordinate system of the resulting image is specified by the PlotRange option, which takes the same settings as DataRange.
  • With the default setting PlotRange->Automatic, PlotRange is taken to be equal to DataRange.
  • PlotRange->All tries to find a plot range that includes the images of all pixels in the input image.
  • 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.
  • For possible size specifications, see the reference page for ImageResize.
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »