Initial Ceres integration into Blender
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 10 Jun 2012 15:27:41 +0000 (15:27 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 10 Jun 2012 15:27:41 +0000 (15:27 +0000)
commit59ef51aa2753895442aaf2d8e4ef8ff923be3973
tree8a6e6472f44bfe937154d6536669117bd57c6359
parent39e591d3d04015b84fe5f12e7ef5af6507df92af
Initial Ceres integration into Blender

Currently only put sources of Ceres library into extern/libmv/third_party and
setup CMake and SCons building systems.

Integration details:

- Even CMake build files are not re-used from Ceres's trunk: they're using some
  automatic stuff detection like glog, pthreads, protobuf and so and it's not
  so clear how to re-use that files without modifications.
  And IMO it's easier if build files are getting re-generated automatically to
  match Blender-specific setup rather than keeping changes made locally in
  Blender in sync when re-bundling Ceres library. Especially in case when it's
  already needed to support SCons build system.
- Integrated only actual sources, all tests were stripped. Probably it'll be nice
  to have them, but they'll need clear integration with current module test stuff
  in Blender.
- Suitesparse was disabled. It'll help a lot having it, but there are some difficulties
  making cholmod working fine on windows. Would be added in future
- collections_port.cc was also stripped. It's not used by Ceres's upstream and
  it gives compilation error (undefined uint32 -- looks like namespace issue).
- Currently all schur eliminators are included. Not sure if it makes sense,
  also not sure if it makes sense having them switchable on and off -- IMO better
  to have single configuration which works and does not require special tweaks
  after everything was set up.

To bundle updated version of Ceres:
- Go to extern/libmv/third_party/ceres folder
- Run ./bundle.sh

This will checkout fresh Ceres snapshot of Windows branch (which is currently
most interesting from integration into Blender POV), apply all patches listed
in patches/series and copy needed files into Blender's working copy. This will
also re-generate CMake/SCons build rules.

If you'll need extra files from Ceres repository which are not present in
Blender, you'll need to copy them manually and then run ./mkfiles.sh from
extern/libmv/third_party/ceres folder which will update list of files used
by Blender.

Thanks to Leir Mierle and Sameer Agarwal (and all others who helped developing
Ceres) this library and thanks to Keir Mierle with help integrating it into Blender!
168 files changed:
extern/libmv/CMakeLists.txt
extern/libmv/SConscript
extern/libmv/bundle.sh
extern/libmv/mkfiles.sh
extern/libmv/third_party/CMakeLists.txt [new file with mode: 0644]
extern/libmv/third_party/SConscript [new file with mode: 0644]
extern/libmv/third_party/ceres/CMakeLists.txt [new file with mode: 0644]
extern/libmv/third_party/ceres/ChangeLog [new file with mode: 0644]
extern/libmv/third_party/ceres/LICENSE [new file with mode: 0644]
extern/libmv/third_party/ceres/README [new file with mode: 0644]
extern/libmv/third_party/ceres/SConscript [new file with mode: 0644]
extern/libmv/third_party/ceres/bundle.sh [new file with mode: 0644]
extern/libmv/third_party/ceres/files.txt [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/autodiff_cost_function.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/ceres.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/conditioned_cost_function.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/cost_function.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/internal/autodiff.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/internal/eigen.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/internal/fixed_array.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/internal/macros.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/internal/manual_constructor.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/internal/port.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/internal/scoped_ptr.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/iteration_callback.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/jet.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/local_parameterization.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/loss_function.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/normal_prior.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/numeric_diff_cost_function.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/problem.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/rotation.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/sized_cost_function.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/solver.h [new file with mode: 0644]
extern/libmv/third_party/ceres/include/ceres/types.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_evaluate_preparer.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_evaluate_preparer.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_jacobi_preconditioner.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_jacobi_preconditioner.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_jacobian_writer.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_jacobian_writer.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_random_access_dense_matrix.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_random_access_dense_matrix.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_random_access_matrix.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_random_access_matrix.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_random_access_sparse_matrix.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_random_access_sparse_matrix.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_sparse_matrix.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_sparse_matrix.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_structure.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/block_structure.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/canonical_views_clustering.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/canonical_views_clustering.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/casts.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/cgnr_linear_operator.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/cgnr_solver.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/cgnr_solver.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/collections_port.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/compressed_row_jacobian_writer.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/compressed_row_jacobian_writer.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/compressed_row_sparse_matrix.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/compressed_row_sparse_matrix.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/conditioned_cost_function.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/conjugate_gradients_solver.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/conjugate_gradients_solver.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/corrector.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/corrector.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/dense_jacobian_writer.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/dense_qr_solver.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/dense_qr_solver.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/dense_sparse_matrix.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/dense_sparse_matrix.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/detect_structure.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/detect_structure.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/evaluator.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/evaluator.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/file.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/file.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_2_2.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_2_3.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_2_4.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_2_d.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_3_3.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_3_4.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_3_9.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_3_d.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_4_3.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_4_4.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_2_4_d.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_4_4_2.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_4_4_3.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_4_4_4.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_4_4_d.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/generated/schur_eliminator_d_d_d.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/gradient_checking_cost_function.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/gradient_checking_cost_function.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/graph.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/graph_algorithms.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/implicit_schur_complement.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/implicit_schur_complement.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/integral_types.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/iterative_schur_complement_solver.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/iterative_schur_complement_solver.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/levenberg_marquardt.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/levenberg_marquardt.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/linear_least_squares_problems.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/linear_least_squares_problems.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/linear_operator.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/linear_operator.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/linear_solver.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/linear_solver.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/local_parameterization.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/loss_function.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/map_util.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/matrix_proto.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/minimizer.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/mutex.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/normal_prior.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/parameter_block.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/partitioned_matrix_view.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/partitioned_matrix_view.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/problem.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/problem_impl.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/problem_impl.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/program.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/program.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/program_evaluator.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/random.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/residual_block.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/residual_block.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/residual_block_utils.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/residual_block_utils.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/runtime_numeric_diff_cost_function.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/runtime_numeric_diff_cost_function.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/schur_complement_solver.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/schur_complement_solver.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/schur_eliminator.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/schur_eliminator.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/schur_eliminator_impl.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/schur_ordering.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/schur_ordering.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/scratch_evaluate_preparer.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/scratch_evaluate_preparer.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/solver.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/solver_impl.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/solver_impl.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/sparse_matrix.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/sparse_matrix.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/sparse_normal_cholesky_solver.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/sparse_normal_cholesky_solver.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/split.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/stl_util.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/stringprintf.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/stringprintf.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/suitesparse.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/suitesparse.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/triplet_sparse_matrix.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/triplet_sparse_matrix.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/types.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/visibility.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/visibility.h [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/visibility_based_preconditioner.cc [new file with mode: 0644]
extern/libmv/third_party/ceres/internal/ceres/visibility_based_preconditioner.h [new file with mode: 0644]
extern/libmv/third_party/ceres/mkfiles.sh [new file with mode: 0644]
extern/libmv/third_party/ceres/patches/msvc_isfinite.patch [new file with mode: 0644]
extern/libmv/third_party/ceres/patches/series [new file with mode: 0644]
source/blenderplayer/CMakeLists.txt
source/creator/CMakeLists.txt