http://www.emgu.com
Calculates the magnitude and angle of 2d vectors. Supports only CV_32F and CV_64F data types.

Namespace: Emgu.CV.OpenCL
Assembly: Emgu.CV.OpenCL (in Emgu.CV.OpenCL.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static void CartToPolar(
	IntPtr x,
	IntPtr y,
	IntPtr magnitude,
	IntPtr angle,
	bool angleInDegrees
)
Visual Basic
Public Shared Sub CartToPolar ( 
	x As IntPtr,
	y As IntPtr,
	magnitude As IntPtr,
	angle As IntPtr,
	angleInDegrees As Boolean
)
Visual C++
public:
static void CartToPolar(
	IntPtr x, 
	IntPtr y, 
	IntPtr magnitude, 
	IntPtr angle, 
	bool angleInDegrees
)
F#
static member CartToPolar : 
        x : IntPtr * 
        y : IntPtr * 
        magnitude : IntPtr * 
        angle : IntPtr * 
        angleInDegrees : bool -> unit 

Parameters

x
Type: System..::..IntPtr
The source OclMat of x-coordinates; must be single-precision or double-precision floating-point array
y
Type: System..::..IntPtr
The source OclMat of y-coordinates; it must have the same size and same type as x
magnitude
Type: System..::..IntPtr
The destination array of magnitudes of the same size and same type as x
angle
Type: System..::..IntPtr
The destination array of angles of the same size and same type as x. The angles are measured in radians (0 to 2pi ) or in degrees (0 to 360 degrees).
angleInDegrees
Type: System..::..Boolean
The flag indicating whether the angles are measured in radians, which is default mode, or in degrees

See Also