CvInvokeCartToPolar Method |
http://www.emgu.com
Calculates either magnitude, angle, or both of every 2d vector (x(I),y(I)):
magnitude(I)=sqrt( x(I)2+y(I)2 ),
angle(I)=atan( y(I)/x(I) )
The angles are calculated with ~0.1 degree accuracy. For (0,0) point the angle is set to 0
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
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
The array of x-coordinates - y
- Type: Emgu.CVIInputArray
The array of y-coordinates - magnitude
- Type: Emgu.CVIOutputArray
The destination array of magnitudes, may be set to IntPtr.Zero if it is not needed - angle
- Type: Emgu.CVIOutputArray
The destination array of angles, may be set to IntPtr.Zero if it is not needed. The angles are measured in radians (0..2?) or in degrees (0..360?). - angleInDegrees (Optional)
- Type: SystemBoolean
The flag indicating whether the angles are measured in radians or in degrees
See Also