Questions tagged [ceres-solver]

ceres-solver is an open source C++ library for modeling and solving large, complicated optimization problems.

Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.

  • Non-linear Least Squares problems with bounds constraints.
  • General unconstrained optimization problems.
103 questions
0
votes
0 answers

Link ceres to CGAL to use the smooth_mesh() function

I want to add a smoothing function to my C++ project so I'm trying to use the smooth_mesh() function in the CGAL library. This function requires ceres-solver to work (and glog and Eigen) so I included it in an include folder in my project. My…
Jack
  • 695
  • 10
  • 29
0
votes
1 answer

Build ceres-solver as static library for Mac Catalyst

I'm trying to add tests for our iOS app on the newest Apple Sillicon M1 chip. One of the dependency that our application has on 3rd party libraries is on the Ceres-Solver. I've been trying for a couple of days now to compile ceres for the newest…
0
votes
1 answer

Ceres Solver for logistic growth Curve Fit

I attempt to test how well ceres solver autodiff in fitting a simple logistic growth curve against actual observed data , to my surprise the solver seemed unable to provide solution . Using other c++ solvers , result can be easily obtained with ease…
0
votes
1 answer

building opencv with sfm module issues

I am trying to build opencv with sfm modules I've built and installed gflags then glog and the ceres-solver. Yet the make logs says: Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags. Even though in earlier…
Richard
  • 1
  • 3
0
votes
1 answer

How do I use ceres::CubicInterpolator with data not on a uniform grid

Ceres solver allows interpolation with a piecewise cubic hermite interpolant, which I'm trying to use to create a cubic interpolant for Eigen. This snippet from ceres/examples shows how to set up an interpolator. Adapting it to provide a toy example…
thclark
  • 4,784
  • 3
  • 39
  • 65
0
votes
1 answer

How to use ceres::evaluation_callbacks for inner iteration of ceres::cost functions

I am calculation visual image based on a paper and then optimize my parameters which are focal length, rotation and translation. For that reason I am creating cost function by travelling all the pixel bw real image and virtual image. In my ceres…
0
votes
1 answer

Difference in behavior between between "normal" build and ExternalProject_Add

I am trying to build the ceres-solver on linux using CMake's external project feature. I have a specific version of Eigen that I built and the other dependencies are installed through my packet manager (BLAS, LAPACK and Suitesparse). If I build…
Ebatsin
  • 552
  • 5
  • 17
0
votes
1 answer

Ceres make fails: "Makefile:138: recipe for target 'all' failed"

I am trying to install Ceres on Ubuntu 16.04, following the installation guide on ceres website, however when the make command fails, showing the following error: [ 94%] Built target helloworld_numeric_diff [ 94%] Built target…
Ivan Novikov
  • 558
  • 6
  • 13
0
votes
0 answers

Building ceres-solver for ios with multithreading support

Hello I am trying to build ceres for ios from here I can build fine with the recommended build settings but it builds without multithreading. I would like to add multi-threading support. Is there any way to add multi-threading support with OpenMP,…
Pavan K
  • 4,085
  • 8
  • 41
  • 72
0
votes
1 answer

Ceres bundle adjustment, DENSE_NORMAL_CHOLESKY is faster than SCHUR, but shouldn't be?

I have a simple Bundle adjustment problem, with two cameras, and 230 points that i am trying to solve using Ceres. My goal is to get the absolute fastest solve that i can, but the results that i see seem to contradict the documentation about bundle…
anti
  • 3,011
  • 7
  • 36
  • 86
0
votes
1 answer

ceres solver: how to do data type transformation and operation in operator

I am trying to use ceres solver to optimize the point cloud transformation process. Through following the samples from ceres solver tutorial, I got a simple working version of the optimization process. However, when I try to further modify the…
fanyuan
  • 1
  • 2
0
votes
0 answers

Configure ceres-solver with CMake and can't find SuiteSparse config header

I'm trying to use CMake to configure Ceres to build on my Windows machine. I have Suitesparse v4.4.4 built on my machine and have pointed to all the appropriate directories and libraries. So I believe I have SuiteSparse properly included in the…
gboy
  • 633
  • 1
  • 6
  • 13
0
votes
1 answer

How to dynamically remove residual block or reduce residual block size in Ceres Solver

Can I add or remove a Residual block between optimization iterations? I am trying to use auto differentiation. I am using Ceres-Solver for a camera tracking problem. I want to find the best relative pose by minimizing the photometric errors of…
CathIAS
  • 305
  • 2
  • 15
0
votes
1 answer

Conduct AngleAxisToRotationMatirx on part of a double arrray in Ceres?

Nowadays I'm working with Ceres and Eigen. And I have a 6x3 = 18-d double array, let's call it xs, which is defined as: double xs[6*3]; Basically xs contains the 6 rotations expressed in angle-axis format. And I need to turn each rotation of all 6…
user4225701
0
votes
1 answer

ceres solver analytical derivative doesn't work

template class getResidual : public ceres::SizedCostFunction<1,3> { public: ConcreteOccGridMapUtil* occ; DataContainer dataPoints; getResidual(ConcreteOccGridMapUtil* occ, const DataContainer&…