| Cv2PolarToCart Method |
Calculates x and y coordinates of 2D vectors from their magnitude and angle.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void PolarToCart(
InputArray magnitude,
InputArray angle,
OutputArray x,
OutputArray y,
bool angleInDegrees = false
)
Public Shared Sub PolarToCart (
magnitude As InputArray,
angle As InputArray,
x As OutputArray,
y As OutputArray,
Optional angleInDegrees As Boolean = false
)
public:
static void PolarToCart(
InputArray^ magnitude,
InputArray^ angle,
OutputArray^ x,
OutputArray^ y,
bool angleInDegrees = false
)
static member PolarToCart :
magnitude : InputArray *
angle : InputArray *
x : OutputArray *
y : OutputArray *
?angleInDegrees : bool
(* Defaults:
let _angleInDegrees = defaultArg angleInDegrees false
*)
-> unit
Parameters
- magnitude
- Type: OpenCvSharpInputArray
input floating-point array of magnitudes of 2D vectors;
it can be an empty matrix(=Mat()), in this case, the function assumes that all the magnitudes are = 1; if it is not empty,
it must have the same size and type as angle. - angle
- Type: OpenCvSharpInputArray
input floating-point array of angles of 2D vectors. - x
- Type: OpenCvSharpOutputArray
output array of x-coordinates of 2D vectors; it has the same size and type as angle. - y
- Type: OpenCvSharpOutputArray
output array of y-coordinates of 2D vectors; it has the same size and type as angle. - angleInDegrees (Optional)
- Type: SystemBoolean
when true, the input angles are measured in degrees, otherwise, they are measured in radians.
See Also