Solar
Public Member Functions | List of all members
SolAR::api::reloc::IRelocalizer Class Referenceabstract

Returns a camera pose giving a frame. UUID: 3531a734-be88-11e8-a355-529269fb1459 More...

#include <IRelocalizer.h>

Inheritance diagram for SolAR::api::reloc::IRelocalizer:
Inheritance graph
[legend]
Collaboration diagram for SolAR::api::reloc::IRelocalizer:
Collaboration graph
[legend]

Public Member Functions

 IRelocalizer ()=default
 IRelocalizer default constructor.
 
virtual ~IRelocalizer ()=default
 IRelocalizer default destructor.
 
virtual FrameworkReturnCode addKeyframe (const SRef< SolAR::datastructure::Keyframe > keyframe)=0
 Add a keyframe containing a pose and its keypoints and descriptors to the relocalizer. More...
 
virtual FrameworkReturnCode relocalize (const SRef< SolAR::datastructure::Frame > frame, SolAR::datastructure::Transform3Df &pose)=0
 Get the pose of the camera corresponding to the frame. More...
 

Detailed Description

Returns a camera pose giving a frame. UUID: 3531a734-be88-11e8-a355-529269fb1459

This class provides a solution to get the pose given a frame.

Member Function Documentation

◆ addKeyframe()

virtual FrameworkReturnCode SolAR::api::reloc::IRelocalizer::addKeyframe ( const SRef< SolAR::datastructure::Keyframe keyframe)
pure virtual

Add a keyframe containing a pose and its keypoints and descriptors to the relocalizer.

Parameters
[in]keyframethe keyframe to add to the bag of words
Returns
FrameworkReturnCode::SUCCESS if the keyfram adding succeed, else FrameworkReturnCode::_ERROR

◆ relocalize()

virtual FrameworkReturnCode SolAR::api::reloc::IRelocalizer::relocalize ( const SRef< SolAR::datastructure::Frame frame,
SolAR::datastructure::Transform3Df pose 
)
pure virtual

Get the pose of the camera corresponding to the frame.

Parameters
[in]framethe frame for which we want to retrieve close keyframes.
[out]posethe pose of the camera corresponding to the frame
Returns
FrameworkReturnCode::SUCCESS if the retrieve succeed, else FrameworkReturnCode::_ERROR

The documentation for this class was generated from the following file: