detectAndComputeAsync method

Future<(VecKeyPoint, Mat)> detectAndComputeAsync(
  1. Mat src,
  2. Mat mask
)

DetectAndCompute keypoints and compute in an image using ORB.

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

Implementation

Future<(VecKeyPoint, Mat)> detectAndComputeAsync(Mat src, Mat mask) async {
  final pdesc = calloc<cvg.Mat>();
  final ret = calloc<cvg.VecKeyPoint>();
  return cvRunAsync0(
    (callback) => cfeatures2d.cv_ORB_detectAndCompute(ref, src.ref, mask.ref, pdesc, ret, callback),
    (c) {
      return c.complete((VecKeyPoint.fromPointer(ret), Mat.fromPointer(pdesc)));
    },
  );
}