score oplabels2d × labels2d → tableimport fullseye as fs; fs.ledger.seg_boundary_f(labels_pred, labels_true, *, tau: 'float' = 2.0) -> 'Dict[str, object]' (実装を直接呼ぶなら import segeval; segeval.seg_boundary_f(labels_pred, labels_true, *, tau: 'float' = 2.0) -> 'Dict[str, object]'、台帳から引くなら opssegmentation.get("seg_boundary_f"))境界 F 値(許容距離 τ): 予測の境界画素のうち真の境界から τ 以内にあるものの割合 = precision、逆が recall。
F = 2PR/(P+R)。境界は :func:_boundary の規約(ラベルの割れ目、1 画素幅)なので、ラベルの番号や背景の区別によらない
(分割の形だけを見る)。距離は距離変換(ユークリッド、画素の中心)。τ = 0 で画素の一致。
両方の境界が空(どちらも 1 色)なら P = R = F = 1、片方だけ空なら 0。
返り値: f、precision、recall、tau、n_pred_boundary / n_true_boundary、
dist_pred_to_true / dist_true_to_pred(境界画素ごとの距離)。
py -3.11 examples/poc_am_thermal_to_ct.pypy -3.11 examples/poc_graph_hierarchy_segmentation.pypy -3.11 examples/poc_sem_wafer_defect_edge_bias.pytable を入力に取れる)score)seg_confusion_table · seg_dice_jaccard · seg_hausdorff · seg_mean_surface_distance · seg_under_over_segmentation · seg_object_counts_match · seg_score_card
Provenance: segeval.py — SEGMENTATION operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.