Add observed depth constraint in bundle adjustment #2011
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.
This pull request adds support for handling and storing per-observation depth information throughout the Structure-from-Motion (SfM) pipeline. The changes propagate the new depth field in the
Observation
class, update serialization/deserialization logic, and integrate depth constraints into bundle adjustment. This enables the use of measured depth data (e.g., from RGB-D sensors) to improve reconstruction accuracy.Depth support integration:
depth
field to theObservation
class, with getter/setter methods and documentation, allowing each observation to optionally store a measured depth value.Bundle adjustment improvements:
DepthErrorFunctor
to enforce depth constraints in bundle adjustment, and added logic to include a depth residual for observations with valid depth measurements. [1] [2] [3]Pipeline propagation:
Observation
objects.Version update:
sfmDataIO.hpp
to reflect changes.