segmentation op• 数据种类:image → region
• 调用:fullseye.apply(img, "threshold", a=0.5, b=0.5)(2-D 的模型是一张图 + 两个标量旋钮 a,b∈[0,1])
• HALCON 对应:threshold(其含义与参数可参考 HALCON 手册)

*图为在 128×128 合成输入上实际运行的输出。左为输入,右为输出。点云以俯视散点显示(亮度 = z),一维序列为折线,体数据为沿 z 的最大值投影,视频为中间帧,复数图像为幅值;无法成像的返回值直接显示数值。*
扫描旋钮 a(0.1 / 0.5 / 0.9,另一旋钮取默认):
▸ threshold: 旋钮 a 扫描 (文档网站)
*旋钮 b 不改变输出(实测: 0.1 / 0.5 / 0.9 相同)。*
换别的图像(合成场景 / 照片 / 硬币。上排为输入,下排为对应输出。旋钮取默认):
▸ threshold: 其他输入图像 (文档网站)
*第 4 列是彩色 (H,W,3) 输入。此算子能正确处理颜色而不跨通道(不把颜色通道当作第三个空间轴卷积)。*
全局阈值处理(global threshold)。相当于 HALCON 的 threshold(Segment an image using global threshold.)。
a 就是阈值本身(0〜1),返回以满足 v > a 的像素为前景(1)的 region。b 未使用。HALCON 的 threshold 是可取下限、上限 2 个值的带域阈值,而本实现是只有下限的单侧阈值。
• gallery2d_segmentation 族使用指南
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
下面的程序已确认可以运行(与图相同的输入)。在 Studio 帮助中,此块会变成按钮,可当场加载并运行。
threshold 0.50 0.50
• gallery2d_segmentation — py -3.11 examples/gallery2d_segmentation.py
• poc_bone_trabecular_thickness — py -3.11 examples/poc_bone_trabecular_thickness.py
• poc_change_detection_misreg — py -3.11 examples/poc_change_detection_misreg.py
• poc_fresco_craquelure — py -3.11 examples/poc_fresco_craquelure.py
• poc_gear_tooth_metrology — py -3.11 examples/poc_gear_tooth_metrology.py
• poc_metal_grain_size — py -3.11 examples/poc_metal_grain_size.py
• poc_screw_thread_metrology — py -3.11 examples/poc_screw_thread_metrology.py
• poc_traffic_counting — py -3.11 examples/poc_traffic_counting.py
• poc_water_level — py -3.11 examples/poc_water_level.py
• video_streaming — py -3.11 examples/video_streaming.py
region 作为输入)identity · reg_erode · reg_dilate · reg_open · reg_close · fill_holes · select_largest · remove_small
segmentation)otsu · canny · adaptive_gauss_thresh · sk_otsu · sk_li · sk_yen · sk_sauvola · sk_niblack
*Provenance: ops.py — 2D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.