ORB.create constructor

ORB.create({
  1. int nFeatures = 500,
  2. double scaleFactor = 1.2,
  3. int nLevels = 8,
  4. int edgeThreshold = 31,
  5. int firstLevel = 0,
  6. int WTA_K = 2,
  7. ORBScoreType scoreType = ORBScoreType.HARRIS_SCORE,
  8. int patchSize = 31,
  9. int fastThreshold = 20,
})

NewORBWithParams returns a new ORB algorithm with parameters

For further details, please see: https://docs.opencv.org/master/db/d95/classcv_1_1ORB.html#aeff0cbe668659b7ca14bb85ff1c4073b

Implementation

factory ORB.create({
  int nFeatures = 500,
  double scaleFactor = 1.2,
  int nLevels = 8,
  int edgeThreshold = 31,
  int firstLevel = 0,
  int WTA_K = 2,
  ORBScoreType scoreType = ORBScoreType.HARRIS_SCORE,
  int patchSize = 31,
  int fastThreshold = 20,
}) {
  final p = calloc<cvg.ORB>();
  cvRun(
    () => cffi.ORB_CreateWithParams(
      nFeatures,
      scaleFactor,
      nLevels,
      edgeThreshold,
      firstLevel,
      WTA_K,
      scoreType.value,
      patchSize,
      fastThreshold,
      p,
    ),
  );
  return ORB._(p);
}