region op• 資料種類:region → region
• 呼叫:fullseye.apply(img, "fill_holes", a=0.5, b=0.5)(2-D 的模型是一張圖 + 兩個純量旋鈕 a,b∈[0,1])
• HALCON 對應:fill_up(其含義與參數可參考 HALCON 手冊)

*圖為在 128×128 合成輸入上實際執行的輸出。左為輸入,右為輸出。點雲以俯視散點顯示(亮度 = z),一維序列為折線,體資料為沿 z 的最大值投影,影片為中間影格,複數影像為振幅;無法成像的回傳值直接顯示數值。*
*旋鈕 a 不改變輸出(實測: 0.1 / 0.5 / 0.9 相同)。*
*旋鈕 b 不改變輸出(實測: 0.1 / 0.5 / 0.9 相同)。*
階段(前置運算子 → 本運算子,由左至右):
▸ fill_holes: 處理階段 (文件網站)
換別的影像(合成場景 / 照片 / 硬幣。上排為輸入,下排為對應輸出。旋鈕取預設):
▸ fill_holes: 其他輸入影像 (文件網站)
填補區域內的孔洞。相當於 HALCON 的 fill_up(Fill up holes in regions.)。
a、b 未使用。把被前景完全包圍的背景像素(孔)全部變為前景(scipy.ndimage.binary_fill_holes)。與影像邊緣相接的背景不被視為孔,因此不會被填補。
連通性:用於判定孔的背景為 4 連通(scipy.ndimage.binary_fill_holes 的預設)。僅以對角相連的背景不被視為相連,因此在棋盤格圖案中內側的背景像素全部作為孔被填補(8x8 時 32 -> 50 像素。實測與 scipy 的 4 連通參考連位置都一致,與 8 連通不一致)。第 2 實作在這裡選擇了不同的連通性,在差分檢查中暴露出來。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者、年份)與用途見上面的族使用指南。
下面的程式已確認可以執行(與圖相同的輸入)。在 Studio 說明中,此區塊會變成按鈕,可當場載入並執行。
threshold 0.50 0.50 fill_holes 0.50 0.50
• gallery2d_region — py -3.11 examples/gallery2d_region.py
• poc_cell_counting — py -3.11 examples/poc_cell_counting.py
• poc_document_scan — py -3.11 examples/poc_document_scan.py
• poc_leaf_disease_area — py -3.11 examples/poc_leaf_disease_area.py
• poc_mesh_quality_repair — py -3.11 examples/poc_mesh_quality_repair.py
• poc_real_coin_metrology — py -3.11 examples/poc_real_coin_metrology.py
• poc_symmetry_restoration — py -3.11 examples/poc_symmetry_restoration.py
region 作為輸入)identity · reg_erode · reg_dilate · reg_open · reg_close · select_largest · remove_small · invert_region
region)reg_erode · reg_dilate · reg_open · reg_close · select_largest · remove_small · invert_region · dist_transform
*Provenance: ops.py — 2D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.