hierarchical_watershed — SEGMENTATION graph op

• Data kinds: image2d → table

• Call: import fullseye as fs; fs.ledger.hierarchical_watershed(image, *, threshold: 'float' = 0.0, n_regions: 'Optional[int]' = None, mask=None, connectivity: 'int' = 4) -> 'Dict[str, object]' (to call the implementation directly, import seggraph; seggraph.hierarchical_watershed(image, *, threshold: 'float' = 0.0, n_regions: 'Optional[int]' = None, mask=None, connectivity: 'int' = 4) -> 'Dict[str, object]'; from the registry, opssegmentation.get("hierarchical_watershed"))

Usage

Hierarchical watershed by dynamics: attaches the dynamics saliency to the edges of the minimum spanning forest of the relief `image (low places are basins) and returns the components joined by edges with saliency ≤ threshold (if n_regions` is given, the smallest threshold that yields that many regions is used) (hierarchical_watershed).

> The detailed description below is the original text — the summary and the headings are translated.

`mask を与えるとその中だけで(外は 0)。返す: labels(1..k)、n_regions、basins`(閾値 0 の分割 = 分水嶺の

盆地)、`n_basins、dynamics(盆地ごと、各連結成分で最も深い盆地は inf)、levels`(盆地が消える高さの昇順)、

`threshold(実際に使った値)。盆地の数 = dynamics > 閾値 の盆地の数(この関数が数えて返す n_expected`)。

Detailed usage guide

• halcon_segmentation family guide

Background guides (the physics and conventions behind this op)

• graph_hierarchy_and_thresholds — グラフ・階層・閾値の定理でつくる分割 — 何が厳密で、どこで割れ方が倒れるか

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_graph_hierarchy_segmentation — py -3.11 examples/poc_graph_hierarchy_segmentation.py

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

class_ndim_norm

Same category (graph)

graph_cut_binary · alpha_expansion · statistical_region_merging · max_tree · area_opening_attr · quasi_flat_zones · alpha_tree · ultrametric_contour_map


*Provenance: seggraph.py — SEGMENTATION 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.