overlay op• 資料種類:image2d × labels → image2d
• 呼叫:import annotate; annotate.overlay_labels(img, labels, alpha=0.5, colors=None, scheme='okabe_ito', background=0)(或 opsannotate.get("overlay_labels"))
以 α 疊加彩色標籤圖。同一標籤號始終是同一顏色。
> 以下的詳細說明為原文 —— 摘要與標題已翻譯。
Parameters
----------
labels : (H,W) int
ラベル番号の地図。`background`(既定 0)は透明。
colors : (k,3) or None
番号 → 色。None なら Okabe–Ito 8 色を番号順に周回する
(乱数を使わないので、同じラベル図なら常に同じ絵になる)。
Raises
------
ValueError
形の不一致 / 負のラベル / alpha が [0,1] の外 / colors の形。
• dataset_conventions — 学習データセット規約の知識 — COCO / YOLO / VOC と外観検査での落とし穴
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者・年份)與用途見上面的族使用指南。
• annotate_gallery — py -3.11 examples/annotate_gallery.py
image2d 作為輸入)text_box · arrow · leader_line · label_points · crosshair · legend_box · color_bar · scale_bar
overlay)*Provenance: annotate.py — ANNOTATE 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.