Solar
|
Recovers a set of pre-recorded keyframes close to a given frame. UUID: f60980ce-bdbd-11e8-a355-529269fb1459
More...
#include <IKeyframeRetriever.h>
Public Member Functions | |
IKeyframeRetriever ()=default | |
IKeyframeRetriever default constructor. | |
virtual | ~IKeyframeRetriever ()=default |
IKeyframeRetriever default destructor. | |
virtual FrameworkReturnCode | addKeyframe (const SRef< SolAR::datastructure::Keyframe > keyframe)=0 |
Add a keyframe to the retrieval model. More... | |
virtual FrameworkReturnCode | suppressKeyframe (uint32_t keyframe_id)=0 |
Suppress a keyframe from the retrieval model. More... | |
virtual FrameworkReturnCode | retrieve (const SRef< SolAR::datastructure::Frame > frame, std::vector< uint32_t > &retKeyframes_id)=0 |
Retrieve a set of keyframes close to the frame pass in input. More... | |
virtual FrameworkReturnCode | retrieve (const SRef< SolAR::datastructure::Frame > frame, const std::set< unsigned int > &canKeyframes_id, std::vector< uint32_t > &retKeyframes_id)=0 |
Retrieve a set of keyframes close to the frame pass in input. More... | |
virtual FrameworkReturnCode | saveToFile (const std::string &file) const =0 |
This method allows to save the keyframe feature to the external file. More... | |
virtual FrameworkReturnCode | loadFromFile (const std::string &file)=0 |
This method allows to load the keyframe feature from the external file. More... | |
virtual FrameworkReturnCode | match (const SRef< SolAR::datastructure::Frame > frame, const SRef< SolAR::datastructure::Keyframe > keyframe, std::vector< SolAR::datastructure::DescriptorMatch > &matches)=0 |
Match a frame with a keyframe. More... | |
virtual FrameworkReturnCode | match (const std::vector< int > &indexDescriptors, const SRef< SolAR::datastructure::DescriptorBuffer > descriptors, const SRef< SolAR::datastructure::Keyframe > keyframe, std::vector< SolAR::datastructure::DescriptorMatch > &matches)=0 |
Match a set of descriptors with a keyframe. More... | |
virtual const SRef< SolAR::datastructure::KeyframeRetrieval > & | getConstKeyframeRetrieval () const =0 |
This method returns the keyframe retrieval. More... | |
virtual std::unique_lock< std::mutex > | getKeyframeRetrieval (SRef< SolAR::datastructure::KeyframeRetrieval > &keyframeRetrieval)=0 |
This method returns the keyframe retrieval. More... | |
virtual void | setKeyframeRetrieval (const SRef< SolAR::datastructure::KeyframeRetrieval > keyframeRetrieval)=0 |
This method is to set the keyframe retrieval. More... | |
Recovers a set of pre-recorded keyframes close to a given frame. UUID: f60980ce-bdbd-11e8-a355-529269fb1459
This class provides a solution to retrieve a set of keyframes corresponding to a given frame.
|
pure virtual |
Add a keyframe to the retrieval model.
[in] | keyframe | the keyframe to add to the retrieval model |
|
pure virtual |
This method returns the keyframe retrieval.
|
pure virtual |
This method returns the keyframe retrieval.
[out] | keyframeRetrieval | the keyframe retrieval of map |
|
pure virtual |
This method allows to load the keyframe feature from the external file.
[in] | file | the file name |
|
pure virtual |
Match a frame with a keyframe.
[in] | frame | the frame to match |
[in] | keyframe | id of keyframe to match |
[out] | matches | a set of matches between frame and keyframe |
|
pure virtual |
Match a set of descriptors with a keyframe.
[in] | indexDescriptors | index of descriptors to match. |
[in] | descriptors | a descriptor buffer contains all descriptors |
[in] | keyframe | id of keyframe to match |
[out] | matches | a set of matches between frame and keyframe |
|
pure virtual |
Retrieve a set of keyframes close to the frame pass in input.
[in] | frame | the frame for which we want to retrieve close keyframes. |
[in] | canKeyframes_id | a set including id of keyframe candidates |
[out] | retKeyframes_id | a set of keyframe ids which are close to the frame pass in input |
|
pure virtual |
Retrieve a set of keyframes close to the frame pass in input.
[in] | frame | the frame for which we want to retrieve close keyframes. |
[out] | retKeyframes_id | a set of keyframe ids which are close to the frame pass in input |
|
pure virtual |
This method allows to save the keyframe feature to the external file.
[in] | file | the file name |
|
pure virtual |
This method is to set the keyframe retrieval.
[in] | keyframeRetrieval | the keyframe retrieval of map |
|
pure virtual |
Suppress a keyframe from the retrieval model.
[in] | keyframe_id | the keyframe to supress from the retrieval model |