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.