sqrtAsync method

Future<Mat> sqrtAsync()

Calculates a square root of array elements.

Implementation

Future<Mat> sqrtAsync() async {
  cvAssert(type.depth == MatType.CV_32F || type.depth == MatType.CV_64F);
  final dst = Mat.empty();
  return cvRunAsync0<Mat>((callback) => ccore.cv_Mat_sqrt(ref, dst.ref, callback), (c) => c.complete(dst));
}