(
reconstruction: pycolmap.Reconstruction,
ba_options: pycolmap.BundleAdjustmentOptions,
ba_config: pycolmap.BundleAdjustmentConfig,
)
| 12 | |
| 13 | |
| 14 | def solve_bundle_adjustment( |
| 15 | reconstruction: pycolmap.Reconstruction, |
| 16 | ba_options: pycolmap.BundleAdjustmentOptions, |
| 17 | ba_config: pycolmap.BundleAdjustmentConfig, |
| 18 | ) -> pycolmap.BundleAdjustmentSummary: |
| 19 | bundle_adjuster = pycolmap.create_default_bundle_adjuster( |
| 20 | ba_options, ba_config, reconstruction |
| 21 | ) |
| 22 | summary = bundle_adjuster.solve() |
| 23 | # Alternatively, you can customize the existing Ceres problem or options as: |
| 24 | # import pyceres # The minimal bindings in pycolmap aren't sufficient. |
| 25 | # bundle_adjuster = pycolmap.create_default_ceres_bundle_adjuster( |
| 26 | # ba_options, ba_config, reconstruction |
| 27 | # ) |
| 28 | # solver_options = ba_options.ceres.create_solver_options( |
| 29 | # ba_config, bundle_adjuster.problem |
| 30 | # ) |
| 31 | # summary = pyceres.SolverSummary() |
| 32 | # pyceres.solve(solver_options, bundle_adjuster.problem, summary) |
| 33 | return summary |
| 34 | |
| 35 | |
| 36 | def adjust_global_bundle( |
no outgoing calls
no test coverage detected