ds_msp.data¶
The neutral data layer — observation/correspondence containers and the dataset abstraction
consumed by every calibration service (ds_msp.calib, ds_msp.rig) and the detection/IO
layers. Depends only on ds_msp.core and NumPy.
ds_msp.data ¶
Neutral data layer: observation/correspondence containers + the dataset abstraction.
Depends only on core and NumPy. Consumed by every calibration service (calib,
rig) and the IO/detection adapters, so shared record types never force one service to
import another.
BoardObs
dataclass
¶
One planar board seen by one camera in one frame (cf. BoardObs.cpp).
Source code in ds_msp/data/observations.py
CalibDataset
dataclass
¶
An ordered collection of :class:Observation records.
Source code in ds_msp/data/dataset.py
as_parallel_lists ¶
Return (X_world_list, keypoints_list, visibility_list) — the legacy
single-camera view that :func:ds_msp.calib.calibrate consumes.
Source code in ds_msp/data/dataset.py
by_camera ¶
Group observations by cam_id (insertion order preserved per camera).
Source code in ds_msp/data/dataset.py
by_frame ¶
from_parallel_lists
classmethod
¶
from_parallel_lists(X_world_list: Sequence[ndarray], keypoints_list: Sequence[ndarray], visibility_list: Sequence[ndarray], *, cam_id: int = 0) -> 'CalibDataset'
Build a dataset from the legacy parallel lists (one frame per element).
Source code in ds_msp/data/dataset.py
Object3D
dataclass
¶
Several planar boards fused into one rigid 3D point cloud (cf. Object3D.cpp).
Source code in ds_msp/data/observations.py
row_of ¶
Look up the row into :attr:pts_3d for a (board_id, corner_id) pair.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
board_id
|
int
|
One of :attr: |
required |
corner_id
|
int
|
Board-local corner id (as detected by the board's own numbering). |
required |
Returns:
| Type | Description |
|---|---|
int
|
Row index into :attr: |
Raises:
| Type | Description |
|---|---|
KeyError
|
If |
Source code in ds_msp/data/observations.py
ObjectObs
dataclass
¶
One fused object seen by one camera in one frame (cf. Object3DObs.cpp).
Source code in ds_msp/data/observations.py
Observation
dataclass
¶
One view's 3D<->2D correspondences for a single camera in a single frame.
The atomic unit both single-camera calibration and multi-camera rig calibration
build on. points_3d are object/board-frame points; pixels the detected image
points; visibility masks which rows are usable (e.g. decoded + in-bounds).
Source code in ds_msp/data/observations.py
RigState
dataclass
¶
The optimization variable mutated by the staged global BA (rig.bundle).