Public Member Functions |
void | GetMatrix (CvMat *mat) const |
void | GetMatrixGL (double gl[16], bool mirror=true) |
| Get the transformation matrix representation of the Pose using OpenGL's transposed format. Note, that by default this also mirrors both the y- and z-axis (see Camera and Pose for more information)
|
void | GetTranslation (CvMat *tra) const |
void | Invert () |
void | Mirror (bool x, bool y, bool z) |
Pose & | operator= (const Pose &p) |
void | Output () const |
| Pose () |
| Pose (CvMat *tra, CvMat *rot, RotationType t) |
| Pose (CvMat *mat) |
| Pose (const Pose &p) |
void | Reset () |
void | SetMatrix (const CvMat *mat) |
void | SetMatrixGL (double gl[16], bool mirror=true) |
| Set the Pose using OpenGL's transposed format. Note, that by default this also mirrors both the y- and z-axis (see Camera and Pose for more information)
|
void | SetTranslation (const CvMat *tra) |
void | SetTranslation (const double *tra) |
void | SetTranslation (const double x, const double y, const double z) |
void | Transpose () |
Public Attributes |
double | translation [4] |
CvMat | translation_mat |
Pose representation derived from the Rotation class
The rotation part of the transformation is handled by Rotation . The translation part is stored internally using homogeneous 4-vector.
Internally in ALVAR we assume coordinate system where 'x' is right, 'y' is down, and 'z' is forward. However the SetMatrixGL and GetMatrixGL change the pose to support coordinates commonly used in OpenGL: 'x' is right, 'y' is up, and 'z' is backward.
- Examples:
- SampleCamCalib.cpp, SampleMarkerCreator.cpp, SampleMarkerDetector.cpp, SampleMarkerHide.cpp, SampleMarkerlessDetector.cpp, SampleMultiMarker.cpp, SampleMultiMarkerBundle.cpp, and SamplePointcloud.cpp.
Definition at line 50 of file Pose.h.