Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

SfmTrack

Created by Codex.

Extend a two-dimensional structure-from-motion (SfM) feature track with a reconstructed three-dimensional point and optional red–green–blue (RGB) color.

Open In Colab

Mathematical idea

A reconstructed landmark PjP_j and its observations form the track

Tj={(i,zij)∣zij≈π(Ci,Pj)}.\mathcal T_j=\{(i,z_{ij})\mid z_{ij}\approx\pi(C_i,P_j)\}.

The point PjP_j participates in bundle adjustment, while its red–green–blue (RGB) color is optional display metadata and does not enter the objective.

Relationship to SfmTrack2d

SfmTrack2d stores image measurements and camera indices before a landmark has been reconstructed. SfmTrack inherits that observation list and adds the current landmark estimate p. The color fields r, g, and b are floating-point metadata and do not affect optimization.

Practical notes

SfmData.sfmFactorGraph() uses the 2D observations to construct reprojection factors, while initialization helpers use p as the starting landmark value. The class supports GTSAM serialization for datasets and checkpoints.