BoB robotics
The Brains on Board robotics library
BoBRobotics::Navigation::PerfectMemory< Store > Class Template Reference

Public Types

typedef std::pair< size_t, size_t > Window
 

Public Member Functions

template<class... Ts>
 PerfectMemory (const cv::Size &unwrapRes, Ts &&... args)
 
void train (const cv::Mat &image, const ImgProc::Mask &mask=ImgProc::Mask{})
 
float test (const cv::Mat &image, const ImgProc::Mask &mask, const Window &window) const
 
float test (const cv::Mat &image, const ImgProc::Mask &mask=ImgProc::Mask{}) const
 
void clearMemory ()
 
size_t getNumSnapshots () const
 Return the number of snapshots that have been read into memory.
 
const cv::Mat & getSnapshot (size_t index) const
 Return a specific snapshot.
 
const std::pair< cv::Mat, ImgProc::Mask > & getMaskedSnapshot (size_t index) const
 Return a specific snapshot and mask associated with it.
 
const std::vector< float > & getImageDifferences (const cv::Mat &image, const ImgProc::Mask &mask, const Window &window) const
 Get differences between current view and all stored snapshots.
 
const std::vector< float > & getImageDifferences (const cv::Mat &image, const ImgProc::Mask &mask=ImgProc::Mask{}) const
 Get differences between current view and all stored snapshots.
 
Window getFullWindow () const
 
const cv::Size & getUnwrapResolution () const
 Get the resolution of images.
 

Protected Member Functions

float calcSnapshotDifference (const cv::Mat &image, const ImgProc::Mask &mask, size_t snapshot) const
 

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