seeding
seeding
#
seed and splat_centers — the points a splat's gaussians start from.
A seed is a PointCloud of coloured world points. seed back-projects
the frames' pixels: each frame's own captured depth map, or every pixel at
one constant distance along its ray when a capture measured none.
splat_centers takes the centres of trained splats instead, so a scene's
splat starts from its sessions'.
CONSTANT_GRID = (48, 36)
module-attribute
#
Pixels sampled per frame, across and down, when seeding at a constant distance.
DEPTH_CONFIDENCE = 0.5
module-attribute
#
The least confidence a captured depth pixel needs to seed a point.
seed(frames, distance_meters=None)
#
The frames' pixels as coloured world points.
Each frame contributes its confident captured depth pixels, evenly
thinned to POINTS_PER_FRAME, back-projected through its pose; a frame
without depth contributes nothing. With distance_meters every frame
instead contributes a grid of pixels cast that far along their rays, for
captures that measured no depth at all. The cloud is thinned to
MAX_POINTS.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frames
|
Array[PosedImage]
|
The posed images. |
required |
distance_meters
|
float | None
|
A constant distance to seed at instead of measured depth. |
None
|
Source code in capturegraph-lib/capturegraph/recipes/splats/seeding.py
splat_centers(splats)
#
Every gaussian centre and colour of splats, thinned to MAX_POINTS.
Raises:
| Type | Description |
|---|---|
ValueError
|
If every splat is missing. |