container_fill_level — DRIVE granular op

• Data kinds: image2d → table

• Call: import fullseye as fs; fs.ledger.container_fill_level(side, *, threshold: 'float' = 0.5) -> 'dict' (to call the implementation directly, import granular; granular.container_fill_level(side, *, threshold: 'float' = 0.5) -> 'dict'; from the registry, opsdrive.get("container_fill_level"))

Usage

Reads the fill fraction and the tilt of the powder surface from a side image of the container interior (powder coverage; container inner dimensions = image).

Fill ratio = mean of the per-column powder surface (threshold crossing, sub-pixel) / number of rows. Powder surface → fit_line → surface_tilt_deg (positive the higher the right side) and surface_rms (deviation from a plane [px]). Raises ValueError: empty (no pixels at or above the threshold) / full so the powder surface is not visible (top row is powder).

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_granular_heap_repose — py -3.11 examples/poc_granular_heap_repose.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (granular)

heap_volume_cone · heap_mass · heap_volume_heightmap · beverloo_rate · beverloo_fit · discharge_synth · dispense_mass_from_video · hopper_discharge_rate


*Provenance: granular.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.