Код: Выделить всё
struct CostFunctor {
CostFunctor() {};
template
bool operator()(const T* parameters, T* residual) const {
// supposed parameters was an array 'double parameters[]'
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/68375791/ceres-solver-is-there-a-way-to-get-the-value-of-a-jet-as-double-inside-the-cost[/url]