estimateAffinePartial2DAsync function
Future<(Mat, Mat)>
estimateAffinePartial2DAsync(
- VecPoint2f from,
- VecPoint2f to, {
- int method = RANSAC,
- double ransacReprojThreshold = 3,
- int maxIters = 2000,
- double confidence = 0.99,
- int refineIters = 10,
- OutputArray? inliers,
Implementation
Future<(Mat, Mat inliers)> estimateAffinePartial2DAsync(
VecPoint2f from,
VecPoint2f to, {
int method = RANSAC,
double ransacReprojThreshold = 3,
int maxIters = 2000,
double confidence = 0.99,
int refineIters = 10,
OutputArray? inliers,
}) async {
inliers ??= Mat.empty();
final rval = Mat.empty();
return cvRunAsync0(
(callback) => ccalib3d.cv_estimateAffine2D_1(
from.ref,
to.ref,
inliers!.ref,
method,
ransacReprojThreshold,
maxIters,
confidence,
refineIters,
rval.ptr,
callback,
),
(c) => c.complete((rval, inliers!)),
);
}