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

*图为在 128×128 合成输入上实际运行的输出。左为输入,右为输出(非图像的返回值直接显示其值)。*
Sauvola局部自适应二值化(`skimage.filters.threshold_sauvola,窗口大小为2*int(a*6)+3)。由于同时利用局部平均值与局部标准差来决定阈值,因此比dyn_threshold更能应对照明不均或低对比度的文档。相当于HALCONvar_threshold`(Threshold an image by local mean and standard deviation analysis.)的近似(公式化的构想相似,但Sauvola的公式与HALCON的公式系数不同——数值结果并不相同)。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
`a が局所窓のサイズを振る。b` は未使用(Sauvola の k, r は skimage の
既定値に固定)。
• gallery2d_segmentation 族使用指南
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者・年份)与用途见上面的族使用指南。
下面的程序已确认可以运行(与图相同的输入)。在 Studio 帮助中,此块会变成按钮,可当场加载并运行。
var_threshold 0.50 0.50
▸ Load this pipeline · Load & run
• gallery2d_segmentation — py -3.11 examples/gallery2d_segmentation.py
• poc_document_scan — py -3.11 examples/poc_document_scan.py
region 作为输入)identity · reg_erode · reg_dilate · reg_open · reg_close · fill_holes · select_largest · remove_small
segmentation)threshold · otsu · canny · adaptive_gauss_thresh · sk_otsu · sk_li · sk_yen · sk_sauvola
*Provenance: ops.py — 2D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.