Skip to content

[sfm] sfmExpanding: Do not let single-view landmarks keep a pose alive - #2273

Merged
servantftransperfect merged 4 commits into
developfrom
dev/sfmExpandingSupportingLandmarks
Nov 27, 2026
Merged

servantftransperfect merged 4 commits into
developfrom
dev/sfmExpandingSupportingLandmarks

Conversation

@servantftransperfect

Copy link
Copy Markdown
Contributor

Description

In SfmBundle's cleanup, eraseUnstablePoses counted 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 / eraseUnstablePosesAndObservations take an optional minObservationsPerSupportingLandmark (default 1, previous behavior).
  • SfmBundle uses 2 by default, with a getter/setter (MinObservationsPerSupportingLandmark).
  • sfmExpanding: when lockScenePreviouslyReconstructed is 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.

…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.
@servantftransperfect
servantftransperfect merged commit 2947c80 into develop Nov 27, 2026
5 checks passed
@servantftransperfect
servantftransperfect deleted the dev/sfmExpandingSupportingLandmarks branch November 27, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants