estimateAffinePartial2D function
(Mat, Mat)
estimateAffinePartial2D(
- VecPoint2f from,
- VecPoint2f to, {
- int method = RANSAC,
- double ransacReprojThreshold = 3,
- int maxIters = 2000,
- double confidence = 0.99,
- int refineIters = 10,
- OutputArray? inliers,
Implementation
(Mat, Mat inliers) estimateAffinePartial2D(
VecPoint2f from,
VecPoint2f to, {
int method = RANSAC,
double ransacReprojThreshold = 3,
int maxIters = 2000,
double confidence = 0.99,
int refineIters = 10,
OutputArray? inliers,
}) {
inliers ??= Mat.empty();
final p = calloc<ccalib3d.Mat>();
cvRun(
() => ccalib3d.EstimateAffinePartial2DWithParams(
from.ref,
to.ref,
inliers!.ref,
method,
ransacReprojThreshold,
maxIters,
confidence,
refineIters,
p,
),
);
return (Mat.fromPointer(p), inliers);
}