overlay op• 資料種類:image2d × pairs → image2d
• 呼叫: import fullseye as fs; fs.ledger.annotate_invert_path(img, points, width=1.5, closed=False, dash=None, mode='complement', alpha=1.0, bits=128, min_contrast=1.5, on_invisible='warn')(要直接呼叫實作,import annotate; annotate.annotate_invert_path(img, points, width=1.5, closed=False, dash=None, mode='complement', alpha=1.0, bits=128, min_contrast=1.5, on_invisible='warn');從台帳取用則 opsannotate.get("annotate_invert_path"))
以反色繪製折線(line)。帶抗鋸齒。
線比區域更不利,這正是把這個 op 分開的原因 —— 粗 1.5 像素的線,其邊緣像素的覆蓋率只有 0.3 左右,所以即使反轉也只按覆蓋率的份額變化。在中間調的底色上,比區域更早消失。判定以「覆蓋率 0.5 以上的像素」進行(低於此值的本來就是半透明,即使看不見也不是反轉造成的)。
points : (N,2)
折線的頂點 (x, y)(像素座標)。
width : float
線的粗細(像素,0.5 以上)。
closed : bool
為真時連接最後一個點和第一個點。
dash : (on, off) or None
虛線的步長(像素)。與 _dash_pieces 規則相同。
mode, alpha, min_contrast, on_invisible :
與 annotate_invert 相同。
(H,W[,C]) float64
疊加了反轉的副本。
>>> import numpy as np, annotate
>>> img = np.zeros((16, 32))
>>> out = annotate.annotate_invert_path(img, [(2, 8), (29, 8)], width=3)
>>> float(out[8, 15]) # 在黑底上,所以成為白線
1.0
>>> float(out[2, 15]) # 離線遠的地方保持原樣
0.0
• dataset_conventions — 訓練資料集規範知識 —— COCO / YOLO / VOC 及外觀檢測中的陷阱
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者、年份)與用途見上面的族使用指南。
• annotate_paper_tour — py -3.11 examples/annotate_paper_tour.py
image2d 作為輸入)text_box · arrow · leader_line · label_points · crosshair · legend_box · color_bar · scale_bar
overlay)overlay_mask · overlay_labels · annotate_invert_visibility · annotate_invert
*Provenance: annotate.py — ANNOTATE 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.