DynamicNumericDifferCostFunction
class DynamicNumericDiffCostFunctiontemplate <typename CostFunctor, NumericDiffMethodType method = CENTRAL>
class DynamicNumericDiffCostFunction : public CostFunction {
};struct MyCostFunctor {
bool operator()(double const* const* parameters, double* residuals) const {
}
}auto cost_function = std::make_unique<DynamicNumericDiffCostFunction<
MyCostFunctor>>();
cost_function->AddParameterBlock(5);
cost_function->AddParameterBlock(10);
cost_function->SetNumResiduals(21);Last updated