Skip to content

EncodeEstimateDepthOptions

Defined in: packages/runntime/src/zoo/tasks/cv/depthEstimation.ts:61

The options every encode method takes. Every resource must come from the device passed to initRunntime().

readonly optional encoder?: GpuEncoder

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:38

Records into this encoder, and the caller finishes and submits it, before disposing the runner. It must not have an open pass. Default: a new encoder, submitted before the method returns.

EncodeOptions.encoder


readonly optional normalize?: "none" | "minmax"

Defined in: packages/runntime/src/zoo/tasks/cv/depthEstimation.ts:67

Texture targets only. minmax maps each map to [0, 1], nearest = 0. Default none: the raw values, which an unorm format clamps.


readonly source: GpuImage | GpuTensor<DepthInput>

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:33

EncodeOptions.source


readonly target: GpuImageTarget | GpuTensor<DepthMapData>

Defined in: packages/runntime/src/zoo/tasks/gpu.ts:34

EncodeOptions.target