makepad/libs/flow/recipes/templates/depth.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

19 lines
446 B
Text

use mod.flow.*
/** The image to measure. */
let image = Input{ type: @image at: vec2(40, 120) }
let depth = Depth{
image: image.image()
model: "da3-metric-large"
at: vec2(360, 120)
}
/** The 16-bit metric depth map. */
let depthmap = Output{ type: @image value: depth.out(@image) at: vec2(680, 120) }
Flow{
label: "Metric depth"
brief: "Estimates a metric depth map from a supplied image."
image, depth, depthmap
}