首页 > 其他分享 >Ceres-Solver求解非线性最小二乘问题

Ceres-Solver求解非线性最小二乘问题

时间:2023-02-02 15:33:05浏览次数:57  
标签:function loss Ceres cost Solver ceres problem 二乘

ceres::Problem problem;
ceres::Solver::Options options;
ceres::Solver::Summary summary;

problem和option
定义问题+优化选项, summary为优化过程的verbose

  ResidualBlockId AddResidualBlock(
      CostFunction* cost_function,  # 代价函数
      LossFunction* loss_function,  # 损失函数
      const std::vector<double*>& parameter_blocks);  # 参数列表

loss_function can be nullptr, in which case the cost of the term is just the squared norm of the residuals.
loss_function在未指定(nullptr)的情况下,即为residual的平方范数

cost_function和loss_function和Problem类(或实例化的对象)进行链接

loss_function通常用于减少outlier对cost_function的影响

标签:function,loss,Ceres,cost,Solver,ceres,problem,二乘
From: https://www.cnblogs.com/Todd-Qi/p/17080003.html

相关文章