cv.linearPolar - MATLAB File Help
cv.linearPolar

Remaps an image to polar coordinates space

dst = cv.linearPolar(src, center, maxRadius)
dst = cv.linearPolar(..., 'OptionName',optionValue, ...)

Input

Output

Options

Transform the source image using the following transformation:

dst(rho,phi) = src(x,y)
size(dst) <- size(src)

where:

I = (dx,dy) = (x-center(2), y-center(1))
rho = Kx * magnitude(I)
phi = Ky * angle(I)_{0..360 deg}

and:

Kx = size(src,2) / maxRadius
Ky = size(src,1) / 360

Polar remaps reference:

image

Note: To calculate magnitude and angle in degrees, cv.cartToPolar is used internally thus angles are measured from 0 to 360 with accuracy about 0.3 degrees.

See also