Add Joint Gravity Estimation with Rigid Rig Constraints for Multi-Camera Rigs#43
Open
sarlinpe wants to merge 1 commit into
Open
Add Joint Gravity Estimation with Rigid Rig Constraints for Multi-Camera Rigs#43sarlinpe wants to merge 1 commit into
sarlinpe wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This pull request introduces support for joint gravity estimation across multiple perspective images in a camera rig. By utilizing known relative rotations between sensors in a camera rig (such as the multi-camera perspectives in a 360 panorama), GeoCalib can now jointly optimize for a single gravity vector defined in the rig coordinate system, rather than estimating gravity independently for each perspective.
Enforcing a shared gravity vector acts as a strong regularizer and significantly improves the accuracy and robustness of gravity estimation, reducing both angular errors and the rate of outliers.
Key Changes
Jacobians Transformation in Perspective Fields:
geocalib/perspective_fields.pyto accept an optionalcamera_R_rigtensor of shape(B, 3, 3).Optimizer Updates for Rig Constraint:
geocalib/lm_optimizer.pyto supportcamera_R_rigin the optimization loop.prior_focalin input data dict), disabling intrinsics optimization and focusing solely on the shared gravity vector.Inference Scripts in COLMAP (
colmaprepository):GeoCalibmodel, and write estimated gravity vectors asPosePriorobjects back to the database, leaving intrinsic parameters fixed.Evaluation Results
We evaluated joint gravity estimation with rigid rig constraints versus independent single-image estimation on the$36$ panoramas = $144$ perspective renderings). In this evaluation, cameras' focal lengths were fixed to their known ground truth priors ($f=705.0$ ) from the beginning (
campus_parterredataset (has_focal_length_prior = True).Results with Fixed Intrinsics Priors ($f=705.0$ locked)
Discussion of Results
Verification Plan
python/examples/geocalib_panorama.py --database_path <db> --image_path <images> --baselineon a test database and verify independent estimates.python/examples/geocalib_panorama.py --database_path <db> --image_path <images>(joint) and verify gravities are written.python/examples/geocalib_evaluate.py --database_path <db> --reconstruction_path <aligned_model>and compare error metrics and recalls.