bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / transform / _warps / warp_polar
function
skimage.transform._warps:warp_polar
source: /dev/scikit-image/src/skimage/transform/_warps.py :1123
Signature
def warp_polar ( image , center = None , * , radius = None , output_shape = None , scaling = linear , channel_axis = None , ** kwargs ) Summary
Remap image to polar or log-polar coordinates space.
Parameters
image: (M, N[, C]) ndarrayInput image. For multichannel images
channel_axishas to be specified.center: 2-tuple, optional(row, col)coordinates of the point inimagethat represents the center of the transformation (i.e., the origin in Cartesian space). Values can be of typefloat. If no value is given, the center is assumed to be the center point ofimage.radius: float, optionalRadius of the circle that bounds the area to be transformed.
output_shape: tuple (row, col), optionalscaling: {'linear', 'log'}, optionalSpecify whether the image warp is polar or log-polar. Defaults to 'linear'.
channel_axis: int or None, optionalIf None, the image is assumed to be a grayscale (single channel) image. Otherwise, this parameter indicates which axis of the array corresponds to channels.
**kwargs: keyword argumentsPassed to
transform.warp.
Returns
warped: ndarrayThe polar or log-polar warped image.
Examples
Perform a basic polar warp on a grayscale image:from skimage import data from skimage.transform import warp_polar image = data.checkerboard() warped = warp_polar(image)✓
warped = warp_polar(image, scaling='log')
✓warped = warp_polar(image, (100,100), radius=100, output_shape=image.shape, scaling='log')✓
image = data.astronaut() warped = warp_polar(image, scaling='log', channel_axis=-1)✓
Aliases
-
skimage.transform.warp_polar