DBow3 icon indicating copy to clipboard operation
DBow3 copied to clipboard

Does DBow3 support creating vocabulary with brief descriptors?

Open MerlotQ opened this issue 6 years ago • 3 comments

I could not initialize the brief vocabulary file like DBoW3::Vocabulary voc("./brief_k10L6.bin"); It may need the help of boost lib

MerlotQ avatar Mar 28 '18 05:03 MerlotQ

same question, have you solved? @MerlotQ

Yvaine avatar May 04 '18 03:05 Yvaine

I do not get the point here. What is the problem?

rmsalinas avatar May 04 '18 04:05 rmsalinas

@Yvaine You may have to add a templated function like "loadbin"

` Template<class TDescriptor, class F> void TemplatedVocabulary<TDescriptor,F>::loadBin(const std::string &filename) {

m_words.clear(); m_nodes.clear(); //printf("loop load bin\n"); std::ifstream ifStream(filename); VINSLoop::Vocabulary voc; voc.deserialize(ifStream); ifStream.close(); ... ` Thats how vins deals with .bin inititialization.

MerlotQ avatar May 07 '18 01:05 MerlotQ