multiview
multiview
#
multiview — a multi-view model's cameras, points and depths for a set of images.
- Run. As
predict: weights first, then the staged images through the model's driver under the GPU lock, with--multiviewso the set is posed together in one forward pass. - Cameras. Each camera the driver reports (OpenCV camera-to-world at
the staged size) becomes a
Posein the convention every reconstruction shares — OpenGL,yup, looking down-z— with its intrinsics re-expressed at the stored image's size, keyed by the image's position. - Model. The cameras, the driver's points and an empty set of
observations make a scale-free
Reconstruction; the per-image depths areRelativeDepthvalues in that same scale.
multiview(images, model, max_dimension=1600)
#
The cameras, points and depths model predicts for images posed together.
The model is scale-free: cgr.sfm.aligned carries it onto prior
positions, or cgr.sfm.bundle_adjust refines it once tracks exist. Its
points are a seed as they are.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
images
|
Array[Image]
|
The photographs to pose together. |
required |
model
|
Model
|
The model to run. |
required |
max_dimension
|
int
|
The longest side, in pixels, the images are staged at, which is the size the depths come back at. |
1600
|
Raises:
| Type | Description |
|---|---|
ScratchError
|
If no GPU interpreter can be found. |
CalledProcessError
|
If the driver fails; the exception carries the tail of its log. |