Repository navigation
[sfm] sfmExpanding: Do not let single-view landmarks keep a pose alive - #2273
Merged
servantftransperfect merged 4 commits intoNov 27, 2026
Merged
Conversation
…ark to support a pose eraseUnstablePoses only counts landmarks with at least minObservationsPerSupportingLandmark observations. The default (1) keeps the previous behavior.
…oses A landmark observed by a single view does not support its pose: e.g. a depth prior landmark created from the view's own rays agrees with any pose of this view.
…emovable They are the reference scene: the cleanup must not erase them.
CedricThebault
approved these changes
Nov 27, 2026
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.
Description
In SfmBundle's cleanup,
eraseUnstablePosescounted every landmark observation as supporting the observing pose. A landmark observed by a single view does not constrain that view's pose: e.g. a depth prior landmark created from the view's own rays agrees with any pose of this view. Such views could therefore survive the cleanup without real support from the rest of the scene.Features list
eraseUnstablePoses/eraseUnstablePosesAndObservationstake an optionalminObservationsPerSupportingLandmark(default 1, previous behavior).SfmBundleuses 2 by default, with a getter/setter (MinObservationsPerSupportingLandmark).sfmExpanding: whenlockScenePreviouslyReconstructedis set, the locked poses are also made non-removable, so the cleanup cannot erase the reference scene.SfmResection: logs the number of 2D-3D candidates and the thresholds.Implementation remarks
The new filter parameter defaults to the previous behavior, so callers outside SfmBundle are unchanged.