CvCartToPolar Method (CvArr, CvArr, CvArr, CvArr, AngleUnit) OpenCvSharp Class Library
Calculates magnitude and/or angle of 2d vectors

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void CartToPolar(
	CvArr x,
	CvArr y,
	CvArr magnitude,
	CvArr angle,
	AngleUnit unit
)

Parameters

x
Type: OpenCvSharpCvArr
The array of x-coordinates
y
Type: OpenCvSharpCvArr
The array of y-coordinates
magnitude
Type: OpenCvSharpCvArr
The destination array of magnitudes, may be set to null if it is not needed
angle
Type: OpenCvSharpCvArr
The destination array of angles, may be set to null if it is not needed. The angles are measured in radians (0..2π) or in degrees (0..360°).
unit
Type: OpenCvSharpAngleUnit
The flag indicating whether the angles are measured in radians, which is default mode, or in degrees.
See Also

Reference