createAsync static method

Future<FastFeatureDetector> createAsync({
  1. int threshold = 10,
  2. bool nonmaxSuppression = true,
  3. FastFeatureDetectorType type = FastFeatureDetectorType.TYPE_9_16,
})

returns a new FastFeatureDetector algorithm with parameters

For further details, please see: https://docs.opencv.org/master/df/d74/classcv_1_1FastFeatureDetector.html#ab986f2ff8f8778aab1707e2642bc7f8e

Implementation

static Future<FastFeatureDetector> createAsync({
  int threshold = 10,
  bool nonmaxSuppression = true,
  FastFeatureDetectorType type = FastFeatureDetectorType.TYPE_9_16,
}) async =>
    cvRunAsync(
      (callback) => cffi.FastFeatureDetector_CreateWithParams_Async(
        threshold,
        nonmaxSuppression,
        type.value,
        callback,
      ),
      (c, p) => c.complete(FastFeatureDetector.fromPointer(p.cast<cvg.FastFeatureDetector>())),
    );