| Cv2CartToPolar Method |
Calculates the magnitude and angle of 2D vectors.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void CartToPolar(
InputArray x,
InputArray y,
OutputArray magnitude,
OutputArray angle,
bool angleInDegrees = false
)
Public Shared Sub CartToPolar (
x As InputArray,
y As InputArray,
magnitude As OutputArray,
angle As OutputArray,
Optional angleInDegrees As Boolean = false
)
public:
static void CartToPolar(
InputArray^ x,
InputArray^ y,
OutputArray^ magnitude,
OutputArray^ angle,
bool angleInDegrees = false
)
static member CartToPolar :
x : InputArray *
y : InputArray *
magnitude : OutputArray *
angle : OutputArray *
?angleInDegrees : bool
(* Defaults:
let _angleInDegrees = defaultArg angleInDegrees false
*)
-> unit
Parameters
- x
- Type: OpenCvSharpInputArray
array of x-coordinates; this must be a single-precision or double-precision floating-point array. - y
- Type: OpenCvSharpInputArray
array of y-coordinates, that must have the same size and same type as x. - magnitude
- Type: OpenCvSharpOutputArray
output array of magnitudes of the same size and type as x. - angle
- Type: OpenCvSharpOutputArray
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