You are here: Start » Filter Reference » Image » Image Spatial Transforms » ImageInversePolarTransform
Module: | FoundationBasic |
---|
Transforms an image from polar or log-polar space to euclidean space.
Name | Type | Description | |
---|---|---|---|
inImage | Image | Input image | |
inCenter | Point2D | Center of the coordinate system in output image | |
inInputSpaceType | PolarSpaceType | Method of transformation | |
inInterpolation | PolarInterpolationMethod | Method of underlying interpolation | |
outImage | Image | Output image |
Requirements
For input inImage only pixel formats are supported: 1⨯uint8, 3⨯uint8, 1⨯int16, 3⨯int16, 1⨯uint16, 3⨯uint16, 1⨯real, 3⨯real.
Read more about pixel formats in Image documentation.
Description
Reverses ImagePolarTransform using the following transformation:
\[ src(x,y) = dst(\rho, \phi) \]where
\[ \rho = m \sqrt{x^2 + y^2} , \phi = \arctan(\frac{y}{x}), \]for linear-polar space, and
\[ \rho = k \log{\sqrt{x^2+y^2} }, \phi = \arctan(\frac{y}{x}), \]for log-polar space, which emulates the human "foveal vision".
Parameters \(m\) and \(k\) are chosen so that entire source image could fit into output image.
Transformation does not change image dimensions.
Examples
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported inImage pixel format in ImageInversePolarTransform. Supported formats: 1xUInt8, 3xUInt8, 1xInt16, 3xInt16, 1xUInt16, 3xUInt16, 1xReal, 3xReal. |
Complexity Level
This filter is available on Advanced Complexity Level.
See Also
- ImagePolarTransform – Transforms an image to polar or log-polar space.