Table of Contents

Method WarpPolar

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

WarpPolar(InputArray, OutputArray, Size, Point2f, double, InterpolationFlags, WarpPolarMode)

Remaps an image to polar or semilog-polar coordinates space.

public static void WarpPolar(InputArray src, OutputArray dst, Size dsize, Point2f center, double maxRadius, InterpolationFlags interpolationFlags, WarpPolarMode warpPolarMode)

Parameters

src InputArray

Source image.

dst OutputArray

Destination image. It will have same type as src.

dsize Size

The destination image size (see description for valid options).

center Point2f

The transformation center.

maxRadius double

The radius of the bounding circle to transform. It determines the inverse magnitude scale parameter too.

interpolationFlags InterpolationFlags

interpolation methods.

warpPolarMode WarpPolarMode

interpolation methods.

Remarks

  • The function can not operate in-place.
  • To calculate magnitude and angle in degrees #cartToPolar is used internally thus angles are measured from 0 to 360 with accuracy about 0.3 degrees.
  • This function uses #remap. Due to current implementation limitations the size of an input and output images should be less than 32767x32767.