![]() |
BoB robotics
The Brains on Board robotics library
|
Base class for GridRecorder and RouteRecorder. More...
#include <image_database.h>
Public Member Functions | |
cv::FileStorage & | getMetadataWriter () |
Get an object for writing additional metadata to. | |
void | abortSave () |
Don't save new metadata when this class is destroyed. | |
void | save () |
Save new metadata. | |
void | setSaveImages (bool saveImages) |
size_t | size () const |
Current number of new entries for the ImageDatabase. | |
Protected Member Functions | |
Recorder (ImageDatabase &imageDatabase, bool isRoute, std::unique_ptr< FrameWriter > writer, std::vector< std::string > extraFieldNames) | |
void | addEntry (const cv::Mat &image, Entry entry, const std::function< std::string()> &getFileName) |
template<class... Ts> | |
void | addEntry (const cv::Mat &image, const std::function< std::string()> &getFileName, const Pose3< millimeter_t, degree_t > &pose, const std::array< size_t, 3 > &gridPosition, Ts &&... extraFieldValues) |
const ImageDatabase & | getImageDatabase () const |
template<class... Ts> | |
void | setExtraFields (std::string value, Ts &&... otherValues) |
template<class... Ts> | |
void | setExtraFields (const char *value, Ts &&... otherValues) |
template<class T , class... Ts> | |
void | setExtraFields (T value, Ts &&... otherValues) |
void | setExtraFields () const |
Protected Attributes | |
cv::FileStorage | m_YAML |
Base class for GridRecorder and RouteRecorder.