furniture op• 資料種類:image2d × lut → image2d
• 呼叫:import annotate; annotate.color_bar(img, lut, rect, vmin=0.0, vmax=1.0, unit='', label_fmt='{:g}', orientation='vertical', font_size=12, font_path=None, scheme='okabe_ito', border=1, border_color='neutral', text_color=None, style=None)(或 opsannotate.get("color_bar"))
LUT 的圖例(色條),帶最小值・最大值・單位標註。
> 以下的詳細說明為原文 —— 摘要與標題已翻譯。
Parameters
----------
lut : (n,3) or (n,)
色対応表。float [0,1]。:func:palette.diverging_lut の出力をそのまま。
rect : (x, y, w, h)
バーの矩形(左上基準)。
vmin, vmax : float
両端の値。`vmin == vmax` は目盛りの意味が消えるので ValueError。
orientation : {'vertical','horizontal'}
`'vertical'` は 上が vmax(row は下向きなので LUT を反転する)。
Returns
-------
ndarray
Raises
------
ValueError
LUT の形/値域、矩形のはみ出し、vmin==vmax、未知の orientation。
• 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 · scale_bar · axes_frame
furniture)*Provenance: annotate.py — ANNOTATE 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.