mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-10 03:49:50 +08:00
Compress features in database
This commit is contained in:
@@ -300,6 +300,18 @@ protected:
|
||||
virtual void getNodeIdByLabelQuery(const std::string & label, int & id) const = 0;
|
||||
virtual void getAllLabelsQuery(std::map<int, std::string> & labels) const = 0;
|
||||
|
||||
protected:
|
||||
std::vector<unsigned char> serializeFeatures(
|
||||
const std::vector<cv::KeyPoint> & keypoints,
|
||||
const std::vector<cv::Point3f> & points3D,
|
||||
const cv::Mat & descriptors);
|
||||
bool deserializeFeatures(
|
||||
const unsigned char * compressedData,
|
||||
unsigned int compressedDataSize,
|
||||
std::vector<cv::KeyPoint> & keypoints,
|
||||
std::vector<cv::Point3f> & points3D,
|
||||
cv::Mat & descriptors);
|
||||
|
||||
private:
|
||||
//non-abstract methods
|
||||
void saveOrUpdate(const std::vector<Signature *> & signatures);
|
||||
|
||||
Reference in New Issue
Block a user