polarToCartAsync function
Future<(Mat, Mat)>
polarToCartAsync(
- 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
Future<(Mat x, Mat y)> polarToCartAsync(
InputArray magnitude,
InputArray angle, {
OutputArray? x,
OutputArray? y,
bool angleInDegrees = false,
}) async {
x ??= Mat.empty();
y ??= Mat.empty();
return cvRunAsync0(
(callback) => ccore.cv_polarToCart(magnitude.ref, angle.ref, x!.ref, y!.ref, angleInDegrees, callback),
(c) {
return c.complete((x!, y!));
},
);
}