Skip to content
Konjure / spatial intelligence

ImageFrame

← Builtin reference

Decoded byte pixels with an explicit channel axis.

Signature

type ImageFrame { pixels: Tensor[u8]; }

Pixels have shape [height, width, channels], with 1, 3 or 4 channels for Gray, RGB or RGBA. Construction uses the SDK Image validator. Channel order follows the last axis; this value contains no encoded file or device handle.

Fields

pixels: Tensor[u8]
Packed u8 pixels; height and width are positive and channels is 1, 3 or 4.

Examples

Construct ImageFrame

Inspect the typed payload and metadata.

Tick 0 · 0.00 s⌘ / Ctrl + EnterThis device
main.kj
Loading the language runtime…
Output 0
No output.
Expected output
[1, 1, 4]

Rust definition

A checked language record delegating decoded media validation to konjure_sdk::data.

See also