Method | Description | |
---|---|---|
CoplanarPosit ( Vector3 model, float focalLength ) : System |
Initializes a new instance of the Posit class.
|
|
EstimatePose ( Point points, AForge.Math.Matrix3x3 &rotation, Vector3 &translation ) : void |
Estimate pose of a model from it's projected 2D coordinates. Because of the Coplanar POSIT algorithm's nature, it provides two pose estimations, which are valid from the algorithm's math point of view. For each pose an error is calculated, which specifies how good estimation fits to the specified real 2D coordinated. The method provides the best estimation through its output parameters rotation and translation. This may be enough for many of the pose estimation application. For those, who require checking the alternate pose estimation, it can be obtained using AlternateEstimatedRotation and AlternateEstimatedTranslation properties. The calculated error is provided for both estimations through BestEstimationError and AlternateEstimationError properties. |
Method | Description | |
---|---|---|
GetError ( Point imagePoints, AForge.Math.Matrix3x3 rotation, Vector3 translation ) : float | ||
Iterate ( Point points, AForge.Math.Matrix3x3 &rotation, Vector3 &translation ) : float | ||
POS ( Point imagePoints, Vector3 eps, AForge.Math.Matrix3x3 &rotation1, AForge.Math.Matrix3x3 &rotation2, Vector3 &translation1, Vector3 &translation2 ) : void |
public CoplanarPosit ( Vector3 model, float focalLength ) : System | ||
model | Vector3 | Array of vectors containing coordinates of four real model's point. |
focalLength | float | Effective focal length of the camera used to capture the model. |
return | System |
public EstimatePose ( Point points, AForge.Math.Matrix3x3 &rotation, Vector3 &translation ) : void | ||
points | Point | 4 2D points of the |
rotation | AForge.Math.Matrix3x3 | Gets best estimation of object's rotation. |
translation | Vector3 | Gets best estimation of object's translation. |
return | void |