dorian3d / DBoW2

Enhanced hierarchical bag-of-word library for C++
Other
858 stars 367 forks source link

Added FileNodeIterator for OpenCV 4.X to optimize vocabulary loading #69

Open yhabib29 opened 2 years ago

yhabib29 commented 2 years ago

Since OpenCV 4.0.0, the core module has been completely reimplemented in C++. see https://github.com/opencv/opencv/wiki/ChangeLog#version400

Iterating throught FileNode without iterator has become much more slower. To compare, see test_filenode program in branch yhabib29/DBoW2#dbg-opencv4.

Average time for each loop iteration in function load in TemplatedVocabulary.h:1454:

yhabib29 commented 2 years ago

Duplicate of #68, sorry I did not see the PR