cartToPolarAsync function
Future<(Mat, Mat)>
cartToPolarAsync(
- InputArray x,
- InputArray y, {
- OutputArray? magnitude,
- OutputArray? angle,
- bool angleInDegrees = false,
CartToPolar calculates the magnitude and angle of 2D vectors.
For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#gac5f92f48ec32cacf5275969c33ee837d
Implementation
Future<(Mat magnitude, Mat angle)> cartToPolarAsync(
InputArray x,
InputArray y, {
OutputArray? magnitude,
OutputArray? angle,
bool angleInDegrees = false,
}) async {
magnitude ??= Mat.empty();
angle ??= Mat.empty();
return cvRunAsync0(
(callback) => ccore.cv_cartToPolar(x.ref, y.ref, magnitude!.ref, angle!.ref, angleInDegrees, callback),
(c) {
return c.complete((magnitude!, angle!));
},
);
}