VINS-mobile
For the VINS mobile of the slam , I just push up to csdn to backup
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-12-26 04:19 VINS-Mobile-master
文件 454 2017-12-26 04:19 VINS-Mobile-master.gitignore
文件 35140 2017-12-26 04:19 VINS-Mobile-masterLICENSE
文件 4024 2017-12-26 04:19 VINS-Mobile-masterREADME.md
目录 0 2017-12-26 04:19 VINS-Mobile-masterResources
文件 81074608 2017-12-26 04:19 VINS-Mobile-masterResourcesoost.a
文件 60030120 2017-12-26 04:19 VINS-Mobile-masterResourcesrief_k10L6.bin
文件 6977 2017-12-26 04:19 VINS-Mobile-masterResourcesrief_pattern.yml
文件 2123528 2017-12-26 04:19 VINS-Mobile-masterResourceslibjpeg.a
目录 0 2017-12-26 04:19 VINS-Mobile-masterThirdParty
目录 0 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoW
文件 2752 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWBowVector.cpp
文件 1885 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWBowVector.h
文件 2230 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWDBoW2.h
文件 2382 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFBrief.cpp
文件 1597 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFBrief.h
文件 1642 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFClass.h
文件 1831 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFeatureVector.cpp
文件 1080 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFeatureVector.h
文件 1384 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWQueryResults.cpp
文件 4142 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWQueryResults.h
文件 7890 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWScoringobject.cpp
文件 2449 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWScoringobject.h
文件 37670 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWTemplatedDatabase.h
文件 41407 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWTemplatedVocabulary.h
目录 0 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtils
文件 1079 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsDException.h
文件 1056 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsDUtils.h
文件 2886 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsRandom.cpp
文件 3690 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsRandom.h
文件 5117 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsTimestamp.cpp
............此处省略1215个文件信息
/**
* File: BowVector.cpp
* Date: March 2011
* Author: Dorian Galvez-Lopez
* Description: bag of words vector
* License: see the LICENSE.txt file
*
*/
#include
#include
#include
#include
#include
#include “BowVector.h“
namespace DBoW2 {
// --------------------------------------------------------------------------
BowVector::BowVector(void)
{
}
// --------------------------------------------------------------------------
BowVector::~BowVector(void)
{
}
// --------------------------------------------------------------------------
void BowVector::addWeight(WordId id WordValue v)
{
BowVector::iterator vit = this->lower_bound(id);
if(vit != this->end() && !(this->key_comp()(id vit->first)))
{
vit->second += v;
}
else
{
this->insert(vit BowVector::value_type(id v));
}
}
// --------------------------------------------------------------------------
void BowVector::addIfNotExist(WordId id WordValue v)
{
BowVector::iterator vit = this->lower_bound(id);
if(vit == this->end() || (this->key_comp()(id vit->first)))
{
this->insert(vit BowVector::value_type(id v));
}
}
// --------------------------------------------------------------------------
void BowVector::normalize(LNorm norm_type)
{
double norm = 0.0;
BowVector::iterator it;
if(norm_type == DBoW2::L1)
{
for(it = begin(); it != end(); ++it)
norm += fabs(it->second);
}
else
{
for(it = begin(); it != end(); ++it)
norm += it->second * it->second;
norm = sqrt(norm);
}
if(norm > 0.0)
{
for(it = begin(); it != end(); ++it)
it->second /= norm;
}
}
// --------------------------------------------------------------------------
std::ostream& operator<< (std::ostream &out const BowVector &v)
{
BowVector::const_iterator vit;
std::vector::const_iterator iit;
unsigned int i = 0;
const unsigned int N = v.size();
for(vit = v.begin(); vit != v.end(); ++vit ++i)
{
out << “<“ << vit->first << “ “ << vit->second << “>“;
if(i < N-1) out << “ “;
}
return out;
}
// --------------------------------------------------------------------------
void BowVector::saveM(const std::string &filename size_t W) const
{
std::fstream f(filename.c_str() std::ios::out);
WordId last = 0;
BowVector::const_iterator bit;
for(bit = this->begin(); bit != this->end(); ++bit)
{
for(; last < bit->first; ++last)
{
f << “0 “;
}
f << bit->second << “ “;
last = bit->first + 1;
}
for(; last < (WordId)W; ++last)
f << “0 “;
f.close();
}
// --------------------------------------------------------------------------
} // namespace DBoW2
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-12-26 04:19 VINS-Mobile-master
文件 454 2017-12-26 04:19 VINS-Mobile-master.gitignore
文件 35140 2017-12-26 04:19 VINS-Mobile-masterLICENSE
文件 4024 2017-12-26 04:19 VINS-Mobile-masterREADME.md
目录 0 2017-12-26 04:19 VINS-Mobile-masterResources
文件 81074608 2017-12-26 04:19 VINS-Mobile-masterResourcesoost.a
文件 60030120 2017-12-26 04:19 VINS-Mobile-masterResourcesrief_k10L6.bin
文件 6977 2017-12-26 04:19 VINS-Mobile-masterResourcesrief_pattern.yml
文件 2123528 2017-12-26 04:19 VINS-Mobile-masterResourceslibjpeg.a
目录 0 2017-12-26 04:19 VINS-Mobile-masterThirdParty
目录 0 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoW
文件 2752 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWBowVector.cpp
文件 1885 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWBowVector.h
文件 2230 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWDBoW2.h
文件 2382 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFBrief.cpp
文件 1597 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFBrief.h
文件 1642 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFClass.h
文件 1831 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFeatureVector.cpp
文件 1080 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWFeatureVector.h
文件 1384 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWQueryResults.cpp
文件 4142 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWQueryResults.h
文件 7890 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWScoringob
文件 2449 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWScoringob
文件 37670 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWTemplatedDataba
文件 41407 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDBoWTemplatedVocabulary.h
目录 0 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtils
文件 1079 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsDException.h
文件 1056 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsDUtils.h
文件 2886 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsRandom.cpp
文件 3690 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsRandom.h
文件 5117 2017-12-26 04:19 VINS-Mobile-masterThirdPartyDUtilsTimestamp.cpp
............此处省略1215个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)