From 3a02d5aaf4e80a1cbbb8bb267cdc3d184bccd4dd Mon Sep 17 00:00:00 2001 From: Dmitriy Korchemkin Date: Thu, 24 Jun 2021 19:04:20 +0300 Subject: [PATCH] Fix typo in LossFunctionWrapper sample code Change-Id: Ideb47fe8d36b023ea13cf2c23b92871bea54fe58 --- include/ceres/loss_function.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ceres/loss_function.h b/include/ceres/loss_function.h index 7aabf7dfc..e48d95354 100644 --- a/include/ceres/loss_function.h +++ b/include/ceres/loss_function.h @@ -374,7 +374,8 @@ class CERES_EXPORT ScaledLoss : public LossFunction { // new AutoDiffCostFunction < UW_Camera_Mapper, 2, 9, 3>( // new UW_Camera_Mapper(feature_x, feature_y)); // -// LossFunctionWrapper* loss_function(new HuberLoss(1.0), TAKE_OWNERSHIP); +// LossFunctionWrapper* loss_function = new LossFunctionWrapper( +// new HuberLoss(1.0), TAKE_OWNERSHIP); // // problem.AddResidualBlock(cost_function, loss_function, parameters); //