|
Ocean
|
This class implements a pose projection. More...
#include <PoseProjection.h>
Public Member Functions | |
| PoseProjection () | |
| Creates an empty pose projection object. | |
| PoseProjection (const HomogenousMatrix4 &pose, const PinholeCamera &pinholeCamera, const Geometry::ObjectPoint *objectPoints, const size_t number, const bool distortImagePoints) | |
| Creates a new pose projection object by a given pose and object points. | |
| const HomogenousMatrix4 & | pose () const |
| Returns the pose of this projection. | |
| const Geometry::ImagePoints & | imagePoints () const |
| Returns the image points (the projected object points) of this pose projection. | |
| CV::Detector::PointFeature::DistortionState | distortionState () const |
| Returns the distortion state of this 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 | poseTransformation |
| Pose of this projection. | |
| Geometry::ImagePoints | poseImagePoints |
| Projection object points for this pose. | |
| CV::Detector::PointFeature::DistortionState | poseDistortionState |
| Distortion state of the image points. | |
This class implements a pose projection.
| Ocean::Tracking::PoseProjection::PoseProjection | ( | ) |
Creates an empty pose projection object.
| Ocean::Tracking::PoseProjection::PoseProjection | ( | const HomogenousMatrix4 & | pose, |
| const PinholeCamera & | pinholeCamera, | ||
| const Geometry::ObjectPoint * | objectPoints, | ||
| const size_t | number, | ||
| const bool | distortImagePoints | ||
| ) |
Creates a new pose projection object by a given pose and object points.
| pose | Pose used to project the object points to the image plane |
| pinholeCamera | The pinhole camera object defining the projection |
| objectPoints | Object points to be projected |
| number | Number Of object points to be projected |
| distortImagePoints | Distorts the image points after projection if True |
|
inline |
Returns the distortion state of this projection.
|
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 pose of this projection.
|
inline |
Returns the number of stored pose points.
|
private |
Distortion state of the image points.
|
private |
Projection object points for this pose.
|
private |
Pose of this projection.