growing
growing
#
Growing — the model under construction, from loaded tracks to a sealed Reconstruction.
- Load.
loadreads every image's keypoints and its calibration prior, and indexes the track rows so a track's views and an image's tracks are one slice or one mask away. - Grow. The registration loop fills in cameras, points and
observations through the fields;
camerasstacks any subset of the registered ones for the geometry helpers. - Seal.
sealedturns what was placed into aReconstruction: poses at each image's size, coloured points, observations by point.
FOCAL_PRIOR = 1.2
module-attribute
#
Focal length over the longer image side when EXIF names none: a typical phone camera.
Growing
dataclass
#
The model under construction: image priors, tracks, and what has been placed so far.
Source code in capturegraph-recipes/capturegraph_recipes/sfm/reconstruction/growing.py
cameras(images)
#
The registered images stacked, in that order.
Source code in capturegraph-recipes/capturegraph_recipes/sfm/reconstruction/growing.py
registered()
#
rows_of_track(track)
#
The (images, keypoints) of one track's rows.
Source code in capturegraph-recipes/capturegraph_recipes/sfm/reconstruction/growing.py
tracks_of_image(image)
#
The (tracks, keypoints) of one image's rows.
Source code in capturegraph-recipes/capturegraph_recipes/sfm/reconstruction/growing.py
load(images, tracks)
#
An empty model over images and tracks, priors and indices in place.
Raises:
| Type | Description |
|---|---|
ValueError
|
If the track ids are not |
Source code in capturegraph-recipes/capturegraph_recipes/sfm/reconstruction/growing.py
sealed(model)
#
What model placed, as a Reconstruction keyed by image position.