area_opening_attr — SEGMENTATION graph op

• 数据种类:image2d → table

• 调用: import fullseye as fs; fs.ledger.area_opening_attr(image, threshold: 'float' = 16.0, *, attribute: 'str' = 'area', connectivity: 'int' = 4) -> 'Dict[str, object]'(要直接调用实现,import seggraph; seggraph.area_opening_attr(image, threshold: 'float' = 16.0, *, attribute: 'str' = 'area', connectivity: 'int' = 4) -> 'Dict[str, object]';从台账取用则 opssegmentation.get("area_opening_attr"))

用法

属性开运算(Salembier 等 1998):删除成分树中属性 < threshold 的节点,并使每个像素取“属性 ≥ 阈值的最近祖先”的值(area_opening_attr)。

attribute = "area"(像素数,与 skimage 的 area_opening 相同的"消除面积小于阈值的明亮结构")或 "diameter" (外接矩形的长边,skimage 的 diameter_opening)。两者都是 2 值集合的 递增属性,所以结果是代数开运算 = 幂等、反扩张、递增。依赖成分中最大值的"高度"不是集合的属性(与 h-maxima 一样)不具幂等性,因此不收录(实测第 2 次时值发生了变化)。

返回: image(开运算的结果)、n_nodes_kept / n_nodes、removed(值下降的像素数)。

详细使用指南

• 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 · quasi_flat_zones · alpha_tree · hierarchical_watershed · ultrametric_contour_map


*Provenance: seggraph.py — SEGMENTATION 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

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