CvInvokeCartToPolar Method |
http://www.emgu.com
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: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void CartToPolar(
IInputArray x,
IInputArray y,
IOutputArray magnitude,
IOutputArray angle,
bool angleInDegrees = false
)
Public Shared Sub CartToPolar (
x As IInputArray,
y As IInputArray,
magnitude As IOutputArray,
angle As IOutputArray,
Optional angleInDegrees As Boolean = false
)
public:
static void CartToPolar(
IInputArray^ x,
IInputArray^ y,
IOutputArray^ magnitude,
IOutputArray^ angle,
bool angleInDegrees = false
)
static member CartToPolar :
x : IInputArray *
y : IInputArray *
magnitude : IOutputArray *
angle : IOutputArray *
?angleInDegrees : bool
(* Defaults:
let _angleInDegrees = defaultArg angleInDegrees false
*)
-> unit
Parameters
- x
- Type: Emgu.CVIInputArray
Array of x-coordinates; this must be a single-precision or double-precision floating-point array. - y
- Type: Emgu.CVIInputArray
Array of y-coordinates, that must have the same size and same type as x. - magnitude
- Type: Emgu.CVIOutputArray
Output array of magnitudes of the same size and type as x. - angle
- 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