AgastFeatureDetector.create constructor

AgastFeatureDetector.create({
  1. int threshold = 10,
  2. bool nonmaxSuppression = true,
  3. AgastDetectorType type = AgastDetectorType.OAST_9_16,
})

create (int threshold=10, bool nonmaxSuppression=true, AgastFeatureDetector::DetectorType type=AgastFeatureDetector::OAST_9_16)

https://docs.opencv.org/4.x/d7/d19/classcv_1_1AgastFeatureDetector.html#ae1987fb24e86701236773dfa7f6dabee

Implementation

factory AgastFeatureDetector.create({
  int threshold = 10,
  bool nonmaxSuppression = true,
  AgastDetectorType type = AgastDetectorType.OAST_9_16,
}) {
  final p = calloc<cvg.AgastFeatureDetector>();
  cvRun(() => cfeatures2d.cv_AgastFeatureDetector_create_1(threshold, nonmaxSuppression, type.value, p));
  return AgastFeatureDetector._(p);
}