You are here: Start » AVL.NET » Function Reference » Computer Vision » HandEyeCalibration Calibration » AVL.EstimateAffine3DTransform
Computes optimal affine transformation between two 3D point sets.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void EstimateAffine3DTransform ( IList<AvlNet.Point3D> inSrcpt, IList<AvlNet.Point3D> inDstpt, float inRansacThreshold, float inConfidence, AvlNet.Matrix outTransform, IList<int> outOutliers, out int outValue )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSrcpt | System.Collections.Generic.IList<AvlNet.Point3D> | List of 3D points in the source coordinate system. | |||
inDstpt | System.Collections.Generic.IList<AvlNet.Point3D> | List of 3D points in the destination coordinate system. | |||
inRansacThreshold | float | 3.0f | Maximum reprojection error in the RANSAC algorithm to consider a point as an inlier. Default value: 3.0f. | ||
inConfidence | float | <0.0f, 1.0f> | 0.99f | 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. Default value: 0.99f. | |
outTransform | AvlNet.Matrix | Estimated affine transformation matrix. | |||
outOutliers | System.Collections.Generic.IList<int> | Output vector indicating which points are outliers (1-inlier, 0-outlier). | |||
outValue | int |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | EstimateAffine3DTransform failed to find a solution. |
DomainError | Input arrays must have at least 4 points in EstimateAffine3DTransform. |
DomainError | Input arrays must have the same number of points in EstimateAffine3DTransform. |