DriftCapture · function

decodeDepth

Depth and confidence from one view's logits, [2, height, width]: exp of the first channel, and one more than exp of the second, into the caller's maps.

Explained in DriftCapture.

function decodeDepth(logits: Float32Array, depth: Float32Array, confidence: Float32Array): void
import { decodeDepth } from '@driftengine/capture';

Parameters

ParameterTypeDescription
logitsFloat32Array
depthFloat32Array
confidenceFloat32Array