Method EstimateTranslation3D
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
EstimateTranslation3D(InputArray, InputArray, OutputArray, OutputArray, double, double)
Computes an optimal translation between two 3D point sets using RANSAC.
public static bool EstimateTranslation3D(InputArray src, InputArray dst, OutputArray outVal, OutputArray inliers, double ransacThreshold = 3, double confidence = 0.99)
Parameters
srcInputArrayFirst input 3D point set.
dstInputArraySecond input 3D point set.
outValOutputArrayOutput 3D translation vector (3x1).
inliersOutputArrayOutput vector indicating which points are inliers.
ransacThresholddoubleMaximum reprojection error in the RANSAC algorithm to consider a point as an inlier.
confidencedoubleConfidence level, between 0 and 1.
Returns
- bool
True if a translation was found.