视觉SLAM十四讲之向量(vector)与容器(unordered_map)的使用
2018-03-17 20:14
507 查看
一:向量 vector
vector基本操作(stl_vector.h):.size()
.begin() .end()
.push_back()
.clear()vector<KeyPoint>基本操作(types.hpp):.pt()//关键点的坐标
.angle()//关键点的方向角vector<DMatch>基本操作(types.hpp).distance()//两匹配点之间的距离
.queryIdx()//第一个匹配点
.trainIdx()//第二个匹配点二:容器 unordered_mapunordered_map<unsigned long, MapPoint::Ptr > map_points_;
unordered_map<unsigned long, Frame::Ptr > keyframes_;基本操作:.size()
.begin() .end()
.clear()
.find()
.insert()*三、矩阵 Mat.at()
.row()
.col()
.ptr()*四、李代数 SE3.log()
.inverse()//转置
.translation()//取变换矩阵的平移部分
vector基本操作(stl_vector.h):.size()
.begin() .end()
.push_back()
.clear()vector<KeyPoint>基本操作(types.hpp):.pt()//关键点的坐标
.angle()//关键点的方向角vector<DMatch>基本操作(types.hpp).distance()//两匹配点之间的距离
.queryIdx()//第一个匹配点
.trainIdx()//第二个匹配点二:容器 unordered_mapunordered_map<unsigned long, MapPoint::Ptr > map_points_;
unordered_map<unsigned long, Frame::Ptr > keyframes_;基本操作:.size()
.begin() .end()
.clear()
.find()
.insert()*三、矩阵 Mat.at()
.row()
.col()
.ptr()*四、李代数 SE3.log()
.inverse()//转置
.translation()//取变换矩阵的平移部分
相关文章推荐
- c++ 标准库的各种容器(vector,deque,map,set,unordered_map,unordered_set,list)的性能考虑
- C++ STL入门教程(1)——vector(向量容器)的使用(附完整程序代码)
- map等关联容器 vector等序列容器 如何防止迭代器失效 即erase()的使用
- stl容器区别(内存布局和使用场合): vector list deque set map
- c++容器(vector|map)中使用函数指针
- C++中防止STL中迭代器失效——map/set等关联容器——vector/list/deque等序列容器—如何防止迭代器失效—即erase()的使用
- c++ 标准库的各种容器(vector,deque,map,set,unordered_map,unordered_set,list)的性能考虑
- vector向量容器中使用insert()方法
- map等关联容器 vector等序列容器 如何防止迭代器失效 即erase()的使用
- 第十章 Scala 容器基础(十四):使用map把一个集合转化为另一个
- c++ 标准库的各种容器(vector,deque,map,set,unordered_map,unordered_set,list)的性能考虑
- C++关联容器(unordered_map,vector,unordered_set)
- c++ 标准库的各种容器(vector,deque,map,set,unordered_map,unordered_set,list)的性能考虑
- C++ Primer学习笔记(11)——(转)c++ 标准库的各种容器(vector,deque,map,set,unordered_map,unordered_set,list)的性能考虑
- C++中防止STL中迭代器失效——map/set等关联容器——vector/list/deque等序列容器—如何防止迭代器失效—即erase()的使用
- C++向量容器vector的使用
- 【语言-C++】C++容器:list、vector、hash、map的区别及使用范围
- map等关联容器 vector等序列容器 如何防止迭代器失效 即erase()的使用
- 使用boost的xxx_list_of函数为静态容器map和vector等赋初值
- C++ STL入门教程(1)——vector(向量容器)的使用(附完整程序代码)