Adapter for absolute pose RANSAC (3D2D) with non-central cameras, i.e. could be a multi-camera-setup.
More...
#include <FrameNoncentralAbsoluteAdapter.hpp>
|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
typedef std::vector< int > | matches_t |
| type for describing matches. More...
|
|
Adapter for absolute pose RANSAC (3D2D) with non-central cameras, i.e. could be a multi-camera-setup.
Constructor.
- Parameters
-
estimator | Estimator. |
nCameraSystem | Camera configuration and parameters. |
frame | The multiframe. |
virtual opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::~FrameNoncentralAbsoluteAdapter |
( |
| ) |
|
|
inlinevirtual |
int opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::camIndex |
( |
size_t |
index | ) |
const |
|
inline |
Get the camera index for a specific correspondence.
- Parameters
-
index | The serialized index of the correspondence. |
- Returns
- Camera index of the correspondence.
opengv::bearingVector_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::getBearingVector |
( |
size_t |
index | ) |
const |
|
virtual |
Retrieve the bearing vector of a correspondence.
- Parameters
-
[in] | index | The serialized index of the correspondence. |
- Returns
- The corresponding bearing vector.
opengv::translation_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::getCamOffset |
( |
size_t |
index | ) |
const |
|
virtual |
Retrieve the position of a camera of a correspondence seen from the viewpoint origin.
- Parameters
-
[in] | index | The serialized index of the correspondence. |
- Returns
- The position of the corresponding camera seen from the viewpoint origin.
opengv::rotation_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::getCamRotation |
( |
size_t |
index | ) |
const |
|
virtual |
Retrieve the rotation from a camera of a correspondence to the viewpoint origin.
- Parameters
-
[in] | index | The serialized index of the correspondence. |
- Returns
- The rotation from the corresponding camera back to the viewpoint origin.
size_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::getNumberCorrespondences |
( |
| ) |
const |
|
virtual |
Get the number of correspondences. These are keypoints that have a corresponding landmark which is added to the estimator, has more than one observation and not at infinity.
- Returns
- Number of correspondences.
opengv::point_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::getPoint |
( |
size_t |
index | ) |
const |
|
virtual |
Retrieve the world point of a correspondence.
- Parameters
-
[in] | index | The serialized index of the correspondence. |
- Returns
- The corresponding world point.
double opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::getSigmaAngle |
( |
size_t |
index | ) |
|
Obtain the angular standard deviation in [rad].
- Parameters
-
index | The index of the correspondence. |
- Returns
- The standard deviation in [rad].
virtual double opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::getWeight |
( |
size_t |
| ) |
const |
|
inlinevirtual |
Retrieve the weight of a correspondence. The weight is supposed to reflect the quality of a correspondence, and typically is between 0 and 1.
- Warning
- This is not implemented and always returns 1.0.
int opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::keypointIndex |
( |
size_t |
index | ) |
const |
|
inline |
Get the keypoint index for a specific correspondence.
- Parameters
-
index | The serialized index of the correspondence. |
- Returns
- Keypoint index belonging to the correspondence.
opengv::bearingVectors_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::bearingVectors_ |
|
private |
The bearing vectors of the correspondences.
std::vector<size_t> opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::camIndices_ |
|
private |
The camera indices of the correspondences.
opengv::translations_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::camOffsets_ |
|
private |
The position of the cameras seen from the viewpoint origin.
opengv::rotations_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::camRotations_ |
|
private |
The rotation of the cameras to the viewpoint origin.
std::vector<size_t> opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::keypointIndices_ |
|
private |
The keypoint indices of the correspondences.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef std::vector<int> opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::matches_t |
type for describing matches.
opengv::points_t opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::points_ |
|
private |
The world coordinates of the correspondences.
std::vector<double> opengv::absolute_pose::FrameNoncentralAbsoluteAdapter::sigmaAngles_ |
|
private |
The standard deviations of the bearing vectors in [rad].
The documentation for this class was generated from the following files: