bundle.recon3d.stages.sfm.base¶
Structure-from-Motion stage — base class and I/O contracts.
Attributes¶
Classes¶
Supported Structure-from-Motion backends. |
|
Input contract for the Structure-from-Motion stage. |
|
Output contract from the Structure-from-Motion stage. |
|
Base class for SfM backends. |
Module Contents¶
- bundle.recon3d.stages.sfm.base.log¶
- class bundle.recon3d.stages.sfm.base.SfmBackend[source]¶
-
Supported Structure-from-Motion backends.
- COLMAP = 'colmap'¶
- PYCUSFM = 'pycusfm'¶
- class bundle.recon3d.stages.sfm.base.SfmInput(/, **data: Any)[source]¶
Bases:
bundle.core.data.DataInput contract for the Structure-from-Motion stage.
- images_dir: pathlib.Path¶
- initial_poses: pathlib.Path | None = None¶
- class bundle.recon3d.stages.sfm.base.SfmOutput(/, **data: Any)[source]¶
Bases:
bundle.core.data.DataOutput contract from the Structure-from-Motion stage.
- The sparse reconstruction follows the COLMAP convention:
- sparse_dir/
cameras.bin images.bin points3D.bin
- sparse_dir: pathlib.Path¶
- database_path: pathlib.Path¶
- images_dir: pathlib.Path | None = None¶
- backend: SfmBackend¶
- class bundle.recon3d.stages.sfm.base.SfmStage(/, **data: Any)[source]¶
Bases:
bundle.recon3d.stages.base.StageBase class for SfM backends.
Subclasses implement
_runwith the backend-specific pipeline. Common validation and setup lives here.- backend: SfmBackend¶
- async run(input: bundle.core.data.Data) bundle.core.data.Data[source]¶
Execute the stage and return the output contract.