hierarchical_watershed — SEGMENTATION graph op

• 数据种类:image2d → table

• 调用: 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]'(要直接调用实现,import seggraph; seggraph.hierarchical_watershed(image, *, threshold: 'float' = 0.0, n_regions: 'Optional[int]' = None, mask=None, connectivity: 'int' = 4) -> 'Dict[str, object]';从台账取用则 opssegmentation.get("hierarchical_watershed"))

用法

基于 dynamics 的层次分水岭:为地形 `image(低处为盆地)的最小生成森林的边赋予 dynamics 显著度,返回由显著度 ≤ threshold 的边连接的分量(给定 n_regions` 时,使用得到该区域数的最小阈值)(hierarchical_watershed)。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

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

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

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

详细使用指南

• halcon_segmentation 族使用指南

背景知识指南(该算子背后的物理与约定)

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

参考(示例数据・文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

• 算法的正典(作者・年份)与用途见上面的族使用指南。

可运行的示例(实际调用该算子并已验证的样例)

• poc_graph_hierarchy_segmentation — py -3.11 examples/poc_graph_hierarchy_segmentation.py

类型可衔接的下一个算子(可接受 table 作为输入)

class_ndim_norm

同类别(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 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

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