Static Public Member Functions
DUtilsCV::Transformations Class Reference

#include <Transformations.h>

List of all members.

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)

Detailed Description

Definition at line 31 of file Transformations.h.


Member Function Documentation

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

Parameters:
R3x3 rotation matrix or 1x3 or 3x1 rotation vector (Rodrigues format)
t3x1 or 1x3 or 4x1 or 1x4 translation vector
Returns:
4x4 matrix

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

Parameters:
T4x4 transformation matrix
R3x3 rotation matrix
t4x1 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

Parameters:
aTb
Returns:
bTa

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

Parameters:
axisaxis of the rotation
thetaangle 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

Parameters:
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

Parameters:
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

Parameters:
theta

Definition at line 59 of file Transformations.cpp.

cv::Mat Transformations::transl ( double  X,
double  Y,
double  Z 
) [static]

Creates a translational transform

Parameters:
X
Y
Z
Returns:
transformation with the given translation

Definition at line 73 of file Transformations.cpp.


The documentation for this class was generated from the following files:


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:29