8 #ifndef META_OCEAN_TRACKING_ORB_CORRESPONDENCES_H
9 #define META_OCEAN_TRACKING_ORB_CORRESPONDENCES_H
This class implements simple helper functions for feature correspondences.
Definition: Correspondences.h:38
std::vector< CorrespondencePair > CorrespondencePairs
Definition of a vector holding correspondence pairs.
Definition: Correspondences.h:49
static void extractCorrespondingFeatures(const CV::Detector::ORBFeatures &forwardFeatures, const CV::Detector::ORBFeatures &backwardFeatures, const CorrespondencePairs &correspondencePairs, CV::Detector::ORBFeatures &forwardCorrespondences, CV::Detector::ORBFeatures &backwardCorrespondences)
Extracts object and image features by pairs of feature correspondences all correspondences are expect...
static void extractCorrespondingFeatures(const CV::Detector::ORBFeatures &forwardFeatures, const CV::Detector::ORBFeatures &backwardFeatures, const CorrespondencePairs &candidatePairs, const CV::Detector::FeatureIndices &correspondenceIndices, CV::Detector::ORBFeatures &forwardCorrespondences, CV::Detector::ORBFeatures &backwardCorrespondences)
Extracts object and image features by pairs of feature correspondence candidates.
static void extractCorrespondingFeatures(const CV::Detector::ORBFeatures &forwardFeatures, const CV::Detector::ORBFeatures &backwardFeatures, const CorrespondencePairs &correspondencePairs, const HomogenousMatrix4 &pose, const PinholeCamera &pinholeCamera, const Scalar sqrDistance, CV::Detector::ORBFeatures &forwardCorrespondences, CV::Detector::ORBFeatures &backwardCorrespondences)
Extracts object and image features by pairs of feature correspondences all correspondences are expect...
std::set< unsigned int > CandidateSet
Definition of a set holding feature indices.
Definition: Correspondences.h:61
std::vector< CV::Detector::FeatureIndices > MultiCandidates
Definition of a vector holding different feature indices.
Definition: Correspondences.h:54
static void extractCorrespondingPoints(const CV::Detector::ORBFeatures &forwardFeatures, const CV::Detector::ORBFeatures &backwardFeatures, const CorrespondencePairs &correspondences, Geometry::ImagePoints &imagePoints, Geometry::ObjectPoints &objectPoints)
Extracts object and image positions of ORB features by pairs of feature correspondences.
std::pair< unsigned int, unsigned int > CorrespondencePair
Definition of a pair holding the indices of two corresponding features.
Definition: Correspondences.h:44
static void determineCandidates(const CV::Detector::ORBFeatures &interestFeatures, const CV::Detector::ORBFeatures &candidatePool, const Scalar window, MultiCandidates &multiCandidates, CV::Detector::FeatureIndices &candidates)
Determines candidates for feature correspondences upon their spatial position in the frame.
unsigned int sqrDistance(const char first, const char second)
Returns the square distance between two values.
Definition: base/Utilities.h:1089
std::vector< unsigned int > FeatureIndices
Definition of a vector holding feature indices.
Definition: Feature.h:28
std::vector< ORBFeature > ORBFeatures
Definition of a vector holding ORB features.
Definition: ORBFeature.h:26
std::vector< ObjectPoint > ObjectPoints
Definition of a vector holding 3D object points.
Definition: geometry/Geometry.h:129
std::vector< ImagePoint > ImagePoints
Definition of a vector holding 2D image points.
Definition: geometry/Geometry.h:123
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15