![]() |
Visual Servoing Platform version 3.6.0
|
#include <vpHomogeneousMatrix.h>
Public Member Functions | |
| vpHomogeneousMatrix () | |
| vpHomogeneousMatrix (const vpHomogeneousMatrix &M) | |
| vpHomogeneousMatrix (const vpTranslationVector &t, const vpRotationMatrix &R) | |
| vpHomogeneousMatrix (const vpTranslationVector &t, const vpThetaUVector &tu) | |
| vpHomogeneousMatrix (const vpTranslationVector &t, const vpQuaternionVector &q) | |
| vpHomogeneousMatrix (const vpPoseVector &p) | |
| vpHomogeneousMatrix (const std::vector< float > &v) | |
| vpHomogeneousMatrix (const std::vector< double > &v) | |
| vpHomogeneousMatrix (double tx, double ty, double tz, double tux, double tuy, double tuz) | |
| vpHomogeneousMatrix (const std::initializer_list< double > &list) | |
| virtual | ~vpHomogeneousMatrix () |
| void | buildFrom (const vpTranslationVector &t, const vpRotationMatrix &R) |
| void | buildFrom (const vpTranslationVector &t, const vpThetaUVector &tu) |
| void | buildFrom (const vpTranslationVector &t, const vpQuaternionVector &q) |
| void | buildFrom (const vpPoseVector &p) |
| void | buildFrom (const std::vector< float > &v) |
| void | buildFrom (const std::vector< double > &v) |
| void | buildFrom (double tx, double ty, double tz, double tux, double tuy, double tuz) |
| void | convert (std::vector< float > &M) |
| void | convert (std::vector< double > &M) |
| void | eye () |
| vpColVector | getCol (unsigned int j) const |
| vpRotationMatrix | getRotationMatrix () const |
| vpThetaUVector | getThetaUVector () const |
| vpTranslationVector | getTranslationVector () const |
| vpHomogeneousMatrix | inverse () const |
| void | inverse (vpHomogeneousMatrix &Mi) const |
| bool | isAnHomogeneousMatrix (double threshold=1e-6) const |
| bool | isValid () const |
| void | insert (const vpRotationMatrix &R) |
| void | insert (const vpThetaUVector &tu) |
| void | insert (const vpTranslationVector &t) |
| void | insert (const vpQuaternionVector &t) |
| void | extract (vpRotationMatrix &R) const |
| void | extract (vpThetaUVector &tu) const |
| void | extract (vpTranslationVector &t) const |
| void | extract (vpQuaternionVector &q) const |
| void | load (std::ifstream &f) |
| void | save (std::ofstream &f) const |
| vpHomogeneousMatrix & | operator= (const vpHomogeneousMatrix &M) |
| vpHomogeneousMatrix | operator* (const vpHomogeneousMatrix &M) const |
| vpHomogeneousMatrix & | operator*= (const vpHomogeneousMatrix &M) |
| vpColVector | operator* (const vpColVector &v) const |
| vpTranslationVector | operator* (const vpTranslationVector &t) const |
| vpHomogeneousMatrix | operator* (const vpRotationMatrix &R) const |
| vpPoint | operator* (const vpPoint &bP) const |
| vpHomogeneousMatrix & | operator<< (double val) |
| vpHomogeneousMatrix & | operator, (double val) |
| void | orthogonalizeRotation () |
| void | print () const |
| void | resize (unsigned int nrows, unsigned int ncols, bool flagNullify=true) |
Inherited functionalities from vpArray2D | |
| unsigned int | getCols () const |
| double | getMaxValue () const |
| double | getMinValue () const |
| unsigned int | getRows () const |
| unsigned int | size () const |
| void | resize (unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true) |
| void | reshape (unsigned int nrows, unsigned int ncols) |
| void | insert (const vpArray2D< double > &A, unsigned int r, unsigned int c) |
| bool | operator!= (const vpArray2D< double > &A) const |
| double * | operator[] (unsigned int i) |
| vpArray2D< double > | hadamard (const vpArray2D< double > &m) const |
| vpArray2D< double > | t () const |
Static Public Member Functions | |
| static vpHomogeneousMatrix | compute3d3dTransformation (const std::vector< vpPoint > &p, const std::vector< vpPoint > &q) |
| static vpHomogeneousMatrix | mean (const std::vector< vpHomogeneousMatrix > &vec_M) |
Inherited I/O from vpArray2D with Static Public Member Functions | |
| static bool | load (const std::string &filename, vpArray2D< double > &A, bool binary=false, char *header=NULL) |
| static bool | loadYAML (const std::string &filename, vpArray2D< double > &A, char *header=NULL) |
| static bool | save (const std::string &filename, const vpArray2D< double > &A, bool binary=false, const char *header="") |
| static bool | saveYAML (const std::string &filename, const vpArray2D< double > &A, const char *header="") |
| static vpArray2D< double > | conv2 (const vpArray2D< double > &M, const vpArray2D< double > &kernel, const std::string &mode) |
Public Attributes | |
| double * | data |
Static Public Attributes | |
| static const std::string | jsonTypeName = "vpHomogeneousMatrix" |
Protected Attributes | |
| unsigned int | rowNum |
| unsigned int | colNum |
| double ** | rowPtrs |
| unsigned int | dsize |
Friends | |
| void | to_json (nlohmann::json &j, const vpHomogeneousMatrix &cam) |
| void | from_json (const nlohmann::json &j, vpHomogeneousMatrix &T) |
Related Symbols | |
(Note that these are not member symbols.) | |
| bool | operator== (const vpArray2D< double > &A) const |
| bool | operator== (const vpArray2D< float > &A) const |
| void | vpGEMM (const vpArray2D< double > &A, const vpArray2D< double > &B, const double &alpha, const vpArray2D< double > &C, const double &beta, vpArray2D< double > &D, const unsigned int &ops=0) |
| enum | vpGEMMmethod |
Deprecated functions | |
| unsigned int | m_index |
| vp_deprecated void | init () |
| vp_deprecated void | setIdentity () |
Implementation of an homogeneous matrix and operations on such kind of matrices.
The class provides a data structure for the homogeneous matrices as well as a set of operations on these matrices.
The vpHomogeneousMatrix class is derived from vpArray2D<double>.
An homogeneous matrix is 4x4 matrix defines as
![\[^a{\bf M}_b = \left(\begin{array}{cc}
^a{\bf R}_b & ^a{\bf t}_b \\
{\bf 0}_{1\times 3} & 1
\end{array}
\right)
\]](form_105.png)
that defines the position of frame b in frame a


