seg_boundary_f — SEGMENTATION score op

• 数据种类:labels2d × labels2d → table

• 调用: import 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"))

用法

容差 tau 下的边界 F 值:precision = 预测边界像素中落在真边界 tau 距离内的比例,recall 反之(seg_boundary_f)。

F = 2PR/(P+R)。边界遵循 _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(每个边界像素的距离)。

详细使用指南

• halcon_segmentation 族使用指南

背景知识指南(该算子背后的物理与约定)

• segmentation_scoring_and_worlds — 分割评分与带真值的合成世界 —— 哪种度量对哪种失效视而不见

参考(示例数据、文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

• 算法的正典(作者、年份)与用途见上面的族使用指南。

可运行的示例(实际调用该算子并已验证的样例)

• poc_am_thermal_to_ct — py -3.11 examples/poc_am_thermal_to_ct.py

• poc_graph_hierarchy_segmentation — py -3.11 examples/poc_graph_hierarchy_segmentation.py

类型可衔接的下一个算子(可接受 table 作为输入)

class_ndim_norm

同类别(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 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

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