stroke op• 資料種類:image2d → table
• 呼叫: import fullseye as fs; fs.ledger.swt_map(img, dark_on_light: 'bool' = True, sigma: 'float' = 1.0, max_width: 'int' = 64, angle_tol: 'float' = 0.5235987755982988)(要直接呼叫實作,import textregion; textregion.swt_map(img, dark_on_light: 'bool' = True, sigma: 'float' = 1.0, max_width: 'int' = 64, angle_tol: 'float' = 0.5235987755982988);從台帳取用則 opstext.get("swt_map"))
筆畫寬度變換——在每個像素寫入包含該像素的筆畫寬度。
從文字一側的邊界像素出發,沿梯度方向向文字內側發射光線,命中相對的邊界像素(梯度大致反向)時,向光線上的全部像素寫入寬度(邊界像素中心間距離 + 1) (若已有更小的值則取較小者)。依 Epshtein 2010 §3 的步驟,第 2 次掃描把光線上大於中位數的值替換為中位數(抑制角落的過大值)。邊緣的約定
寫在 _edges_and_gradient 中(矩形筆畫的寬度嚴格為整數)。
回傳 dict: swt(寬度陣列,筆畫外為 0)/ edges / n_rays / n_hits(命中相對邊緣的光線數)。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者、年份)與用途見上面的族使用指南。
• poc_text_region_truth — py -3.11 examples/poc_text_region_truth.py
table 作為輸入)stroke)—
*Provenance: textregion.py — TEXT 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.