There are different ways to initialize an homogeneous matrix. You can set each element of the matrix like:
It produces the following printings:
You can also use vpRotationMatrix::operator<< and vpTranslationVector::operator<< like:
If ViSP is build with c++11 enabled, you can do the same using:
JSON serialization
Since ViSP 3.6.0, if ViSP is build with JSON for modern C++ 3rd-party we introduce JSON serialization capabilities for vpHomogeneousMatrix. The following sample code shows how to save a homogeneous matrix in a file named homo-mat.json and reload the values from this JSON file.
If you build and execute the sample code, it will produce the following output:
The content of the homo-mat.json file is the following:
Definition at line 200 of file vpHomogeneousMatrix.h.
| vpHomogeneousMatrix::vpHomogeneousMatrix | ( | ) |
Default constructor that initialize an homogeneous matrix as identity.
Definition at line 63 of file vpHomogeneousMatrix.cpp.
References eye(), m_index, and vpArray2D< double >::vpArray2D().
Referenced by compute3d3dTransformation(), from_json, inverse(), inverse(), mean(), operator*(), operator*(), operator*=(), operator,(), operator<<(), operator=(), to_json, and vpHomogeneousMatrix().
| vpHomogeneousMatrix::vpHomogeneousMatrix | ( | const vpHomogeneousMatrix & | M | ) |
Copy constructor that initialize an homogeneous matrix from another homogeneous matrix.
Definition at line 69 of file vpHomogeneousMatrix.cpp.
References m_index, vpArray2D< double >::vpArray2D(), and vpHomogeneousMatrix().
| vpHomogeneousMatrix::vpHomogeneousMatrix | ( | const vpTranslationVector & | t, |
| const vpRotationMatrix & | R ) |
Construct an homogeneous matrix from a translation vector and a rotation matrix.
Definition at line 89 of file vpHomogeneousMatrix.cpp.
References insert(), m_index, vpArray2D< double >::t(), and vpArray2D< double >::vpArray2D().
| vpHomogeneousMatrix::vpHomogeneousMatrix | ( | const vpTranslationVector & | t, |
| const vpThetaUVector & | tu ) |
Construct an homogeneous matrix from a translation vector and 
Definition at line 78 of file vpHomogeneousMatrix.cpp.
References buildFrom(), m_index, vpArray2D< double >::t(), and vpArray2D< double >::vpArray2D().
| vpHomogeneousMatrix::vpHomogeneousMatrix | ( | const vpTranslationVector & | t, |
| const vpQuaternionVector & | q ) |
Construct an homogeneous matrix from a translation vector and quaternion rotation vector.
Definition at line 53 of file vpHomogeneousMatrix.cpp.
References buildFrom(), vpArray2D< double >::t(), and vpArray2D< double >::vpArray2D().
|
explicit |
Construct an homogeneous matrix from a pose vector.
Definition at line 100 of file vpHomogeneousMatrix.cpp.
References buildFrom(), m_index, and vpArray2D< double >::vpArray2D().
|
explicit |
Construct an homogeneous matrix from a vector of float.
| v | : Vector of 12 or 16 values corresponding to the values of the homogeneous matrix. |
The following example shows how to use this function:
It produces the following printings:
Definition at line 145 of file vpHomogeneousMatrix.cpp.
References buildFrom(), m_index, and vpArray2D< double >::vpArray2D().
|
explicit |
Construct an homogeneous matrix from a vector of double.
| v | : Vector of 12 or 16 values corresponding to the values of the homogeneous matrix. |
The following example shows how to use this function:
It produces the following printings:
Definition at line 287 of file vpHomogeneousMatrix.cpp.
References buildFrom(), m_index, and vpArray2D< double >::vpArray2D().
| vpHomogeneousMatrix::vpHomogeneousMatrix | ( | double | tx, |
| double | ty, | ||
| double | tz, | ||
| double | tux, | ||
| double | tuy, | ||
| double | tuz ) |
Construct an homogeneous matrix from a translation vector 

Definition at line 298 of file vpHomogeneousMatrix.cpp.
References buildFrom(), m_index, and vpArray2D< double >::vpArray2D().
| vpHomogeneousMatrix::vpHomogeneousMatrix | ( | const std::initializer_list< double > & | list | ) |
Construct an homogeneous matrix from a list of 12 or 16 double values.
| list | : List of double. The following code shows how to use this constructor to initialize an homogeneous matrix: #include <visp3/core/vpHomogeneousMatrix.h>
int main()
{
#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
0, 0, 1, 0.1,
0, 1, 0, 0.2,
1, 0, 0, 0.3 };
std::cout << "M:\n" << M << std::endl;
0, 0, 1, 0.1,
0, 1, 0, 0.2,
1, 0, 0, 0.3,
0, 0, 0, 1 };
std::cout << "N:\n" << N << std::endl;
#endif
}
Implementation of an homogeneous matrix and operations on such kind of matrices. Definition vpHomogeneousMatrix.h:201 M:
0 0 1 0.1
0 1 0 0.2
1 0 0 0.3
0 0 0 1
N:
0 0 1 0.1
0 1 0 0.2
1 0 0 0.3
0 0 0 1
|
Definition at line 190 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data, vpException::fatalError, m_index, and vpArray2D< double >::vpArray2D().
|
inlinevirtual |
Destructor.
Definition at line 218 of file vpHomogeneousMatrix.h.
| void vpHomogeneousMatrix::buildFrom | ( | const std::vector< double > & | v | ) |
Build an homogeneous matrix from a vector of double.
| v | : Vector of 12 or 16 values corresponding to the values of the homogeneous matrix. |
The following example shows how to use this function:
It produces the following printings:
Definition at line 451 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data, and vpException::dimensionError.
| void vpHomogeneousMatrix::buildFrom | ( | const std::vector< float > & | v | ) |
Build an homogeneous matrix from a vector of float.
| v | : Vector of 12 or 16 values corresponding to the values of the homogeneous matrix. |
The following example shows how to use this function:
It produces the following printings:
Definition at line 401 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data, and vpException::dimensionError.
| void vpHomogeneousMatrix::buildFrom | ( | const vpPoseVector & | p | ) |
Build an homogeneous matrix from a pose vector.
Definition at line 328 of file vpHomogeneousMatrix.cpp.
References insert().
| void vpHomogeneousMatrix::buildFrom | ( | const vpTranslationVector & | t, |
| const vpQuaternionVector & | q ) |
Build an homogeneous matrix from a translation vector and a quaternion rotation vector.
Definition at line 341 of file vpHomogeneousMatrix.cpp.
References insert(), and vpArray2D< double >::t().
| void vpHomogeneousMatrix::buildFrom | ( | const vpTranslationVector & | t, |
| const vpRotationMatrix & | R ) |
Build an homogeneous matrix from a translation vector and a rotation matrix.
Definition at line 319 of file vpHomogeneousMatrix.cpp.
References insert(), and vpArray2D< double >::t().
Referenced by vpMbTracker::initClick(), vpMbTracker::loadCAOModel(), vpWireFrameSimulator::navigation(), vpWireFrameSimulator::navigation(), vpPioneerPan::set_cMe(), vpWireFrameSimulator::setExternalCameraPosition(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), and vpHomogeneousMatrix().
| void vpHomogeneousMatrix::buildFrom | ( | const vpTranslationVector & | t, |
| const vpThetaUVector & | tu ) |
Build an homogeneous matrix from a translation vector and a 
Definition at line 309 of file vpHomogeneousMatrix.cpp.
References insert(), and vpArray2D< double >::t().
| void vpHomogeneousMatrix::buildFrom | ( | double | tx, |
| double | ty, | ||
| double | tz, | ||
| double | tux, | ||
| double | tuy, | ||
| double | tuz ) |
Build an homogeneous matrix from a translation vector 

Definition at line 352 of file vpHomogeneousMatrix.cpp.
References insert(), and vpArray2D< double >::t().
|
static |
Compute the transformation between two point clouds.
| [in] | p | : First point cloud. |
| [in] | q | : Second point cloud. |

Definition at line 1117 of file vpHomogeneousMatrix.cpp.
References vpMatrix::det(), vpMatrix::svd(), vpArray2D< double >::t(), vpMatrix::t(), and vpHomogeneousMatrix().
Referenced by vpPose::computePlanarObjectPoseFromRGBD(), vpPose::computePlanarObjectPoseFromRGBD(), and vpPose::computePlanarObjectPoseWithAtLeast3Points().
|
staticinherited |
Perform a 2D convolution similar to Matlab conv2 function: 
| M | : First matrix. |
| kernel | : Second matrix. |
| mode | : Convolution mode: "full" (default), "same", "valid". |
Definition at line 954 of file vpArray2D.h.
References vpArray2D().
| void vpHomogeneousMatrix::convert | ( | std::vector< double > & | M | ) |
Converts an homogeneous matrix to a vector of 12 doubles.
| M | : Converted matrix. |
Definition at line 1034 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data.
| void vpHomogeneousMatrix::convert | ( | std::vector< float > & | M | ) |
Converts an homogeneous matrix to a vector of 12 floats.
| M | : Converted matrix. |
Definition at line 1023 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data, and vpRowVector::resize().
| void vpHomogeneousMatrix::extract | ( | vpQuaternionVector & | q | ) | const |
Extract the rotation as a quaternion.
Definition at line 818 of file vpHomogeneousMatrix.cpp.
References vpQuaternionVector::buildFrom().
| void vpHomogeneousMatrix::extract | ( | vpRotationMatrix & | R | ) | const |
Extract the rotational matrix from the homogeneous matrix.
| R | : rotational component as a rotation matrix. |
Definition at line 789 of file vpHomogeneousMatrix.cpp.
Referenced by vpFeatureThetaU::buildFrom(), vpPoseVector::buildFrom(), vpThetaUVector::buildFrom(), vpTranslationVector::buildFrom(), vpPose::calculArbreDementhon(), vpMbtDistanceKltPoints::computeHomography(), vpViper::get_eJe(), vpViper::get_fJe(), vpRobotAfma6::getDisplacement(), vpRobotAfma4::getPosition(), vpRobotAfma6::getPosition(), vpRobotViper650::getPosition(), vpRobotViper850::getPosition(), vpSimulatorAfma6::getPosition(), vpSimulatorViper850::getPosition(), getRotationMatrix(), getThetaUVector(), getTranslationVector(), vpRobotAfma6::getVelocity(), vpRobotViper650::getVelocity(), vpRobotViper850::getVelocity(), vpExponentialMap::inverse(), inverse(), isAnHomogeneousMatrix(), operator*(), vpAfma4::operator<<, vpAfma6::operator<<, vpViper::operator<<, vpPose::poseDementhonNonPlan(), vpPose::poseDementhonPlan(), vpPose::poseLowe(), vpWireFrameSimulator::setExternalCameraPosition(), vpMbKltTracker::setPose(), vpAROgre::setPosition(), vpSimulatorAfma6::setPosition(), vpRobotAfma4::setVelocity(), vpFeatureThetaU::vpFeatureThetaU(), and vpTranslationVector::vpTranslationVector().
| void vpHomogeneousMatrix::extract | ( | vpThetaUVector & | tu | ) | const |
Extract the rotation as a 
Definition at line 808 of file vpHomogeneousMatrix.cpp.
References vpThetaUVector::buildFrom().
| void vpHomogeneousMatrix::extract | ( | vpTranslationVector & | t | ) | const |
Extract the translation vector from the homogeneous matrix.
Definition at line 799 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::t().
| void vpHomogeneousMatrix::eye | ( | ) |
Set transformation to identity.
Definition at line 900 of file vpHomogeneousMatrix.cpp.
Referenced by vpHandEyeCalibration::calibrate(), vpViper::get_eMs(), vpViper::get_wMe(), vpMbTracker::initClick(), setIdentity(), and vpHomogeneousMatrix().
| vpColVector vpHomogeneousMatrix::getCol | ( | unsigned int | j | ) | const |
Extract a column vector from an homogeneous matrix.
| j | : Index of the column to extract. If j=0, the first column is extracted. |
The following example shows how to use this function:
It produces the following output:
Definition at line 1100 of file vpHomogeneousMatrix.cpp.
References vpException::dimensionError, vpArray2D< double >::getCols(), and vpArray2D< double >::getRows().
|
inlineinherited |
Return the number of columns of the 2D array.
Definition at line 280 of file vpArray2D.h.
Referenced by vpMatrix::cond(), vpMatrix::cppPrint(), vpRowVector::cppPrint(), vpMatrix::csvPrint(), vpRowVector::csvPrint(), vpMatrix::detByLUEigen3(), vpMatrix::extract(), vpHomogeneousMatrix::getCol(), vpMatrix::getCol(), vpRotationMatrix::getCol(), vpMatrix::inducedL2Norm(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByQRLapack(), vpRotationMatrix::isARotationMatrix(), vpMatrix::kernel(), vpMatrix::maplePrint(), vpRowVector::maplePrint(), vpMatrix::matlabPrint(), vpRowVector::matlabPrint(), vpMatrix::nullSpace(), vpMatrix::nullSpace(), vpRowVector::operator*(), vpRowVector::operator+(), vpRowVector::operator+=(), vpRowVector::operator-(), vpRowVector::operator-=(), vpForceTwistMatrix::print(), vpMatrix::print(), vpRowVector::print(), vpVelocityTwistMatrix::print(), vpMatrix::row(), vpMatrix::svdEigen3(), vpMatrix::svdLapack(), vpMatrix::svdOpenCV(), vpRowVector::vpRowVector(), and vpRowVector::vpRowVector().
|
inherited |
Return the array max value.
Definition at line 282 of file vpArray2D.h.
|
inherited |
Return the array min value.
Definition at line 284 of file vpArray2D.h.
| vpRotationMatrix vpHomogeneousMatrix::getRotationMatrix | ( | ) | const |
Return the rotation matrix from the homogeneous transformation matrix.
Definition at line 1054 of file vpHomogeneousMatrix.cpp.
References extract().
Referenced by vpForceTwistMatrix::buildFrom(), vpVelocityTwistMatrix::buildFrom(), vpRotationMatrix::operator*(), vpRobotBebop2::setPosition(), vpForceTwistMatrix::vpForceTwistMatrix(), and vpVelocityTwistMatrix::vpVelocityTwistMatrix().
|
inlineinherited |
Return the number of rows of the 2D array.
Definition at line 290 of file vpArray2D.h.
Referenced by vpMatrix::column(), vpMatrix::cond(), vpColVector::cppPrint(), vpMatrix::cppPrint(), vpColVector::csvPrint(), vpMatrix::csvPrint(), vpMatrix::detByLUEigen3(), vpMatrix::extract(), vpHomogeneousMatrix::getCol(), vpMatrix::getCol(), vpRotationMatrix::getCol(), vpMatrix::inducedL2Norm(), vpMatrix::inverseByCholeskyLapack(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByQRLapack(), vpRotationMatrix::isARotationMatrix(), vpMatrix::kernel(), vpColVector::maplePrint(), vpMatrix::maplePrint(), vpColVector::matlabPrint(), vpMatrix::matlabPrint(), vpMatrix::nullSpace(), vpMatrix::nullSpace(), vpColVector::operator+(), vpColVector::operator+(), vpColVector::operator+=(), vpColVector::operator-(), vpColVector::operator-=(), vpColVector::print(), vpForceTwistMatrix::print(), vpMatrix::print(), vpPoseVector::print(), vpVelocityTwistMatrix::print(), vpMatrix::svdEigen3(), vpMatrix::svdLapack(), vpMatrix::svdOpenCV(), vpColVector::vpColVector(), and vpColVector::vpColVector().
| vpThetaUVector vpHomogeneousMatrix::getThetaUVector | ( | ) | const |
Return the 
Definition at line 1065 of file vpHomogeneousMatrix.cpp.
References extract().
| vpTranslationVector vpHomogeneousMatrix::getTranslationVector | ( | ) | const |
Return the translation vector from the homogeneous transformation matrix.
Definition at line 1044 of file vpHomogeneousMatrix.cpp.
References extract().
Referenced by vpForceTwistMatrix::buildFrom(), vpVelocityTwistMatrix::buildFrom(), mean(), vpRotationMatrix::operator*(), vpAfma6::set_eMc(), and vpRobotBebop2::setPosition().
Compute the Hadamard product (element wise matrix multiplication).
| m | : Second matrix; |

Definition at line 554 of file vpArray2D.h.
References vpArray2D().
|
inline |
Definition at line 320 of file vpHomogeneousMatrix.h.
|
inlineinherited |
Insert array A at the given position in the current array.
| A | : The array to insert. |
| r | : The index of the row to begin to insert data. |
| c | : The index of the column to begin to insert data. |
Definition at line 417 of file vpArray2D.h.
| void vpHomogeneousMatrix::insert | ( | const vpQuaternionVector & | q | ) |
Insert the rotational component of the homogeneous matrix from a quaternion rotation vector.
Definition at line 863 of file vpHomogeneousMatrix.cpp.
References insert().
| void vpHomogeneousMatrix::insert | ( | const vpRotationMatrix & | R | ) |
Insert the rotational component of the homogeneous matrix.
Definition at line 828 of file vpHomogeneousMatrix.cpp.
Referenced by buildFrom(), buildFrom(), buildFrom(), buildFrom(), buildFrom(), vpHandEyeCalibration::calibrate(), vpExponentialMap::direct(), insert(), insert(), inverse(), operator*(), vpPose::poseLowe(), and vpHomogeneousMatrix().
| void vpHomogeneousMatrix::insert | ( | const vpThetaUVector & | tu | ) |
Insert the rotational component of the homogeneous matrix from a 
Definition at line 841 of file vpHomogeneousMatrix.cpp.
References insert().
| void vpHomogeneousMatrix::insert | ( | const vpTranslationVector & | t | ) |
Insert the translational component in a homogeneous matrix.
Definition at line 850 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::t().
| vpHomogeneousMatrix vpHomogeneousMatrix::inverse | ( | ) | const |
Invert the homogeneous matrix
![$\left[\begin{array}{cc}
{\bf R} & {\bf t} \\
{\bf 0}_{1\times 3} & 1
\end{array}
\right]^{-1} = \left[\begin{array}{cc}
{\bf R}^T & -{\bf R}^T {\bf t} \\
{\bf 0}_{1\times 3} & 1
\end{array}
\right]$](form_577.png)
Definition at line 879 of file vpHomogeneousMatrix.cpp.
References extract(), insert(), vpRotationMatrix::t(), and vpHomogeneousMatrix().
Referenced by vpKeyPoint::compute3D(), vpKeyPoint::compute3D(), vpKeyPoint::compute3DForPointsOnCylinders(), vpKeyPoint::compute3DForPointsOnCylinders(), vpMbtFaceDepthNormal::computeDesiredNormalAndCentroid(), vpBiclops::computeMGD(), vpPtu46::computeMGD(), vpMbDepthDenseTracker::computeVVS(), vpMbDepthNormalTracker::computeVVS(), vpMbEdgeKltTracker::computeVVS(), vpMbEdgeTracker::computeVVS(), vpMbGenericTracker::computeVVS(), vpMbKltTracker::computeVVS(), vpMbEdgeTracker::computeVVSFirstPhasePoseEstimation(), vpMbGenericTracker::computeVVSInteractionMatrixAndResidu(), vpProjectionDisplay::displayCamera(), vpPtu46::get_cMe(), vpRobotWireFrameSimulator::get_cMo(), vpAfma4::get_cVf(), vpViper::get_eJe(), vpViper::get_fJe(), vpBiclops::get_fMc(), vpRobotAfma6::getDisplacement(), vpRobotBiclops::getDisplacement(), vpSimulator::getExternalCameraPosition(), vpSimulatorAfma6::getExternalImage(), vpSimulatorViper850::getExternalImage(), vpWireFrameSimulator::getExternalImage(), vpWireFrameSimulator::getExternalImage(), vpRobotFranka::getForceTorque(), vpRobotUniversalRobots::getForceTorque(), vpRobotWireFrameSimulator::getInternalView(), vpRobotWireFrameSimulator::getInternalView(), vpViper::getInverseKinematics(), vpRobotAfma4::getVelocity(), vpRobotAfma6::getVelocity(), vpRobotViper650::getVelocity(), vpRobotViper850::getVelocity(), vpSimulatorAfma6::initialiseCameraRelativeToObject(), vpSimulatorViper850::initialiseCameraRelativeToObject(), inverse(), vpPose::poseVirtualVS(), vpPose::poseVirtualVSrobust(), vpPose::poseVirtualVSWithDepth(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpWireFrameSimulator::projectCameraTrajectory(), vpBiclops::set_cMe(), vpPioneerPan::set_cMe(), vpWireFrameSimulator::setCameraPositionRelObj(), vpWireFrameSimulator::setCameraPositionRelWorld(), vpMbKltTracker::setPose(), vpSimulatorAfma6::setPosition(), and vpRobotCamera::setVelocity().
| void vpHomogeneousMatrix::inverse | ( | vpHomogeneousMatrix & | M | ) | const |
Invert the homogeneous matrix.
| M | : The inverted homogeneous matrix: ![]() |
Definition at line 927 of file vpHomogeneousMatrix.cpp.
References inverse(), and vpHomogeneousMatrix().
| bool vpHomogeneousMatrix::isAnHomogeneousMatrix | ( | double | threshold = 1e-6 | ) | const |
Test if the 3x3 rotational part of the homogeneous matrix is a valid rotation matrix and the last row is equal to [0, 0, 0, 1].
Definition at line 761 of file vpHomogeneousMatrix.cpp.
References vpMath::equal(), extract(), vpRotationMatrix::isARotationMatrix(), and vpMath::nul().
| bool vpHomogeneousMatrix::isValid | ( | ) | const |
Check if the homogeneous transformation matrix doesn't have a value NaN.
Definition at line 775 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data, vpMath::isNaN(), and vpArray2D< double >::size().
Referenced by vpPose::computePlanarObjectPoseFromRGBD(), vpPose::computePlanarObjectPoseFromRGBD(), and vpPose::computePlanarObjectPoseWithAtLeast3Points().
|
inlinestaticinherited |
Load a matrix from a file.
| filename | : Absolute file name. |
| A | : Array to be loaded |
| binary | : If true the matrix is loaded from a binary file, else from a text file. |
| header | : Header of the file is loaded in this parameter. |
Definition at line 582 of file vpArray2D.h.
| void vpHomogeneousMatrix::load | ( | std::ifstream & | f | ) |
Read an homogeneous matrix from an input file stream. The homogeneous matrix is considered as a 4 by 4 matrix.
| f | : Input file stream. |
The code below shows how to get an homogeneous matrix from a file.
Definition at line 979 of file vpHomogeneousMatrix.cpp.
References vpException::ioError.
|
inlinestaticinherited |
Load an array from a YAML-formatted file.
| filename | : absolute file name. |
| A | : array to be loaded from the file. |
| header | : header of the file is loaded in this parameter. |
Definition at line 696 of file vpArray2D.h.
|
static |
Compute the Euclidean mean of the homogeneous matrices. The Euclidean mean of the rotation matrices is computed following Moakher's method (SIAM 2002).
| [in] | vec_M | : Set of homogeneous matrices. |
Definition at line 1174 of file vpHomogeneousMatrix.cpp.
References getTranslationVector(), mean(), vpMatrix::pseudoInverse(), vpArray2D< double >::t(), vpMatrix::t(), and vpHomogeneousMatrix().
Referenced by mean().
|
inherited |
Not equal to comparison operator of a 2D array.
Definition at line 442 of file vpArray2D.h.
References vpArray2D().
| vpColVector vpHomogeneousMatrix::operator* | ( | const vpColVector & | v | ) | const |
Operator that allow to multiply an homogeneous matrix by a 4-dimension column vector.
| vpException::dimensionError | : If the vector v is not a 4-dimension vector. |
Definition at line 546 of file vpHomogeneousMatrix.cpp.
References vpException::dimensionError, vpArray2D< Type >::getRows(), vpArray2D< double >::rowNum, and vpArray2D< double >::rowPtrs.
| vpHomogeneousMatrix vpHomogeneousMatrix::operator* | ( | const vpHomogeneousMatrix & | M | ) | const |
Operator that allow to multiply an homogeneous matrix by an other one.
Definition at line 493 of file vpHomogeneousMatrix.cpp.
References extract(), insert(), and vpHomogeneousMatrix().
From the coordinates of the point in camera frame b and the transformation between camera frame a and camera frame b computes the coordinates of the point in camera frame a.
| bP | : 3D coordinates of the point in camera frame bP. |
Definition at line 578 of file vpHomogeneousMatrix.cpp.
References vpPoint::get_W(), vpPoint::get_X(), vpPoint::get_Y(), vpPoint::get_Z(), vpPoint::set_oW(), vpPoint::set_oX(), vpPoint::set_oY(), vpPoint::set_oZ(), vpPoint::set_W(), vpPoint::set_X(), vpPoint::set_Y(), and vpPoint::set_Z().
| vpHomogeneousMatrix vpHomogeneousMatrix::operator* | ( | const vpRotationMatrix & | R | ) | const |
Operator that allows to multiply a rotation matrix by a rotation matrix.
| [in] | R | : Rotation matrix. |
The following snippet shows how to use this method:
Definition at line 644 of file vpHomogeneousMatrix.cpp.
References vpHomogeneousMatrix().
| vpTranslationVector vpHomogeneousMatrix::operator* | ( | const vpTranslationVector & | t | ) | const |
Since a translation vector could be seen as the origin point of a frame, this function computes the new coordinates of a translation vector after applying an homogeneous transformation.
| t | : Translation vector seen as the 3D coordinates of a point. |
Definition at line 620 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::t().
| vpHomogeneousMatrix & vpHomogeneousMatrix::operator*= | ( | const vpHomogeneousMatrix & | M | ) |
Operator that allow to multiply an homogeneous matrix by an other one.
Definition at line 533 of file vpHomogeneousMatrix.cpp.
References vpHomogeneousMatrix().
| vpHomogeneousMatrix & vpHomogeneousMatrix::operator, | ( | double | val | ) |
Set the second and next element of the homogenous matrix.
| val | : Value of the matrix second or next element. |
The following example shows how to initialize an homogeneous matrix using this operator.
It produces the following printings:
Definition at line 740 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data, vpException::dimensionError, m_index, vpArray2D< double >::size(), and vpHomogeneousMatrix().
| vpHomogeneousMatrix & vpHomogeneousMatrix::operator<< | ( | double | val | ) |
Set homogeneous matrix first element.
| val | : Value of the matrix first element. |
The following example shows how to initialize a rotation matrix using this operator.
It produces the following printings:
Definition at line 691 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data, m_index, and vpHomogeneousMatrix().
| vpHomogeneousMatrix & vpHomogeneousMatrix::operator= | ( | const vpHomogeneousMatrix & | M | ) |
Copy operator that allows to set an homogeneous matrix from an other one.
| M | : Matrix to copy. |
Definition at line 466 of file vpHomogeneousMatrix.cpp.
References vpArray2D< Type >::rowPtrs, vpArray2D< double >::rowPtrs, and vpHomogeneousMatrix().
|
inlineinherited |
Set element 
Definition at line 520 of file vpArray2D.h.
| void vpHomogeneousMatrix::orthogonalizeRotation | ( | ) |
Perform orthogonalization of the rotation part of the homogeneous transformation.
Definition at line 996 of file vpHomogeneousMatrix.cpp.
References vpArray2D< double >::data, and vpRotationMatrix::orthogonalize().
| void vpHomogeneousMatrix::print | ( | ) | const |
Print the matrix as a pose vector 
Definition at line 1013 of file vpHomogeneousMatrix.cpp.
References vpPoseVector::t().
|
inlineinherited |
Definition at line 383 of file vpArray2D.h.
|
inlineinherited |
Set the size of the array and initialize all the values to zero.
| nrows | : number of rows. |
| ncols | : number of column. |
| flagNullify | : if true, then the array is re-initialized to 0 after resize. If false, the initial values from the common part of the array (common part between old and new version of the array) are kept. Default value is true. |
| recopy_ | : if true, will perform an explicit recopy of the old data. |
Definition at line 305 of file vpArray2D.h.
Referenced by vpMatrix::diag(), vpMatrix::eye(), vpMatrix::init(), vpMatrix::operator,(), vpMatrix::operator<<(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::stack(), vpMatrix::stack(), vpMatrix::stack(), and vpMatrix::svdOpenCV().
|
inline |
This function is not applicable to an homogeneous matrix that is always a 4-by-4 matrix.
| vpException::fatalError | When this function is called. |
Definition at line 286 of file vpHomogeneousMatrix.h.
References vpException::fatalError.
|
inlinestaticinherited |
Save a matrix to a file.
| filename | : Absolute file name. |
| A | : Array to be saved. |
| binary | : If true the matrix is saved in a binary file, else a text file. |
| header | : Optional line that will be saved at the beginning of the file. |
Warning : If you save the matrix as in a text file the precision is less than if you save it in a binary file.
Definition at line 784 of file vpArray2D.h.
| void vpHomogeneousMatrix::save | ( | std::ofstream & | f | ) | const |
Write an homogeneous matrix in an output file stream.
| f | : Output file stream. The homogeneous matrix is saved as a 4 by 4 matrix. |
The code below shows how to save an homogeneous matrix in a file.
Definition at line 951 of file vpHomogeneousMatrix.cpp.
References vpException::ioError.
|
inlinestaticinherited |
Save an array in a YAML-formatted file.
| filename | : absolute file name. |
| A | : array to be saved in the file. |
| header | : optional lines that will be saved at the beginning of the file. Should be YAML-formatted and will adapt to the indentation if any. |
Here is an example of outputs.
Content of matrix.yml:
Content of matrixIndent.yml:
Definition at line 875 of file vpArray2D.h.
| void vpHomogeneousMatrix::setIdentity | ( | ) |
Set homogeneous matrix to identity.
Definition at line 1218 of file vpHomogeneousMatrix.cpp.
References eye().
|
inlineinherited |
Return the number of elements of the 2D array.
Definition at line 292 of file vpArray2D.h.
Referenced by vpHomogeneousMatrix::isValid(), vpColVector::operator*(), vpHomogeneousMatrix::operator,(), vpRotationMatrix::operator,(), vpRotationVector::operator,(), vpTranslationVector::operator,(), vpQuaternionVector::operator=(), vpRxyzVector::operator=(), vpRzyxVector::operator=(), vpRzyzVector::operator=(), vpThetaUVector::operator=(), vpThetaUVector::operator=(), vpTranslationVector::operator=(), vpMatrix::stack(), vpColVector::toStdVector(), vpPoseVector::toStdVector(), vpRotationVector::toStdVector(), vpRowVector::toStdVector(), vpColVector::vpColVector(), vpColVector::vpColVector(), vpColVector::vpColVector(), vpColVector::vpColVector(), vpColVector::vpColVector(), vpColVector::vpColVector(), vpRowVector::vpRowVector(), and vpRowVector::vpRowVector().
Compute the transpose of the array.
Definition at line 561 of file vpArray2D.h.
References vpArray2D().
Referenced by vpForceTwistMatrix::buildFrom(), vpHomogeneousMatrix::buildFrom(), vpHomogeneousMatrix::buildFrom(), vpHomogeneousMatrix::buildFrom(), vpHomogeneousMatrix::buildFrom(), vpVelocityTwistMatrix::buildFrom(), vpVelocityTwistMatrix::buildFrom(), vpHomogeneousMatrix::compute3d3dTransformation(), vpHomogeneousMatrix::extract(), vpHomogeneousMatrix::insert(), vpHomogeneousMatrix::mean(), vpHomogeneousMatrix::operator*(), vpForceTwistMatrix::vpForceTwistMatrix(), vpForceTwistMatrix::vpForceTwistMatrix(), vpHomogeneousMatrix::vpHomogeneousMatrix(), vpHomogeneousMatrix::vpHomogeneousMatrix(), vpHomogeneousMatrix::vpHomogeneousMatrix(), vpVelocityTwistMatrix::vpMatrix, vpVelocityTwistMatrix::vpVelocityTwistMatrix(), vpVelocityTwistMatrix::vpVelocityTwistMatrix(), and vpVelocityTwistMatrix::vpVelocityTwistMatrix().
|
friend |
Definition at line 337 of file vpHomogeneousMatrix.h.
References from_json, and vpHomogeneousMatrix().
Referenced by from_json.
|
Definition at line 1191 of file vpArray2D.h.
References vpArray2D< Type >::colNum, colNum, vpArray2D< Type >::data, data, vpArray2D< Type >::rowNum, rowNum, vpArray2D< Type >::size(), and vpArray2D().
|
Definition at line 1209 of file vpArray2D.h.
References vpArray2D< Type >::colNum, colNum, vpArray2D< Type >::data, data, vpArray2D< Type >::rowNum, rowNum, vpArray2D< Type >::size(), and vpArray2D().
|
friend |
Definition at line 333 of file vpHomogeneousMatrix.h.
References to_json, and vpHomogeneousMatrix().
Referenced by to_json.
|
This function performs generalized matrix multiplication: D = alpha*op(A)*op(B) + beta*op(C), where op(X) is X or X^T. Operation on A, B and C matrices is described by enumeration vpGEMMmethod().
For example, to compute D = alpha*A^T*B^T+beta*C we need to call :
If C is not used, vpGEMM must be called using an empty array null. Thus to compute D = alpha*A^T*B, we have to call:
| vpException::incorrectMatrixSizeError | if the sizes of the matrices do not allow the operations. |
| A | : An array that could be a vpMatrix. |
| B | : An array that could be a vpMatrix. |
| alpha | : A scalar. |
| C | : An array that could be a vpMatrix. |
| beta | : A scalar. |
| D | : The resulting array that could be a vpMatrix. |
| ops | : A scalar describing operation applied on the matrices. Possible values are the one defined in vpGEMMmethod(): VP_GEMM_A_T, VP_GEMM_B_T, VP_GEMM_C_T. |
Definition at line 388 of file vpGEMM.h.
References vpException::functionNotImplementedError, and vpArray2D().
|
Enumeration of the operations applied on matrices in vpGEMM() function.
Operations are :
|
protectedinherited |
Number of columns in the array.
Definition at line 136 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpColVector::clear(), vpMatrix::clear(), vpRowVector::clear(), vpMatrix::detByLU(), vpMatrix::detByLUEigen3(), vpMatrix::detByLULapack(), vpMatrix::detByLUOpenCV(), vpMatrix::diag(), vpMatrix::eigenValues(), vpMatrix::eigenValues(), vpMatrix::expm(), vpRowVector::extract(), vpMatrix::eye(), vpMatrix::getDiag(), vpMatrix::getRow(), vpMatrix::getRow(), vpColVector::hadamard(), vpMatrix::hadamard(), vpMatrix::infinityNorm(), vpSubColVector::init(), vpSubMatrix::init(), vpSubRowVector::init(), vpMatrix::insert(), vpRowVector::insert(), vpMatrix::inverseByCholeskyLapack(), vpMatrix::inverseByCholeskyOpenCV(), vpMatrix::inverseByLU(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByLULapack(), vpMatrix::inverseByLUOpenCV(), vpMatrix::inverseByQRLapack(), vpMatrix::inverseTriangular(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpRotationMatrix::operator*(), vpRotationMatrix::operator*(), vpRowVector::operator*(), vpRowVector::operator*(), vpRowVector::operator*(), vpMatrix::operator*=(), vpRotationMatrix::operator*=(), vpRowVector::operator*=(), vpRowVector::operator+(), vpMatrix::operator+=(), vpMatrix::operator+=(), vpRowVector::operator+=(), vpMatrix::operator,(), vpRowVector::operator,(), vpRowVector::operator-(), vpRowVector::operator-(), vpMatrix::operator-=(), vpMatrix::operator-=(), vpRowVector::operator-=(), vpMatrix::operator/(), vpRowVector::operator/(), vpMatrix::operator/=(), vpRowVector::operator/=(), vpColVector::operator<<(), vpMatrix::operator<<(), vpColVector::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpRowVector::operator=(), vpRowVector::operator=(), vpRowVector::operator=(), vpRowVector::operator=(), vpSubMatrix::operator=(), vpSubMatrix::operator=(), vpSubMatrix::operator=(), vpSubRowVector::operator=(), vpSubRowVector::operator=(), vpSubRowVector::operator=(), operator==(), operator==(), vpColVector::operator==(), vpRowVector::operator==(), vpMatrix::qr(), vpMatrix::qrPivot(), vpRowVector::reshape(), vpMatrix::setIdentity(), vpMatrix::solveByQR(), vpMatrix::solveByQR(), vpMatrix::solveBySVD(), vpMatrix::stack(), vpMatrix::stack(), vpMatrix::stack(), vpRowVector::stack(), vpMatrix::stackColumns(), vpMatrix::stackColumns(), vpMatrix::stackRows(), vpMatrix::stackRows(), vpMatrix::sum(), vpRowVector::sum(), vpMatrix::sumSquare(), vpRowVector::sumSquare(), vpMatrix::svdLapack(), vpRowVector::t(), vpMatrix::transpose(), vpColVector::vpColVector(), vpMatrix::vpMatrix(), and vpRowVector::vpRowVector().
|
inherited |
Address of the first element of the data array.
Definition at line 144 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpHomogeneousMatrix::buildFrom(), vpHomogeneousMatrix::buildFrom(), vpQuaternionVector::buildFrom(), vpQuaternionVector::buildFrom(), vpRxyzVector::buildFrom(), vpRxyzVector::buildFrom(), vpRxyzVector::buildFrom(), vpRzyxVector::buildFrom(), vpRzyxVector::buildFrom(), vpRzyxVector::buildFrom(), vpRzyzVector::buildFrom(), vpRzyzVector::buildFrom(), vpRzyzVector::buildFrom(), vpThetaUVector::buildFrom(), vpThetaUVector::buildFrom(), vpThetaUVector::buildFrom(), vpThetaUVector::buildFrom(), vpThetaUVector::buildFrom(), vpSubColVector::checkParentStatus(), vpSubMatrix::checkParentStatus(), vpSubRowVector::checkParentStatus(), vpColVector::clear(), vpMatrix::clear(), vpRowVector::clear(), vpHomogeneousMatrix::convert(), vpHomogeneousMatrix::convert(), vpMatrix::detByLUEigen3(), vpMatrix::detByLUOpenCV(), vpMatrix::expm(), vpThetaUVector::extract(), vpMatrix::frobeniusNorm(), vpMatrix::getRow(), vpThetaUVector::getTheta(), vpThetaUVector::getU(), vpColVector::hadamard(), vpMatrix::hadamard(), vpSubColVector::init(), vpSubMatrix::init(), vpSubRowVector::init(), vpColVector::insert(), vpColVector::insert(), vpMatrix::insert(), vpMatrix::inverseByCholeskyOpenCV(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByLUOpenCV(), vpHomogeneousMatrix::isValid(), vpColVector::operator*(), vpHomography::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpRowVector::operator*(), vpRowVector::operator*(), vpTranslationVector::operator*(), vpColVector::operator,(), vpHomogeneousMatrix::operator,(), vpRotationMatrix::operator,(), vpRotationVector::operator,(), vpRowVector::operator,(), vpTranslationVector::operator,(), vpColVector::operator-(), vpRowVector::operator-(), vpTranslationVector::operator-(), vpColVector::operator/(), vpHomography::operator/(), vpRowVector::operator/(), vpTranslationVector::operator/(), vpHomography::operator/=(), vpColVector::operator<<(), vpHomogeneousMatrix::operator<<(), vpRotationMatrix::operator<<(), vpRotationVector::operator<<(), vpRowVector::operator<<(), vpTranslationVector::operator<<(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpQuaternionVector::operator=(), vpQuaternionVector::operator=(), vpRotationMatrix::operator=(), vpRotationVector::operator=(), vpRowVector::operator=(), vpRowVector::operator=(), vpRowVector::operator=(), vpRowVector::operator=(), vpRxyzVector::operator=(), vpRxyzVector::operator=(), vpRxyzVector::operator=(), vpRzyxVector::operator=(), vpRzyxVector::operator=(), vpRzyxVector::operator=(), vpRzyzVector::operator=(), vpRzyzVector::operator=(), vpRzyzVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubRowVector::operator=(), vpSubRowVector::operator=(), vpSubRowVector::operator=(), vpSubRowVector::operator=(), vpThetaUVector::operator=(), vpThetaUVector::operator=(), vpThetaUVector::operator=(), vpTranslationVector::operator=(), vpTranslationVector::operator=(), vpTranslationVector::operator=(), vpTranslationVector::operator=(), operator==(), operator==(), vpColVector::operator==(), vpColVector::operator==(), vpRowVector::operator==(), vpColVector::operator[](), vpColVector::operator[](), vpPoseVector::operator[](), vpPoseVector::operator[](), vpRotationVector::operator[](), vpRotationVector::operator[](), vpRowVector::operator[](), vpRowVector::operator[](), vpTranslationVector::operator[](), vpTranslationVector::operator[](), vpRotationMatrix::orthogonalize(), vpHomogeneousMatrix::orthogonalizeRotation(), vpMatrix::qr(), vpMatrix::qrPivot(), vpColVector::reshape(), vpRowVector::reshape(), vpQuaternionVector::set(), vpMatrix::stack(), vpMatrix::stack(), vpMatrix::stackRows(), vpColVector::sum(), vpColVector::sumSquare(), vpMatrix::svdEigen3(), vpMatrix::svdLapack(), vpMatrix::svdOpenCV(), vpColVector::t(), vpPoseVector::t(), vpRotationVector::t(), vpRowVector::t(), vpTranslationVector::t(), vpColVector::toStdVector(), vpPoseVector::toStdVector(), vpRotationVector::toStdVector(), vpRowVector::toStdVector(), vpMatrix::transpose(), vpColVector::vpColVector(), vpColVector::vpColVector(), vpHomogeneousMatrix::vpHomogeneousMatrix(), vpMatrix::vpMatrix(), vpRowVector::vpRowVector(), vpQuaternionVector::w(), vpQuaternionVector::w(), vpQuaternionVector::x(), vpQuaternionVector::x(), vpQuaternionVector::y(), vpQuaternionVector::y(), vpQuaternionVector::z(), vpQuaternionVector::z(), vpSubColVector::~vpSubColVector(), vpSubMatrix::~vpSubMatrix(), and vpSubRowVector::~vpSubRowVector().
|
protectedinherited |
Current array size (rowNum * colNum).
Definition at line 140 of file vpArray2D.h.
Referenced by vpColVector::clear(), vpMatrix::clear(), vpRowVector::clear(), vpMatrix::frobeniusNorm(), vpMatrix::hadamard(), vpMatrix::inducedL2Norm(), vpSubColVector::init(), vpSubMatrix::init(), vpSubRowVector::init(), vpRotationVector::operator*(), vpTranslationVector::operator*(), vpTranslationVector::operator-(), vpTranslationVector::operator/(), vpColVector::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpRotationMatrix::operator=(), vpRowVector::operator=(), vpRxyzVector::operator=(), vpRzyxVector::operator=(), vpRzyzVector::operator=(), vpThetaUVector::operator=(), vpColVector::reshape(), vpRowVector::reshape(), vpRotationVector::t(), vpColVector::vpColVector(), vpMatrix::vpMatrix(), and vpRowVector::vpRowVector().
|
static |
Definition at line 300 of file vpHomogeneousMatrix.h.
|
protected |
Definition at line 329 of file vpHomogeneousMatrix.h.
Referenced by operator,(), operator<<(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), vpHomogeneousMatrix(), and vpHomogeneousMatrix().
|
protectedinherited |
Number of rows in the array.
Definition at line 134 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpMatrix::AtA(), vpColVector::clear(), vpMatrix::clear(), vpRowVector::clear(), vpMatrix::detByLU(), vpMatrix::detByLUEigen3(), vpMatrix::detByLULapack(), vpMatrix::detByLUOpenCV(), vpMatrix::diag(), vpMatrix::eigenValues(), vpMatrix::eigenValues(), vpMatrix::expm(), vpColVector::extract(), vpMatrix::eye(), vpMatrix::getCol(), vpMatrix::getDiag(), vpMatrix::getRow(), vpColVector::hadamard(), vpMatrix::hadamard(), vpColVector::infinityNorm(), vpMatrix::infinityNorm(), vpSubColVector::init(), vpSubMatrix::init(), vpSubRowVector::init(), vpMatrix::insert(), vpMatrix::inverseByCholeskyLapack(), vpMatrix::inverseByCholeskyOpenCV(), vpMatrix::inverseByLU(), vpMatrix::inverseByLUEigen3(), vpMatrix::inverseByLULapack(), vpMatrix::inverseByLUOpenCV(), vpMatrix::inverseByQRLapack(), vpMatrix::inverseTriangular(), vpColVector::operator*(), vpColVector::operator*(), vpColVector::operator*(), vpHomogeneousMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpRotationMatrix::operator*(), vpRotationMatrix::operator*(), vpTranslationVector::operator*(), vpColVector::operator*=(), vpMatrix::operator*=(), vpRotationMatrix::operator*=(), vpTranslationVector::operator*=(), vpColVector::operator+(), vpColVector::operator+=(), vpMatrix::operator+=(), vpMatrix::operator+=(), vpColVector::operator,(), vpColVector::operator-(), vpColVector::operator-(), vpColVector::operator-=(), vpMatrix::operator-=(), vpMatrix::operator-=(), vpColVector::operator/(), vpMatrix::operator/(), vpColVector::operator/=(), vpMatrix::operator/=(), vpTranslationVector::operator/=(), vpColVector::operator<<(), vpMatrix::operator<<(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpColVector::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpRowVector::operator=(), vpRowVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubColVector::operator=(), vpSubMatrix::operator=(), vpSubMatrix::operator=(), vpSubMatrix::operator=(), vpSubRowVector::operator=(), vpSubRowVector::operator=(), vpSubRowVector::operator=(), vpSubRowVector::operator=(), vpTranslationVector::operator=(), vpTranslationVector::operator=(), operator==(), operator==(), vpColVector::operator==(), vpColVector::operator==(), vpRowVector::operator==(), vpMatrix::qr(), vpMatrix::qrPivot(), vpColVector::reshape(), vpMatrix::setIdentity(), vpColVector::stack(), vpMatrix::stack(), vpMatrix::stack(), vpMatrix::stack(), vpMatrix::stackColumns(), vpMatrix::stackColumns(), vpMatrix::stackRows(), vpMatrix::stackRows(), vpColVector::sum(), vpMatrix::sum(), vpColVector::sumSquare(), vpMatrix::sumSquare(), vpRotationVector::sumSquare(), vpTranslationVector::sumSquare(), vpMatrix::svdLapack(), vpColVector::t(), vpPoseVector::t(), vpTranslationVector::t(), vpMatrix::transpose(), vpColVector::vpColVector(), vpMatrix::vpMatrix(), and vpRowVector::vpRowVector().
|
protectedinherited |
Address of the first element of each rows.
Definition at line 138 of file vpArray2D.h.
Referenced by vpMatrix::AAt(), vpColVector::clear(), vpMatrix::clear(), vpRowVector::clear(), vpMatrix::infinityNorm(), vpColVector::init(), vpMatrix::init(), vpRowVector::init(), vpSubColVector::init(), vpSubMatrix::init(), vpSubRowVector::init(), vpForceTwistMatrix::operator*(), vpForceTwistMatrix::operator*(), vpForceTwistMatrix::operator*(), vpHomogeneousMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpMatrix::operator*(), vpRotationMatrix::operator*(), vpRotationMatrix::operator*(), vpRotationMatrix::operator*(), vpRotationMatrix::operator*(), vpVelocityTwistMatrix::operator*(), vpVelocityTwistMatrix::operator*(), vpVelocityTwistMatrix::operator*(), vpMatrix::operator*=(), vpRotationMatrix::operator*=(), vpMatrix::operator+=(), vpMatrix::operator+=(), vpMatrix::operator,(), vpMatrix::operator-=(), vpMatrix::operator-=(), vpMatrix::operator/(), vpMatrix::operator/=(), vpColVector::operator<<(), vpMatrix::operator<<(), vpMatrix::operator<<(), vpColVector::operator=(), vpForceTwistMatrix::operator=(), vpHomogeneousMatrix::operator=(), vpMatrix::operator=(), vpMatrix::operator=(), vpRotationMatrix::operator=(), vpRowVector::operator=(), vpRowVector::operator=(), vpSubMatrix::operator=(), vpSubMatrix::operator=(), vpSubMatrix::operator=(), vpVelocityTwistMatrix::operator=(), vpMatrix::stack(), vpMatrix::stackColumns(), vpMatrix::sum(), vpRowVector::sum(), vpMatrix::sumSquare(), vpRotationVector::sumSquare(), vpRowVector::sumSquare(), vpTranslationVector::sumSquare(), vpColVector::vpColVector(), vpMatrix::vpMatrix(), and vpRowVector::vpRowVector().