DriftCapture · function
decodeCamera
One view's camera from its pose encoding: worldToCamera, 3 × 4 row-major — the inverse of the
camera-to-world rotation and translation the decoder predicts — and intrinsics, 3 × 3 row-major,
with focal lengths from the two fields of view and the principal point at the centre.
Explained in DriftCapture.
function decodeCamera(pose: Float32Array, at: number, height: number, width: number, worldToCamera: Float32Array, intrinsics: Float32Array): voidimport { decodeCamera } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
pose | Float32Array | |
at | number | |
height | number | |
width | number | |
worldToCamera | Float32Array | |
intrinsics | Float32Array |