Ocean
|
This class base class for all relocalizers. More...
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. More... | |
Public Member Functions | |
virtual | ~Relocalizer ()=default |
Destructs this relocalizer. More... | |
virtual bool | setImageFeaturePointDetectorFunction (ImageFeaturePointDetectorFunction imageFeaturePointDetectorFunction) |
Sets or updates the function to detect and describe feature points in an image. More... | |
virtual bool | setFeatureMap (SharedUnifiedFeatureMap featureMap) |
Sets or updates the feature map to be used for relocalization. More... | |
const Vectors3 & | objectPoints () const |
Returns the object points of this relocalizer. More... | |
const Indices32 & | objectPointIds () const |
Returns the ids of the object points of this relocalizer. More... | |
virtual bool | isValid () const |
Returns whether this relocalizer holds a valid map. More... | |
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. More... | |
Protected Member Functions | |
Relocalizer ()=default | |
Default constructor. More... | |
Relocalizer (ImageFeaturePointDetectorFunction imageFeaturePointDetectorFunction) | |
Creates a new relocalizer object. More... | |
Relocalizer & | operator= (Relocalizer &&relocalizer) |
Move operator. More... | |
Protected Attributes | |
ImageFeaturePointDetectorFunction | imageFeaturePointDetectorFunction_ |
The function which detects and describes feature points in a given image. More... | |
SharedUnifiedFeatureMap | featureMap_ |
The feature map to be used when relocalizing. More... | |
RandomGenerator | randomGenerator_ |
The random generator object to be used. More... | |
Lock | lock_ |
The relocalizer's lock. More... | |
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::TrackerStereo, and Ocean::Tracking::MapBuilding::TrackerMono.
|
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.