GFTTDetector.create1 constructor

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

Implementation

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