|
Ocean
|
This class base class for all relocalizers. More...
#include <Relocalizer.h>
Public Types | |
| using | ImageFeaturePointDetectorFunction = std::function< bool(const AnyCamera &camera, const Frame &yFrame, Vectors2 &imagePoints, SharedUnifiedDescriptors &imagePointDescriptors)> |
| Definition of a function which detects and describes feature points in a given image. | |
Public Member Functions | |
| virtual | ~Relocalizer ()=default |
| Destructs this relocalizer. | |
| virtual bool | setImageFeaturePointDetectorFunction (ImageFeaturePointDetectorFunction imageFeaturePointDetectorFunction) |
| Sets or updates the function to detect and describe feature points in an image. | |
| virtual bool | setFeatureMap (SharedUnifiedFeatureMap featureMap) |
| Sets or updates the feature map to be used for relocalization. | |
| const Vectors3 & | objectPoints () const |
| Returns the object points of this relocalizer. | |
| const Indices32 & | objectPointIds () const |
| Returns the ids of the object points of this relocalizer. | |
| virtual bool | isValid () const |
| Returns whether this relocalizer holds a valid map. | |
Static Public Member Functions | |
| 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 descriptor in an image. | |
Protected Member Functions | |
| Relocalizer ()=default | |
| Default constructor. | |
| Relocalizer (ImageFeaturePointDetectorFunction imageFeaturePointDetectorFunction) | |
| Creates a new relocalizer object. | |
| Relocalizer & | operator= (Relocalizer &&relocalizer) |
| Move operator. | |
Protected Attributes | |
| ImageFeaturePointDetectorFunction | imageFeaturePointDetectorFunction_ |
| The function which detects and describes feature points in a given image. | |
| SharedUnifiedFeatureMap | featureMap_ |
| The feature map to be used when relocalizing. | |
| RandomGenerator | randomGenerator_ |
| The random generator object to be used. | |
| Lock | lock_ |
| The relocalizer's lock. | |
This class base class for all relocalizers.
| using Ocean::Tracking::MapBuilding::Relocalizer::ImageFeaturePointDetectorFunction = std::function<bool(const AnyCamera& camera, const Frame& yFrame, Vectors2& imagePoints, SharedUnifiedDescriptors& imagePointDescriptors)> |
Definition of a function which detects and describes feature points in a given image.
| camera | The camera profile associated with the image |
| yFrame | The image in which the feature will be detected, with pixel format FORMAT_Y8 |
| imagePoints | The resulting image points within the pixel domain |
| imagePointDescriptors | The resulting descriptors, one for each resulting image point |
|
virtualdefault |
Destructs this relocalizer.
|
protecteddefault |
Default constructor.
|
explicitprotected |
Creates a new relocalizer object.
| imageFeaturePointDetectorFunction | The feature detection and description function to be used |
|
static |
Helper function allowing to detect and to describe multi-level FREAK features with 32 bytes per descriptor in an image.
| camera | The camera profile to be used, must be valid |
| yFrame | The image in which the feature will be detected and described, with pixel format FORMAT_Y8, must be valid |
| imagePoints | The resulting image points of all detected features |
| imagePointDescriptors | The resulting descriptors, one for each resulting image point |
|
virtual |
Returns whether this relocalizer holds a valid map.
|
inline |
Returns the ids of the object points of this relocalizer.
This function is not thread-safe.
|
inline |
Returns the object points of this relocalizer.
This function is not thread-safe.
|
protected |
Move operator.
| relocalizer | The relocalizer to be moved |
|
virtual |
Sets or updates the feature map to be used for relocalization.
| featureMap | The feature map to be set, must be valid |
Reimplemented in Ocean::Tracking::MapBuilding::TrackerMono, and Ocean::Tracking::MapBuilding::TrackerStereo.
|
virtual |
Sets or updates the function to detect and describe feature points in an image.
| imageFeaturePointDetectorFunction | The function to be used |
|
protected |
The feature map to be used when relocalizing.
|
protected |
The function which detects and describes feature points in a given image.
|
mutableprotected |
The relocalizer's lock.
|
protected |
The random generator object to be used.