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
1
vote
1 answer

Why can't different stl implementations exist using NDK?

I try to build a project based on two open source libraries. The libraries I am using are OpenCV and ceres. The libopencv_java3.so is the release OpenCV3.1.2 from the website github that include OpenCV-3.1.0-android-sdk. The libceres.so is compiled…
Jogging Song
  • 573
  • 6
  • 28
1
vote
1 answer

Conflicting Eigen dependencies when CMake-ing project with Ceres solver

I installed ceres-solver using brew install ceres-solver on macOS. I created a CMake.txt for a client project that uses Ceres. cmake_minimum_required(VERSION 2.8) project(helloworld) find_package(Ceres…
Carpetfizz
  • 8,707
  • 22
  • 85
  • 146
1
vote
1 answer

Installing ceres-solver on centOS7 and getting helloworld.cc to work

Problem: I would like to use Google's ceres-solver library for C++ but am not able to run the helloworld.cc example on its webpage. Installation: I am using (a fresh install of) CentOS7 and am following installation instructions on the…
Abhishek Parab
  • 215
  • 2
  • 11
1
vote
1 answer

Ceres Solver : using smooth approximations for non-linear least squares

We are using Google ceres solver for solving optimization problems arising in a computer vision application. We are using an AutoDiffCostFunction to evaluate the residuals, the dense QR solver is able to optimize the function and find a decent…
1
vote
1 answer

Constraining intrinsic parameters for multi-video camera bundle adjustment within ceres-solver

I have a set of 6 video clips shot by 6 cameras atop a vehicle. I'm trying to use CERES to bundle adjust O(1.4K) frames from these 6 cameras. Presumably the intrinsic parameters for each of the 6 video cameras are constant to very good…
Peter Cho
  • 11
  • 2
1
vote
1 answer

Ceres-Solver fails with "Terminating: Residual and Jacobian evaluation failed." when non-static variable used to define jacobian for-loop

I have a non-linear system I'm using Ceres to solve. It's a sparse system with a sparse block structure. Since I'm also working on image data, I've based my code off of the 'denoising.cc' example. The issue I'm encountering is that my code fails…
1
vote
1 answer

Ceres Solver C++: Segmentation fault: 11

I am trying to solve a nonlinear system using Ceres Solver by Google. The example below comes from this page: http://terpconnect.umd.edu/~petersd/460/html/newtonex1z.html I first create a class called MatlabExample, where I compute the residuals and…
1
vote
0 answers

Opencv imread causes linker errors in liblapack when linking a static library that depends on OpenCV and Ceres-Solver

I am trying to set up compilation of my own library that depends on both OpenCV and Ceres-Solver (http://ceres-solver.org/) using CMake. However when doing so I get linker errors when linking my library to some executables, especially I believe…
Jörg P.
  • 41
  • 5
1
vote
1 answer

Error using Ceres alongside a library with sse/avx

I have a templated library in which some functions are specialized for float and double types. This specialization uses sse/avx, hence, this library has the -march=native -mavx2 compiler flags. When I try to use some function (that is not…
apalomer
  • 1,895
  • 14
  • 36
1
vote
1 answer

Optimising multi-dimensional functions with Ceres

I want to use Ceres to optimise a function of n parameters. How to find the gradient of this function is unclear, although I do have a well defined cost. I have been using GSL so far, with numeric differentiation, but I thought I would try to use…
Mr Squid
  • 1,196
  • 16
  • 34
1
vote
0 answers

Error met on Crystax building Ceres

When I was using Crystax ndk to build Ceres-Solver, I changed the APP_STL := c++_static to APP_STL := gnustl_static for gnustl_static is compatible with OpenCV on android, then I have the libceres.a, I copied it to the project jni folder and added…
潘晓宇
  • 11
  • 4
1
vote
2 answers

pass parameters of double but get Jetwhen using ceres solver

I'm a new learner to Ceres Solver, when adding the residualblock using problem.AddResidualBlock( new ceres::AutoDiffCostFunction (new Opt(Pts[i][j].x, Pts[i][j].y, Pts[i][j].z, Ns[i].at(0, 0), Ns[i].at(1, 0),…
zhouuu
  • 13
  • 1
  • 4
1
vote
1 answer

Ceres-Solver: is a mutable used by a residual functor good pratice? What are other alternatives?

As far as I understand, the interface of Ceres requires each residual to be defined as a functor where operator() is a const member function. Here is an example of what I'm interested in: class some_residual { public: template
Ash
  • 4,611
  • 6
  • 27
  • 41
1
vote
1 answer

Ceres: Compute uncertainty on parameter

I am using Ceres to make a fit, and would like to get an uncertainty for the fit parameters. It has been suggested to use the Covariance class, but I am not sure whether I read the documentation correctly. Here is what I tried in analogy to the…
numberCruncher
  • 595
  • 1
  • 6
  • 25
1
vote
1 answer

Problems building Ceres for iOS with Xcode 9

I'm trying to build Ceres 1.13.0 for iOS 10+ using Xcode 9.2 (9C40b) and CMake 3.11.0-rc3. It seems CMake doesn't recognize the clang version provided by Xcode 9. Is that what's going on? Doesn't seem like it, since an older version of Ceres used to…
Rick
  • 3,298
  • 3
  • 29
  • 47