threshold_kapur — SEGMENTATION threshold op

• 数据种类:image2d → table

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

用法

最大熵阈值(Kapur–Sahoo–Wong 1985):使 H(t) = −Σ_(i ≤ t) (p_i/P1) ln(p_i/P1) − Σ_(i > t) (p_i/P2) ln(p_i/P2) 最大的箱 t(仅限两侧概率均为正的箱)。返回:`threshold = 该箱的上端、mask(箱号 > t)、bin、entropy`(H,被排除的箱为 nan)(threshold_kapur)。

详细使用指南

• 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_triangle · threshold_isodata · threshold_kittler


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

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