bundle.recon3d.stages.sfm

SfM stage — backend registry and factory.

Submodules

Classes

SfmStage

Base class for SfM backends.

ColmapSfm

COLMAP sparse reconstruction pipeline.

Functions

create_sfm_stage([backend]) → base.SfmStage

Create an SfM stage for the given backend.

Package Contents

class bundle.recon3d.stages.sfm.SfmStage(/, **data: Any)[source]

Bases: bundle.recon3d.stages.base.Stage

Base class for SfM backends.

Subclasses implement _run with the backend-specific pipeline. Common validation and setup lives here.

name: str = 'sfm'
backend: SfmBackend
use_gpu: bool
matcher: str = 'exhaustive'
undistort: bool = True
async run(input: bundle.core.data.Data) → bundle.core.data.Data[source]

Execute the stage and return the output contract.

abstractmethod check_deps() → bool[source]
Async:

Verify that external tools required by this stage are available.

class bundle.recon3d.stages.sfm.ColmapSfm(/, **data: Any)[source]

Bases: bundle.recon3d.stages.sfm.base.SfmStage

COLMAP sparse reconstruction pipeline.

Runs three sequential steps via the colmap CLI:
  1. feature_extractor — GPU-accelerated SIFT

  2. exhaustive_matcher — pairwise feature matching

  3. mapper — incremental sparse reconstruction

name: str = 'sfm.colmap'
backend: bundle.recon3d.stages.sfm.base.SfmBackend
async check_deps() → bool[source]

Verify that external tools required by this stage are available.

bundle.recon3d.stages.sfm.create_sfm_stage(backend: base.SfmBackend = SfmBackend.COLMAP, **kwargs) → base.SfmStage[source]

Create an SfM stage for the given backend.