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): void
import { decodeCamera } from '@driftengine/capture';

Parameters

ParameterTypeDescription
poseFloat32Array
atnumber
heightnumber
widthnumber
worldToCameraFloat32Array
intrinsicsFloat32Array