CvInvokeEstimateAffine3D Method (MCvPoint3D32f, MCvPoint3D32f, MatrixDouble, Byte, Double, Double) |
http://www.emgu.com
Computes an optimal affine transformation between two 3D point sets.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static int EstimateAffine3D(
MCvPoint3D32f[] src,
MCvPoint3D32f[] dst,
out Matrix<double> estimate,
out byte[] inliers,
double ransacThreshold,
double confidence
)
Public Shared Function EstimateAffine3D (
src As MCvPoint3D32f(),
dst As MCvPoint3D32f(),
<OutAttribute> ByRef estimate As Matrix(Of Double),
<OutAttribute> ByRef inliers As Byte(),
ransacThreshold As Double,
confidence As Double
) As Integer
public:
static int EstimateAffine3D(
array<MCvPoint3D32f>^ src,
array<MCvPoint3D32f>^ dst,
[OutAttribute] Matrix<double>^% estimate,
[OutAttribute] array<unsigned char>^% inliers,
double ransacThreshold,
double confidence
)
static member EstimateAffine3D :
src : MCvPoint3D32f[] *
dst : MCvPoint3D32f[] *
estimate : Matrix<float> byref *
inliers : byte[] byref *
ransacThreshold : float *
confidence : float -> int
Parameters
- src
- Type: Emgu.CV.StructureMCvPoint3D32f
First input 3D point set. - dst
- Type: Emgu.CV.StructureMCvPoint3D32f
Second input 3D point set. - estimate
- Type: Emgu.CVMatrixDouble
Output 3D affine transformation matrix. - inliers
- Type: SystemByte
Output vector indicating which points are inliers. - ransacThreshold
- Type: SystemDouble
Maximum reprojection error in the RANSAC algorithm to consider a point as an inlier. - confidence
- Type: SystemDouble
Confidence level, between 0 and 1, for the estimated transformation. Anything between 0.95 and 0.99 is usually good enough. Values too close to 1 can slow down the estimation significantly. Values lower than 0.8-0.9 can result in an incorrectly estimated transformation.
Return Value
Type:
Int32The result
See Also