Back to FabImage Library website

You are here: Start » Function Reference » Image » Image Spatial Transforms Maps » CreateImagePolarTransformMap


Header: FIL.h
Namespace: fil
Module: Calibration

Creates a spatial map representing an image polar transform.

Applications: Data preprocessing for fast image polar transform. The result is used by RemapImage.


void fil::CreateImagePolarTransformMap
	const fil::ImageFormat& inImageFormat,
	const fil::Point2D& inCenter,
	fil::PolarSpaceType::Type inSpaceType,
	fil::InterpolationMethod::Type inInterpolationMethod,
	fil::SpatialMap& outPolarMap,
	ftl::Optional<fil::Region&> outOutputRegion = ftl::NIL


Name Type Default Description
Input value inImageFormat const ImageFormat& Information about dimensions, depth and pixel type of the image
Input value inCenter const Point2D&
Input value inSpaceType PolarSpaceType::Type Method of transformation
Input value inInterpolationMethod InterpolationMethod::Type Bilinear Interpolation method used in extraction of image pixel values
Output value outPolarMap SpatialMap& Output spatial map
Output value outOutputRegion Optional<Region&> NIL Pixels set by the spatial map application

Optional Outputs

The computation of following outputs can be switched off by passing value ftl::NIL to these parameters: outOutputRegion.

Read more about Optional Outputs.


The operation generates map that describes image transformation to polar or log-polar space. Two modes of pixel interpolation are available, the bilinear filtering being more precise and computationally expensive. Usually creating map and then using RemapImage is faster than ImagePolarTransform. For more information see ImagePolarTransform.

See Also

  • RemapImage – Applies a precomputed image transform, defined by a spatial map object.