createAsync static method
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<cfeatures2d.ORB>())),
);