File MatrixUtils.h¶
FileList > src > utils > MatrixUtils.h
Go to the source code of this file
#include <opencv2/opencv.hpp>
#include <glm/glm.hpp>
Public Functions¶
Type | Name |
---|---|
cv::Vec4f | ConvertRotationMatrixToQuaternion (cv::Mat R) Convert a rotation matrix to a quaternion. |
void | ConvertTransMatToTvecAndQvec (cv::Matx44f transMat, cv::Vec3f & tvec, cv::Vec4f & qvec) Convert a Transformation matrix to a translation vector and a quaternion vector. |
void | CvtCvMat2GlmMat (const cv::Mat & cvMat, glm::mat4 & glmMat) |
void | CvtCvMat2GlmMat (const cv::Mat & cvMat, glm::mat3 & glmMat) |
void | CvtGlmMat2CvMat (const glm::mat4 & glmMat, cv::Mat & cvMat) |
Public Functions Documentation¶
function ConvertRotationMatrixToQuaternion¶
Convert a rotation matrix to a quaternion.
Parameters:
R
The rotation matrix
Returns:
cv::Vec4f The quaternion
function ConvertTransMatToTvecAndQvec¶
Convert a Transformation matrix to a translation vector and a quaternion vector.
inline void ConvertTransMatToTvecAndQvec (
cv::Matx44f transMat,
cv::Vec3f & tvec,
cv::Vec4f & qvec
)
Parameters:
transMat
cv::Mat4x4 The transformation matrixtvec
cv::Vec3f The output of the translation vectorqvec
cv::Vec4f The output of the quaternion vector
Returns:
empty
function CvtCvMat2GlmMat¶
function CvtCvMat2GlmMat¶
function CvtGlmMat2CvMat¶
The documentation for this class was generated from the following file src/utils/MatrixUtils.h