随笔分类 - 1_1_4cereas优化学习
cereas学习(5) vins-fusion vio融合gps全局优化
摘要:残差定义 Factors.h /******************************************************* * Copyright (C) 2019, Aerial Robotics Group, Hong Kong University of Science a
阅读全文
cereas学习(4) Bundle Adjustment
摘要:http://ceres-solver.org/nnls_tutorial.html ba问题讲解 https://blog.csdn.net/wzheng92/article/details/79714857 空间中一个点在成像平面的坐标系中投影成一个像素。这个投影称为初次投影。如果我们有多个相机
阅读全文
cereas学习(3-2) 稳健的曲线拟合 y=e(0.3x+0.1) 加了高斯噪声0.2 还有额外异常值
摘要:稳健的曲线拟合¶ 现在假设我们得到的数据有一些异常值,即我们有一些不服从噪声模型的点。如果我们使用上面的代码来拟合这些数据,我们将得到如下所示的拟合。注意拟合曲线如何偏离基本事实。 要处理异常值,标准技术是使用 LossFunction. 损失函数减少了具有高残差的残差块的影响,通常是那些对应于异常
阅读全文
cereas学习(0-1) 代价函数CostFunction
摘要:代价函数CostFunction 与其他非线性优化工具包一样,ceres的性能很大程度上依赖于导数计算的精度和效率。这部分工作在ceres中称为 CostFunction, ceres提供了许多种 CostFunction模板,较为常用的包括以下三种: 1、自动导数(AutoDiffCostFunc
阅读全文
cereas学习(3) 曲线拟合 y=e(0.3x+0.1) 加了高斯噪声0.2
摘要:曲线拟合 struct ExponentialResidual { ExponentialResidual(double x, double y) : x_(x), y_(y) {} template <typename T> bool operator()(const T* const m, co
阅读全文
cereas学习(2) 鲍威尔函数 多项式
摘要:struct F4 { template <typename T> bool operator()(const T* const x1, const T* const x4, T* residual) const { // f4 = sqrt(10) (x1 - x4)^2 residual[0]
阅读全文
cereas学习(1)min(10-x)平方
摘要:http://ceres-solver.org/nnls_tutorial.html struct CostFunctor { template <typename T> bool operator()(const T* const x, T* residual) const { residual[
阅读全文