estimateAffine3DAsync function
Computes an optimal affine transformation between two 3D point sets.
https://docs.opencv.org/4.11.0/d9/d0c/group__calib3d.html#gac12d1f05b3bb951288e7250713ce98f0
Implementation
Future<(int rval, Mat, Mat inliers)> estimateAffine3DAsync(
Mat src,
Mat dst, {
Mat? out,
Mat? inliers,
double ransacThreshold = 3,
double confidence = 0.99,
}) async {
out ??= Mat.empty();
inliers ??= Mat.empty();
final p = calloc<ffi.Int>();
return cvRunAsync0(
(callback) => ccalib3d.cv_estimateAffine3D_1(
src.ref,
dst.ref,
out!.ref,
inliers!.ref,
ransacThreshold,
confidence,
p,
callback,
), (c) {
final rval = p.value;
calloc.free(p);
return c.complete((rval, out!, inliers!));
});
}