NeoGeographyToolkit / StereoPipeline

The NASA Ames Stereo Pipeline is a suite of automated geodesy & stereogrammetry tools designed for processing planetary imagery captured from orbiting and landed robotic explorers on other planets.
Apache License 2.0
493 stars 173 forks source link

Bundle adjust Ceres optimizations #182

Closed ScottMcMichael closed 6 years ago

ScottMcMichael commented 6 years ago

A few suggested optimizations to increase the efficiency of our bundle_adjust tool:

oleg-alexandrov commented 6 years ago

Zack implemented the Ceres dynamic variant and submitted a pull request.

The LLHError and other similar ones are not the main cost functions used by bundle adjustment. It is conceivable that using the autodiff would speed up computing that error term when the function is given by a formula, but since the slowest term to evaluate in the cost function will still have to use numerical differentiation and projections in to the camera, I doubt the tool will get faster overall.

Maybe this could be kept in mind in the far future when we have more resources to fine-tune this tool.