GFTTDetector.create constructor

GFTTDetector.create({
  1. int maxFeatures = 1000,
  2. double qualityLevel = 0.01,
  3. double minDistance = 1,
  4. int blockSize = 3,
  5. bool useHarrisDetector = false,
  6. double k = 0.04,
})
CV_WRAP static Ptr<GFTTDetector> create( int maxCorners=1000, double qualityLevel=0.01, double minDistance=1,
int blockSize=3, bool useHarrisDetector=false, double k=0.04 );

Implementation

factory GFTTDetector.create({
  int maxFeatures = 1000,
  double qualityLevel = 0.01,
  double minDistance = 1,
  int blockSize = 3,
  bool useHarrisDetector = false,
  double k = 0.04,
}) {
  final p = calloc<cvg.GFTTDetector>();
  cvRun(
    () => cfeatures2d.cv_GFTTDetector_create_2(
      maxFeatures,
      qualityLevel,
      minDistance,
      blockSize,
      useHarrisDetector,
      k,
      p,
    ),
  );
  return GFTTDetector._(p);
}