triangulation
triangulation
#
triangulate — tracks placed in the world by the cameras that saw them.
- Pixels. Each frame's
keypointsgive the pixel every track row names; the frames' poses give the cameras. - Solve. Every track is triangulated by the N-view DLT
(
geometry.triangulated) from all of its views at once. - Check. A point survives only when two of its views see it from at
least
MIN_ANGLE_DEGREESapart, it lies in front of every one of them, and it reprojects withinMAX_REPROJECTION_PX;triangulated_tracksis this solve-and-check, which the incremental reconstruction reuses.
track_colors(colors, track, camera, keypoint)
#
The mean keypoint colour of each track, one uint8 row per distinct track in order.
Source code in capturegraph-recipes/capturegraph_recipes/sfm/reconstruction/triangulation.py
triangulate(frames, tracks)
#
The sparse model of frames' poses and the tracks they triangulate.
Every frame's pose is a camera of the result, keyed by its index; a point's colour is the mean of its keypoints' colours; the observations are the kept tracks' rows.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frames
|
Array[PosedImage]
|
The posed images the tracks index. |
required |
tracks
|
Tracks
|
The tracks of |
required |
Source code in capturegraph-recipes/capturegraph_recipes/sfm/reconstruction/triangulation.py
triangulated_tracks(cameras, pixels, track, camera, keypoint)
#
Every track solved from its rows and checked.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cameras
|
Cameras
|
The cameras the |
required |
pixels
|
list[ndarray]
|
Each camera's keypoint pixels, indexed by |
required |
track
|
ndarray
|
The track of each row; rows are grouped by track. |
required |
camera
|
ndarray
|
The camera of each row. |
required |
keypoint
|
ndarray
|
The keypoint of each row. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
|
ndarray
|
tracks, those tracks' ids in point order, how many tracks each |
dict[str, int]
|
rejection reason removed, and the kept points' mean reprojection |
ndarray
|
errors in pixels. |