25 #include <Geometry/SimilarityTransform.hh>
26 #include <MathAlgo/SVD.hh>
27 #include <Base/Geometry/RMatrixBase.hh>
30 #include <Base/Math/Matrix3x4.hh>
37 Load(
const std::string& inputFile)
39 ifstream ifs(inputFile.c_str());
52 Save(
const std::string& outputFile)
54 ofstream ofs(outputFile.c_str());
69 cout<<
"Translation:"<<C_<<endl;
73 cout<<
"Rotation Matrix: "<<R<<endl;
79 cout<<
" axis = "<<axis<<endl;
80 cout<<
"angle = "<<angle<<endl<<endl;
81 cout<<
"Matrix representation:"<<GetTransformMatrix()<<endl;
91 for (
unsigned int r = 0; r < 3; r++)
92 for (
unsigned int c = 0; c < 3; c++)
93 result[r][c]= R[r][c];
int SetFromQuaternion(const Quaternion< ROTATION_MATRIX_TYPE > &q)
Set rotation matrix from a quaternion.
Implements a 3D rotation matrix.
int GetRotationAxisAngle(Vector3< ROTATION_MATRIX_TYPE > &axis, ROTATION_MATRIX_TYPE &angle) const
Calculates angle and rotation axis representation for this rotation matrix.