Class PositObject
Represents information about a 3D object model for camera pose estimation.
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public class PositObject : SafeHandleZeroOrMinusOneIsInvalid
Constructors
| Improve this Doc View SourcePositObject(Point3f[])
Initializes a new instance of the PositObject class with the specified 3D object model points.
Declaration
public PositObject(Point3f[] points)
Parameters
Type | Name | Description |
---|---|---|
Point3f[] | points | The points representing the vertices of the 3D model. |
Methods
| Improve this Doc View SourcePOSIT(Point2f[], Double, TermCriteria, Single[], Single[])
Implements the POSIT algorithm.
Declaration
public void POSIT(Point2f[] imagePoints, double focalLength, TermCriteria criteria, float[] rotationMatrix, float[] translationVector)
Parameters
Type | Name | Description |
---|---|---|
Point2f[] | imagePoints | Pointer to the object point projections on the 2D image plane. |
Double | focalLength | Focal length of the camera used. |
TermCriteria | criteria | Termination criteria of the iterative POSIT algorithm. |
Single[] | rotationMatrix | The output rotation matrix representing the estimated pose. |
Single[] | translationVector | The output translation vector representing the estimated pose. |
ReleaseHandle()
Executes the code required to free the native PositObject handle.
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
Boolean | true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. |