threshold opimage2d → tableimport 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)。
py -3.11 examples/poc_graph_hierarchy_segmentation.pytable を入力に取れる)class_ndim_norm · fisher_lda_score
threshold)threshold_triangle · threshold_isodata · threshold_kittler
Provenance: seggraph.py — SEGMENTATION operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.