phase function

Mat phase(
  1. InputArray x,
  2. InputArray y, {
  3. OutputArray? angle,
  4. bool angleInDegrees = false,
})

Phase calculates the rotation angle of 2D vectors.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga9db9ca9b4d81c3bde5677b8f64dc0137

Implementation

Mat phase(InputArray x, InputArray y, {OutputArray? angle, bool angleInDegrees = false}) {
  angle ??= Mat.empty();
  cvRun(() => ccore.Mat_Phase(x.ref, y.ref, angle!.ref, angleInDegrees));
  return angle;
}