threshold_triangle — SEGMENTATION threshold op

• 数据种类:image2d → table

• 调用: import fullseye as fs; fs.ledger.threshold_triangle(image, *, nbins: 'int' = 256) -> 'Dict[str, object]'(要直接调用实现,import seggraph; seggraph.threshold_triangle(image, *, nbins: 'int' = 256) -> 'Dict[str, object]';从台账取用则 opssegmentation.get("threshold_triangle"))

用法

三角法(Zack–Rogers–Latt 1977):连接峰顶 (b_p, h_p) 与长尾一侧端点的箱 (b_e, 0),取其间各箱 (b, h_b) 到该线的有符号垂直距离最大的箱为阈值(线的下侧为正)。返回:`threshold(该箱的中心)、mask = image > threshold、bin、distance`(各箱的距离,范围外为 nan)。端点高度为 0、尾侧的选法与 skimage / ImageJ 的约定相同(原文待确认)(threshold_triangle)。

详细使用指南

• 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

同类别(threshold)

threshold_isodata · threshold_kittler · threshold_kapur


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

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