thierrymalon / DBoW2

Enhanced hierarchical bag-of-word library for C++
Other
1 stars 0 forks source link

Descriptors loading issue #6

Closed thierrymalon closed 9 years ago

thierrymalon commented 9 years ago

So far, I experimented only vocabulary trees with less than 700 dataset images. Some unexpected issues occur when loading the 1012th .desc file. There is also an error when there is 0 descriptor in the file.

thierrymalon commented 9 years ago

.desc files which contain 0 descriptor were bugged when computing the norm of the first descriptor to check if it is a SIFT or a RootSIFT descriptor. A condition has been added on the descriptors vector size (a vector that contains all the descriptors).

As for the 1012th .desc problem, it appears that adding "closedir(repertory)" in the fileAlreadyExists function was a solution.