|
Ocean
|
This class implements a pose projection. More...
#include <PoseProjection.h>
Public Member Functions | |
| PoseProjection ()=default | |
| Creates an empty pose projection object. | |
| PoseProjection (const HomogenousMatrix4 &world_T_camera, const AnyCamera &camera, const Geometry::ObjectPoint *objectPoints, const size_t number) | |
| Creates a new pose projection object by a given pose and object points. | |
| const HomogenousMatrix4 & | world_T_camera () const |
| Returns the pose of this projection. | |
| const Geometry::ImagePoints & | imagePoints () const |
| Returns the image points (the projected object points) of this pose projection. | |
| size_t | size () const |
| Returns the number of stored pose points. | |
| template<Geometry::Estimator::EstimatorType tEstimator> | |
| Scalar | minimalAverageSquareError (const Geometry::ImagePoint *imagePoints, const size_t numberImagePoints, const size_t validImagePoints, const Geometry::Error::ErrorDetermination errorDetermination) |
| Returns the robust minimal average square error between this pose projection and a given 2D point cloud. | |
| bool | isEmpty () const |
| Returns whether this pose projection holds no points. | |
| operator bool () const | |
| Returns whether this pose projection holds at least one point. | |
Static Private Member Functions | |
| static const Vector3 & | objectPoint2objectPoint (const Geometry::ObjectPoint &element) |
| Converts an element to an object point. | |
Private Attributes | |
| HomogenousMatrix4 | world_T_camera_ = HomogenousMatrix4(false) |
| Pose of this projection. | |
| Vectors2 | imagePoints_ |
| Projection object points for this pose. | |
This class implements a pose projection.
|
default |
Creates an empty pose projection object.
| Ocean::Tracking::PoseProjection::PoseProjection | ( | const HomogenousMatrix4 & | world_T_camera, |
| const AnyCamera & | camera, | ||
| const Geometry::ObjectPoint * | objectPoints, | ||
| const size_t | number | ||
| ) |
Creates a new pose projection object by a given pose and object points.
| world_T_camera | The transformation between camera and world, with default camera looking into the negative z-space with y-axis up, must be valid |
| camera | The camera object defining the projection |
| objectPoints | Object points to be projected |
| number | Number Of object points to be projected |
|
inline |
Returns the image points (the projected object points) of this pose projection.
|
inline |
Returns whether this pose projection holds no points.
| Scalar Ocean::Tracking::PoseProjection::minimalAverageSquareError | ( | const Geometry::ImagePoint * | imagePoints, |
| const size_t | numberImagePoints, | ||
| const size_t | validImagePoints, | ||
| const Geometry::Error::ErrorDetermination | errorDetermination | ||
| ) |
Returns the robust minimal average square error between this pose projection and a given 2D point cloud.
The number of given image points must be equal or small to the number of internal pose points of this object.
| imagePoints | Image points to find corresponding pose points for |
| numberImagePoints | Number of given image points |
| validImagePoints | Number of valid image points expecting to have corresponding points in the pose points, with range [1, numberImagePoints] |
| errorDetermination | Depending on this flag uniqueAveragedRobustErrorInPointCloud, approximatedAveragedRobustErrorInPointCloud() or ambiguousAveragedRobustErrorInPointCloud() will be used |
| tEstimator | Estimator to be applied |
|
inlinestaticprivate |
Converts an element to an object point.
| element | Element to be converted |
|
inlineexplicit |
Returns whether this pose projection holds at least one point.
|
inline |
Returns the number of stored pose points.
|
inline |
Returns the pose of this projection.
|
private |
Projection object points for this pose.
|
private |
Pose of this projection.