detectAsync method

Future<VecKeyPoint> detectAsync(
  1. Mat src, {
  2. VecKeyPoint? keypoints,
  3. Mat? mask,
})

Detect keypoints in an image using SimpleBlobDetector.

For further details, please see: https://docs.opencv.org/master/d0/d13/classcv_1_1Feature2D.html#aa4e9a7082ec61ebc108806704fbd7887

Implementation

Future<VecKeyPoint> detectAsync(Mat src, {VecKeyPoint? keypoints, Mat? mask}) async {
  keypoints ??= VecKeyPoint();
  mask ??= Mat.empty();
  return cvRunAsync0(
    (callback) =>
        cfeatures2d.cv_SimpleBlobDetector_detect(ref, src.ref, keypoints!.ptr, mask!.ref, callback),
    (c) {
      return c.complete(keypoints);
    },
  );
}