incremental
incremental
#
reconstruct — a model from images and tracks alone, grown one image at a time.
- Priors. Every image gets a pinhole guess (
growing.load): the focal length from its EXIF 35 mm equivalent, elseFOCAL_PRIORtimes its longer side, and the principal point at its centre. Nothing else is known. - Seed. Among the pairs sharing the most tracks, the first whose
essential-matrix pose triangulates them with a median angle of at least
MIN_SEED_ANGLE_DEGREESstarts the model: its first camera at the origin, its second a unit baseline away, so the model's scale is arbitrary untilalignedor a bundle adjustment with priors fixes it. - Growth. The unregistered image that sees the most placed points is
registered by PnP RANSAC, its unplaced tracks are triangulated, and a
local adjustment refines that camera against its points. Whenever the
point count has grown
GLOBAL_GROWTH-fold since the last one, a global adjustment refines every camera, point and intrinsic, and points that no longer pass the triangulation checks are dropped. Registration ends when no image seesMIN_PNP_POINTSplaced points.
reconstruct(images, tracks)
#
The sparse model tracks imply, with no pose or calibration known in advance.
The result's cameras carry the solved intrinsics at each image's size,
keyed by image index; an image the growth could not register is absent.
Its scale is arbitrary: lock it with aligned against prior poses, or
with bundle_adjust given a position sigma once priors exist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
images
|
Array[Image]
|
The images the tracks index. |
required |
tracks
|
Tracks
|
The tracks of |
required |