rmsalinas / DBow3

Improved version of DBow2
Other
501 stars 237 forks source link

Does DBow3 support creating vocabulary with brief descriptors? #20

Open MerlotQ opened 6 years ago

MerlotQ commented 6 years ago

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

Yvaine commented 6 years ago

same question, have you solved? @MerlotQ

rmsalinas commented 6 years ago

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

MerlotQ commented 6 years ago

@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.