Fix an error in the tutorial code for NumericDiffCostFunction

Thanks to Gohteu Nuetah for pointing it out.

Change-Id: Ibfeb9ab9dfbdb259f35b1b8f6b85d30a363db7d4
This commit is contained in:
Sameer Agarwal
2017-02-09 06:41:29 -08:00
parent ccfd7f4dbb
commit 541968497a
+2 -2
View File
@@ -210,8 +210,8 @@ Which is added to the :class:`Problem` as:
.. code-block:: c++
CostFunction* cost_function =
new NumericDiffCostFunction<NumericDiffCostFunctor, ceres::CENTRAL, 1, 1, 1>(
new NumericDiffCostFunctor)
new NumericDiffCostFunction<NumericDiffCostFunctor, ceres::CENTRAL, 1, 1>(
new NumericDiffCostFunctor);
problem.AddResidualBlock(cost_function, NULL, &x);
Notice the parallel from when we were using automatic differentiation