skimage 0.17.2

ParametersReturnsBackRef
warp_polar(image, center=None, *, radius=None, output_shape=None, scaling='linear', multichannel=False, **kwargs)

Parameters

image : ndarray

Input image. Only 2-D arrays are accepted by default. If :None:None:`multichannel=True`, 3-D arrays are accepted and the last axis is interpreted as multiple channels.

center : tuple (row, col), optional

Point in image that represents the center of the transformation (i.e., the origin in cartesian space). Values can be of type :None:None:`float`. If no value is given, the center is assumed to be the center point of the image.

radius : float, optional

Radius of the circle that bounds the area to be transformed.

output_shape : tuple (row, col), optional
scaling : {'linear', 'log'}, optional

Specify whether the image warp is polar or log-polar. Defaults to 'linear'.

multichannel : bool, optional

Whether the image is a 3-D array in which the third axis is to be interpreted as multiple channels. If set to :None:None:`False` (default), only 2-D arrays are accepted.

**kwargs : keyword arguments

Passed to :None:None:`transform.warp`.

Returns

warped : ndarray

The polar or log-polar warped image.

Remap image to polar or log-polar coordinates space.

Examples

Perform a basic polar warp on a grayscale image:

This example is valid syntax, but we were not able to check execution
>>> from skimage import data
... from skimage.transform import warp_polar
... image = data.checkerboard()
... warped = warp_polar(image)

Perform a log-polar warp on a grayscale image:

This example is valid syntax, but we were not able to check execution
>>> warped = warp_polar(image, scaling='log')

Perform a log-polar warp on a grayscale image while specifying center, radius, and output shape:

This example is valid syntax, but we were not able to check execution
>>> warped = warp_polar(image, (100,100), radius=100,
...  output_shape=image.shape, scaling='log')

Perform a log-polar warp on a color image:

This example is valid syntax, but we were not able to check execution
>>> image = data.astronaut()
... warped = warp_polar(image, scaling='log', multichannel=True)
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.transform._warps.warp_polar

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/transform/_warps.py#997
type: <class 'function'>
Commit: