The PerspectiveTransform2D is a perspective transform in 2D.
More...
#include <PerspectiveTransform2D.hpp>
|
|
| PerspectiveTransform2D () |
| | constructor
|
| |
|
| PerspectiveTransform2D (T r11, T r12, T r13, T r21, T r22, T r23, T r31, T r32, T r33) |
| | constructor
|
| |
| template<class R > |
| | PerspectiveTransform2D (const Eigen::Matrix< R, 3, 3 > &r) |
| | constructor More...
|
| |
| template<class R > |
| | PerspectiveTransform2D (const Eigen::MatrixBase< R > &r) |
| | constructor More...
|
| |
|
PerspectiveTransform2D< T > | inverse () const |
| | Returns the inverse of the PerspectiveTransform.
|
| |
| T & | operator() (std::size_t row, std::size_t col) |
| | Returns matrix element reference. More...
|
| |
| const T & | operator() (std::size_t row, std::size_t col) const |
| | Returns const matrix element reference. More...
|
| |
|
rw::math::Vector2D< T > | operator* (const rw::math::Vector2D< T > &v) const |
| | transform a point using this perspective transform
|
| |
| rw::math::Vector3D< T > | calc3dVec (const PerspectiveTransform2D< T > &hT, const rw::math::Vector2D< T > &v) |
| | transform a 2d point into a 3d point with this perspective transform More...
|
| |
| const Eigen::Matrix< T, 3, 3 > & | e () const |
| | Returns reference to the 3x3 matrix \( \mathbf{M}\in SO(3) \) that represents this rotation. More...
|
| |
| Eigen::Matrix< T, 3, 3 > & | e () |
| | Returns reference to the 3x3 matrix \( \mathbf{M}\in SO(3) \) that represents this rotation. More...
|
| |
template<class T = double>
class rw::math::PerspectiveTransform2D< T >
The PerspectiveTransform2D is a perspective transform in 2D.
The homographic transform can be used to map one arbitrary 2D quadrilateral into another.
◆ PerspectiveTransform2D() [1/2]
constructor
- Parameters
-
- Returns
◆ PerspectiveTransform2D() [2/2]
constructor
- Parameters
-
- Returns
◆ calc3dVec()
transform a 2d point into a 3d point with this perspective transform
- Parameters
-
- Returns
◆ calcTransform()
calculates a PerspectiveTransform2D that maps points from point set pts1 to point set pts2
- Parameters
-
| pts1 | [in] point set one |
| pts2 | [in] point set two |
◆ e() [1/2]
| Eigen::Matrix<T, 3, 3>& e |
( |
| ) |
|
|
inline |
Returns reference to the 3x3 matrix \( \mathbf{M}\in SO(3) \) that represents this rotation.
- Returns
- \( \mathbf{M}\in SO(3) \)
◆ e() [2/2]
| const Eigen::Matrix<T, 3, 3>& e |
( |
| ) |
const |
|
inline |
Returns reference to the 3x3 matrix \( \mathbf{M}\in SO(3) \) that represents this rotation.
- Returns
- \( \mathbf{M}\in SO(3) \)
◆ operator()() [1/2]
| T& operator() |
( |
std::size_t |
row, |
|
|
std::size_t |
col |
|
) |
| |
|
inline |
Returns matrix element reference.
- Parameters
-
| row | [in] row, row must be \( < 3 \) |
| col | [in] col, col must be \( < 3 \) |
- Returns
- reference to matrix element
◆ operator()() [2/2]
| const T& operator() |
( |
std::size_t |
row, |
|
|
std::size_t |
col |
|
) |
| const |
|
inline |
Returns const matrix element reference.
- Parameters
-
| row | [in] row, row must be \( < 3 \) |
| col | [in] col, col must be \( < 3 \) |
- Returns
- const reference to matrix element
◆ inverse()
◆ read() [1/2]
Enable read-serialization of class T by overloading this method. Data is read from iarchive and filled into sobject.
- Parameters
-
| sobject | [out] the object in which the data should be streamed into |
| iarchive | [in] the InputArchive from which to read data. |
| id | [in] The id of the serialized sobject. |
- Note
- the id can be empty in which case the overloaded method should provide a default identifier. E.g. the Vector3D class defined "Vector3D" as its default id.
◆ read() [2/2]
Enable read-serialization of class T by overloading this method. Data is read from iarchive and filled into sobject.
- Parameters
-
| sobject | [out] the object in which the data should be streamed into |
| iarchive | [in] the InputArchive from which to read data. |
| id | [in] The id of the serialized sobject. |
- Note
- the id can be empty in which case the overloaded method should provide a default identifier. E.g. the Vector3D class defined "Vector3D" as its default id.
◆ write() [1/2]
Enable write-serialization of class T by overloading this method. Data is written to oarchive from the sobject.
- Parameters
-
| sobject | [in] the object from which the data should be streamed. |
| oarchive | [out] the OutputArchive in which data should be written. |
| id | [in] The id of the serialized sobject. |
- Note
- the id can be empty in which case the overloaded method should provide a default identifier. E.g. the Vector3D class defined "Vector3D" as its default id.
◆ write() [2/2]
Enable write-serialization of class T by overloading this method. Data is written to oarchive from the sobject.
- Parameters
-
| sobject | [in] the object from which the data should be streamed. |
| oarchive | [out] the OutputArchive in which data should be written. |
| id | [in] The id of the serialized sobject. |
- Note
- the id can be empty in which case the overloaded method should provide a default identifier. E.g. the Vector3D class defined "Vector3D" as its default id.
The documentation for this class was generated from the following files:
- core/math_fwd.hpp
- PerspectiveTransform2D.hpp