createAsync static method

Future<ORB> createAsync({
  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

static Future<ORB> createAsync({
  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,
}) async =>
    cvRunAsync(
      (callback) => cfeatures2d.ORB_CreateWithParams_Async(
        nFeatures,
        scaleFactor,
        nLevels,
        edgeThreshold,
        firstLevel,
        WTA_K,
        scoreType.value,
        patchSize,
        fastThreshold,
        callback,
      ),
      (c, p) => c.complete(ORB.fromPointer(p.cast<cvg.ORB>())),
    );