Click or drag to resize

CvInvokeCartToPolar Method
Calculates the magnitude and angle of 2D vectors. magnitude(I)=sqrt( x(I)^2+y(I)^2 ), angle(I)=atan2( y(I)/x(I) ) The angles are calculated with accuracy about 0.3 degrees. For the point (0,0), the angle is set to 0.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static void CartToPolar(
	IInputArray x,
	IInputArray y,
	IOutputArray magnitude,
	IOutputArray angle,
	bool angleInDegrees = false


Type: Emgu.CVIInputArray
Array of x-coordinates; this must be a single-precision or double-precision floating-point array.
Type: Emgu.CVIInputArray
Array of y-coordinates, that must have the same size and same type as x.
Type: Emgu.CVIOutputArray
Output array of magnitudes of the same size and type as x.
Type: Emgu.CVIOutputArray
Output array of angles that has the same size and type as x; the angles are measured in radians (from 0 to 2*Pi) or in degrees (0 to 360 degrees).
angleInDegrees (Optional)
Type: SystemBoolean
A flag, indicating whether the angles are measured in radians (which is by default), or in degrees.
See Also