cartToPolarAsync function

Future<(Mat, Mat)> cartToPolarAsync(
  1. InputArray x,
  2. InputArray y, {
  3. 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, {
  bool angleInDegrees = false,
}) async =>
    cvRunAsync2<(Mat, Mat)>(
      (callback) => ccore.core_CartToPolar_Async(
        x.ref,
        y.ref,
        angleInDegrees,
        callback,
      ),
      matCompleter2,
    );