polarToCart function
(Mat, Mat)
polarToCart(
- InputArray magnitude,
- InputArray angle, {
- OutputArray? x,
- OutputArray? y,
- bool angleInDegrees = false,
PolatToCart calculates x and y coordinates of 2D vectors from their magnitude and angle.
For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga581ff9d44201de2dd1b40a50db93d665
Implementation
(Mat x, Mat y) polarToCart(
InputArray magnitude,
InputArray angle, {
OutputArray? x,
OutputArray? y,
bool angleInDegrees = false,
}) {
x ??= Mat.empty();
y ??= Mat.empty();
cvRun(() => ccore.cv_polarToCart(magnitude.ref, angle.ref, x!.ref, y!.ref, angleInDegrees, ffi.nullptr));
return (x, y);
}