随笔分类 -  SLAM代码

摘要:思路 第一帧为参考帧 对后面每一帧 找到极限方向 进行极线搜索 找出NCC最高的 高斯深度滤波 计算不确定度 高斯融合 dense_mapping.cpp #include<iostream> #include<vector> #include<fstream> using namespace st 阅读全文
posted @ 2022-10-14 12:26 小帆敲代码 阅读(133) 评论(0) 推荐(0) 编辑
摘要:g2o原生位姿图 #include<iostream> #include<fstream> #include<string> #include <g2o/types/slam3d/types_slam3d.h> #include<g2o/core/block_solver.h> #include<g 阅读全文
posted @ 2022-10-11 12:12 小帆敲代码 阅读(198) 评论(0) 推荐(0) 编辑
摘要:Ceres实现代码如下: #include <iostream> #include <ceres/ceres.h> #include "common.h" #include "SnavelyReprojectionError.h" using namespace std; void SolveBA( 阅读全文
posted @ 2022-10-10 11:05 小帆敲代码 阅读(154) 评论(0) 推荐(0) 编辑
摘要:单层光流 void OpticalFlowSingleLevel( const Mat &img1, const Mat &img2, const vector<KeyPoint> &kp1, vector<KeyPoint> &kp2, vector<bool> &success, bool in 阅读全文
posted @ 2022-10-10 09:35 小帆敲代码 阅读(159) 评论(0) 推荐(0) 编辑
摘要:ICP中的使用SVD和使用BA的代码如下: #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/highgui/high 阅读全文
posted @ 2022-10-07 15:20 小帆敲代码 阅读(143) 评论(0) 推荐(0) 编辑
摘要:##代码 #include<iostream> #include<opencv2/core/core.hpp> #include<opencv2/features2d/features2d.hpp> #include<opencv2/highgui/highgui.hpp> #include<chr 阅读全文
posted @ 2022-10-06 22:39 小帆敲代码 阅读(55) 评论(0) 推荐(0) 编辑
摘要:g2o简介 g2o(General Graphical Optimization),是一个在SLAM领域广为使用的优化库。基于图优化理论。 图优化理论 把优化问题表现成图的一种方式。一个图由若干个顶点和连接着这些顶点的边组成。 用顶点表示优化变量,用边表示误差项。对于一个非线性最小二乘问题,我们可以 阅读全文
posted @ 2022-10-06 21:39 小帆敲代码 阅读(246) 评论(0) 推荐(0) 编辑
摘要:Ceres简介 Ceres是一个最小二乘问题求解库。其求解的最小二乘问题的一般形式如下: min12ρi(||fi(xi1,...,xin)||2) s.t.ljxjuj 在这个问题中,x_1,...x 阅读全文
posted @ 2022-10-06 12:21 小帆敲代码 阅读(272) 评论(0) 推荐(0) 编辑
摘要:高斯牛顿法 主要思想是将f(x)进行一阶的泰勒展开。然后求解其最小二乘解。 f(xk+xk)f(xk)+J(xk)Txk 求解问题变为: $$\triangle x^=argmin _{\triangle x}\f 阅读全文
posted @ 2022-10-06 10:48 小帆敲代码 阅读(505) 评论(0) 推荐(0) 编辑
摘要:对‘cv::String::deallocate()’未定义的引用 检查CMakeLists.txt路径拼写 错误:target_link_libraries(gaussNewton ${OpenCV_INCLUDE_LIBS}) 正确:target_link_libraries(gaussNewt 阅读全文
posted @ 2022-10-06 10:41 小帆敲代码 阅读(464) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示