DBoW2-master

所属分类:WEB开发
开发工具:Visual C++
文件大小:575KB
下载次数:14
上传日期:2016-07-28 10:14:01
上 传 者wanshington
说明:  这是词袋模型2的测试程序,从外国的一个网站找到的,用于测试surf生成词袋文件
(This is a bag of words model test procedure 2, a foreign website to find for testing surf generated word document bags)

文件列表:
CMakeLists.txt (3500, 2016-05-02)
LICENSE.txt (2159, 2016-05-02)
demo (0, 2016-05-02)
demo\demo.cpp (5607, 2016-05-02)
demo\images (0, 2016-05-02)
demo\images\image0.png (137276, 2016-05-02)
demo\images\image1.png (139537, 2016-05-02)
demo\images\image2.png (134510, 2016-05-02)
demo\images\image3.png (137032, 2016-05-02)
include (0, 2016-05-02)
include\DBoW2 (0, 2016-05-02)
include\DBoW2\BowVector.h (1885, 2016-05-02)
include\DBoW2\DBoW2.h (2513, 2016-05-02)
include\DBoW2\FBrief.h (1605, 2016-05-02)
include\DBoW2\FClass.h (1642, 2016-05-02)
include\DBoW2\FORB.h (2160, 2016-05-02)
include\DBoW2\FSurf64.h (1908, 2016-05-02)
include\DBoW2\FeatureVector.h (1080, 2016-05-02)
include\DBoW2\QueryResults.h (4142, 2016-05-02)
include\DBoW2\ScoringObject.h (2449, 2016-05-02)
include\DBoW2\TemplatedDatabase.h (36618, 2016-05-02)
include\DBoW2\TemplatedVocabulary.h (39575, 2016-05-02)
src (0, 2016-05-02)
src\BowVector.cpp (2752, 2016-05-02)
src\DBoW2.cmake.in (292, 2016-05-02)
src\FBrief.cpp (2412, 2016-05-02)
src\FORB.cpp (6249, 2016-05-02)
src\FSurf64.cpp (2657, 2016-05-02)
src\FeatureVector.cpp (1831, 2016-05-02)
src\QueryResults.cpp (1384, 2016-05-02)
src\ScoringObject.cpp (7890, 2016-05-02)

DBoW2 ===== DBoW2 is an improved version of the DBow library, an open source C++ library for indexing and converting images into a bag-of-word representation. It implements a hierarchical tree for approximating nearest neighbours in the image feature space and creating a visual vocabulary. DBoW2 also implements an image database with inverted and direct files to index images and enabling quick queries and feature comparisons. The main differences with the previous DBow library are: * DBoW2 classes are templated, so it can work with any type of descriptor. * DBoW2 is shipped with classes to directly work with SURF*** or BRIEF descriptors. * DBoW2 adds a direct file to the image database to do fast feature comparison. This is used by DLoopDetector. * DBoW2 does not use a binary format any longer. On the other hand, it uses the OpenCV storage system to save vocabularies and databases. This means that these files can be stored as plain text in YAML format, making compatibility easier, or compressed in gunzip format (.gz) to reduce disk usage. * Some pieces of code have been rewritten to optimize speed. The interface of DBoW2 has been simplified. * For performance reasons, DBoW2 does not support stop words. DBoW2 requires OpenCV and the `Boost::dynamic_bitset` class in order to use the BRIEF version. DBoW2, along with DLoopDetector, has been tested on several real datasets, yielding an execution time of 3 ms to convert the BRIEF features of an image into a bag-of-words vector and 5 ms to look for image matches in a database with more than 19000 images. ## Citing If you use this software in an academic work, please cite: @ARTICLE{GalvezTRO12, author={G\'alvez-L\'opez, Dorian and Tard\'os, J. D.}, journal={IEEE Transactions on Robotics}, title={Bags of Binary Words for Fast Place Recognition in Image Sequences}, year={2012}, month={October}, volume={28}, number={5}, pages={1188--1197}, doi={10.1109/TRO.2012.2197158}, ISSN={1552-30***} } } ## Installation notes DBoW2 requires [DLib](https://github.com/dorian3d/DLib), which is automatically installed if it cannot be found in the system. You can also find it in [my repository](https://github.com/dorian3d/DLib). DBoW2 requires OpenCV and the `Boost::dynamic_bitset` class in order to use the BRIEF version. You can install Boost by typing: $ sudo apt-get install libboost-dev ## Usage notes ### Weighting and Scoring DBoW2 implements the same weighting and scoring mechanisms as DBow. Check them here. The only difference is that DBoW2 scales all the scores to [0..1], so that the scaling flag is not used any longer. ### Save & Load All vocabularies and databases can be saved to and load from disk with the save and load member functions. When a database is saved, the vocabulary it is associated with is also embedded in the file, so that vocabulary and database files are completely independent. You can also add the vocabulary or database data to any file opened with a `cv::FileStorage` structure. You can save the vocabulary or the database with any file extension. If you use .gz, the file is automatically compressed (OpenCV behaviour). ## Implementation notes ### Template parameters DBoW2 has two main classes: `TemplatedVocabulary` and `TemplatedDatabase`. These implement the visual vocabulary to convert images into bag-of-words vectors and the database to index images. These classes are templated: template class TemplatedVocabulary { ... }; template class TemplatedDatabase { ... }; Two classes must be provided: `TDescriptor` is the data type of a single descriptor vector, and `F`, a class with the functions to manipulate descriptors, derived from `FClass`. For example, to work with SURF descriptors, `TDescriptor` is defined as `std::vector`, where each vector contains *** or 128 float values. When features are extracted from an image, a `std::vector` must be obtained. In the case of BRIEF, `TDescriptor` is defined as `boost::dynamic_bitset<>`. The `F` parameter is the name of a class that implements the functions defined in `FClass`. These functions get `TDescriptor` data and compute some result. Classes to deal with SURF and BRIEF descriptors are already included in DBoW2. (`FSurf***`, `FBrief`). ### Predefined Vocabularies and Databases To make it easier to use, DBoW2 defines two kinds of vocabularies and databases: `Surf***Vocabulary`, `Surf***Database`, `BriefVocabulary`, `BriefDatabase`. Please, check the demo application to see how they are created and used.

近期下载者

相关文件


收藏者