public static int EstimateAffine3D(InputArray src, InputArray dst,
OutputArray outVal, OutputArray inliers,
double ransacThreshold = 3, double confidence = 0.99)
{
if (src == null)
throw new ArgumentNullException(nameof(src));
if (dst == null)
throw new ArgumentNullException(nameof(dst));
if (outVal == null)
throw new ArgumentNullException(nameof(outVal));
if (inliers == null)
throw new ArgumentNullException(nameof(inliers));
src.ThrowIfDisposed();
dst.ThrowIfDisposed();
outVal.ThrowIfNotReady();
inliers.ThrowIfNotReady();
int ret = NativeMethods.calib3d_estimateAffine3D(
src.CvPtr, dst.CvPtr, outVal.CvPtr, inliers.CvPtr, ransacThreshold, confidence);
outVal.Fix();
inliers.Fix();
return ret;
}
}