cartToPolarAsync function
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, {
bool angleInDegrees = false,
}) async =>
cvRunAsync2<(Mat, Mat)>(
(callback) => cffi.core_CartToPolar_Async(
x.ref,
y.ref,
angleInDegrees,
callback,
),
matCompleter2,
);