supervision-js
    Preparing search index...

    Interface DepthMap

    One frame of depth, row-major from the top-left pixel.

    A map is stretched over the whole media rectangle, as masks are, so it may be smaller than the media it describes as long as it keeps its aspect ratio.

    interface DepthMap {
        kind: DepthMapKind;
        view?: string;
        width: number;
        height: number;
        samples: ScaledDepthSamples | PreviewDepthSamples;
        camera?: DepthCamera;
        displayRange?: DepthRange;
        confidence?: Uint8Array<ArrayBufferLike>;
    }
    Index
    view?: string

    Which camera of a stereo pair the map is registered to, such as "left".

    width: number
    height: number
    camera?: DepthCamera

    Needed to convert between disparity and metric depth.

    displayRange?: DepthRange

    The producer's suggested colour range, in the map kind's unit.

    confidence?: Uint8Array<ArrayBufferLike>

    Optional per-pixel confidence, 0 to 255, with the map's dimensions.