FastFeatureDetector.create constructor

FastFeatureDetector.create({
  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

factory FastFeatureDetector.create({
  int threshold = 10,
  bool nonmaxSuppression = true,
  FastFeatureDetectorType type = FastFeatureDetectorType.TYPE_9_16,
}) {
  final p = calloc<cvg.FastFeatureDetector>();
  cvRun(() => cfeatures2d.cv_FastFeatureDetector_create_1(threshold, nonmaxSuppression, type.value, p));
  return FastFeatureDetector._(p);
}