8 #ifndef META_OCEAN_TRACKING_MAPBUILDING_RELOCALIZER_H
9 #define META_OCEAN_TRACKING_MAPBUILDING_RELOCALIZER_H
70 inline const Vectors3& objectPoints()
const;
77 inline const Indices32& objectPointIds()
const;
This class implements the abstract base class for all AnyCamera objects.
Definition: AnyCamera.h:130
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements a recursive lock object.
Definition: Lock.h:31
This class implements a generator for random numbers.
Definition: RandomGenerator.h:42
This class base class for all relocalizers.
Definition: Relocalizer.h:31
virtual bool setImageFeaturePointDetectorFunction(ImageFeaturePointDetectorFunction imageFeaturePointDetectorFunction)
Sets or updates the function to detect and describe feature points in an image.
ImageFeaturePointDetectorFunction imageFeaturePointDetectorFunction_
The function which detects and describes feature points in a given image.
Definition: Relocalizer.h:118
virtual ~Relocalizer()=default
Destructs this relocalizer.
Relocalizer & operator=(Relocalizer &&relocalizer)
Move operator.
Lock lock_
The relocalizer's lock.
Definition: Relocalizer.h:127
RandomGenerator randomGenerator_
The random generator object to be used.
Definition: Relocalizer.h:124
static bool detectFreakFeatures(const AnyCamera &camera, const Frame &yFrame, Vectors2 &imagePoints, SharedUnifiedDescriptors &imagePointDescriptors)
Helper function allowing to detect and to describe multi-level FREAK features with 32 bytes per descr...
virtual bool setFeatureMap(SharedUnifiedFeatureMap featureMap)
Sets or updates the feature map to be used for relocalization.
Relocalizer()=default
Default constructor.
const Vectors3 & objectPoints() const
Returns the object points of this relocalizer.
Definition: Relocalizer.h:130
const Indices32 & objectPointIds() const
Returns the ids of the object points of this relocalizer.
Definition: Relocalizer.h:137
std::function< bool(const AnyCamera &camera, const Frame &yFrame, Vectors2 &imagePoints, SharedUnifiedDescriptors &imagePointDescriptors)> ImageFeaturePointDetectorFunction
Definition of a function which detects and describes feature points in a given image.
Definition: Relocalizer.h:42
SharedUnifiedFeatureMap featureMap_
The feature map to be used when relocalizing.
Definition: Relocalizer.h:121
Relocalizer(ImageFeaturePointDetectorFunction imageFeaturePointDetectorFunction)
Creates a new relocalizer object.
virtual bool isValid() const
Returns whether this relocalizer holds a valid map.
std::vector< Index32 > Indices32
Definition of a vector holding 32 bit index values.
Definition: Base.h:96
std::vector< Vector2 > Vectors2
Definition of a vector holding Vector2 objects.
Definition: Vector2.h:64
std::vector< Vector3 > Vectors3
Definition of a vector holding Vector3 objects.
Definition: Vector3.h:65
std::shared_ptr< UnifiedFeatureMap > SharedUnifiedFeatureMap
Definition of a shared pointer holding a UnifiedFeatureMap object.
Definition: UnifiedFeatureMap.h:31
std::shared_ptr< UnifiedDescriptors > SharedUnifiedDescriptors
Definition of a shared pointer holding a UnifiedDescriptors object.
Definition: UnifiedDescriptors.h:63
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15