#include <Transformations.h>
Static Public Member Functions | |
static cv::Mat | composeRt (const cv::Mat &R, const cv::Mat &t) |
static void | decomposeRt (const cv::Mat &T, cv::Mat &R, cv::Mat &t) |
static cv::Mat | inv (const cv::Mat &aTb) |
static cv::Mat | rotvec (const cv::Mat &axis, double theta) |
static cv::Mat | rotx (double theta, double X=0, double Y=0, double Z=0) |
static cv::Mat | roty (double theta, double X=0, double Y=0, double Z=0) |
static cv::Mat | rotz (double theta, double X=0, double Y=0, double Z=0) |
static cv::Mat | transl (double X, double Y, double Z) |
Definition at line 31 of file Transformations.h.
cv::Mat Transformations::composeRt | ( | const cv::Mat & | R, |
const cv::Mat & | t | ||
) | [static] |
Returns a 4x4 transformation matrix composed of the given rotation and translation
R | 3x3 rotation matrix or 1x3 or 3x1 rotation vector (Rodrigues format) |
t | 3x1 or 1x3 or 4x1 or 1x4 translation vector |
Definition at line 167 of file Transformations.cpp.
void Transformations::decomposeRt | ( | const cv::Mat & | T, |
cv::Mat & | R, | ||
cv::Mat & | t | ||
) | [static] |
Decomposes a 4x4 transformation matrix into a rotation and a translation
T | 4x4 transformation matrix |
R | 3x3 rotation matrix |
t | 4x1 or 3x1 translation vector. If the given size of t is 4x1 or 3x1, then it is kept. If not, a 4x1 vector is returned |
Definition at line 236 of file Transformations.cpp.
cv::Mat Transformations::inv | ( | const cv::Mat & | aTb | ) | [static] |
Returns the inverse of a transformation
aTb |
Definition at line 135 of file Transformations.cpp.
cv::Mat Transformations::rotvec | ( | const cv::Mat & | axis, |
double | theta | ||
) | [static] |
Returns the transformation matrix of a generic rotation
axis | axis of the rotation |
theta | angle of rotation in radians |
Definition at line 84 of file Transformations.cpp.
cv::Mat Transformations::rotx | ( | double | theta, |
double | X = 0 , |
||
double | Y = 0 , |
||
double | Z = 0 |
||
) | [static] |
Returns the transformation matrix of a rotation around the x axis
theta |
Definition at line 31 of file Transformations.cpp.
cv::Mat Transformations::roty | ( | double | theta, |
double | X = 0 , |
||
double | Y = 0 , |
||
double | Z = 0 |
||
) | [static] |
Returns the transformation matrix of a rotation around the y axis
theta |
Definition at line 45 of file Transformations.cpp.
cv::Mat Transformations::rotz | ( | double | theta, |
double | X = 0 , |
||
double | Y = 0 , |
||
double | Z = 0 |
||
) | [static] |
Returns the transformation matrix of a rotation around the z axis
theta |
Definition at line 59 of file Transformations.cpp.
cv::Mat Transformations::transl | ( | double | X, |
double | Y, | ||
double | Z | ||
) | [static] |
Creates a translational transform
X | |
Y | |
Z |
Definition at line 73 of file Transformations.cpp.