Remaps an image to polar space
dst = cv.linearPolar(src, center, maxRadius)
dst = cv.linearPolar(..., 'OptionName',optionValue, ...)
Input
- src Source image.
- center The transformation center.
- maxRadius Inverse magnitude scale parameter.
Output
- dst Destination image, same size and type as
src
.
Options
- Interpolation Interpolation method, default 'Linear'. One of:
- Nearest nearest neighbor interpolation
- Linear bilinear interpolation
- Cubic bicubic interpolation
- Lanczos4 Lanczos interpolation over 8x8 neighborhood
- FillOutliers flag, fills all of the destination image pixels. If some
of them correspond to outliers in the source image, they are set to
zero. default true
- InverseMap flag, inverse transformation, default false. For example,
polar transforms:
- flag is not set: Forward transformation
dst(phi,rho) = src(x,y)
- flag is set: Inverse transformation
dst(x,y) = src(phi,rho)
Transforms the source image using the following transformation:
dst(phi,rho) = src(x,y)
where:
rho = (size(src,2) / maxRadius) * sqrt(x^2 + y^2)
phi = atan(y/x)