Remaps an image to log-polar space
dst = cv.logPolar(src, center, M)
dst = cv.logPolar(..., 'OptionName',optionValue, ...)
Input
- src Source image.
- center The transformation center; where the output precision is
maximal.
- M 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 = M * log(sqrt(x^2 + y^2))
phi = atan(y/x)
The function emulates the human "foveal" vision and can be used for fast
scale and rotation-invariant template matching, for object tracking and so
forth.