detectAndComputeAsync method
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 =>
cvRunAsync2<(VecKeyPoint, Mat)>(
(callback) => cfeatures2d.ORB_DetectAndCompute_Async(
ref,
src.ref,
mask.ref,
callback,
),
(c, keypoints, desc) => c.complete(
(
VecKeyPoint.fromPointer(keypoints.cast<cfeatures2d.VecKeyPoint>()),
Mat.fromPointer(desc.cast<cfeatures2d.Mat>()),
),
),
);