color_bar — ANNOTATE furniture op

• 資料種類:image2d × lut → image2d

• 呼叫: import fullseye as fs; fs.ledger.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)(要直接呼叫實作,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]。可直接使用 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。

詳細使用指南

• figure_annotation 族使用指南

背景知識指南(該運算子背後的物理與規範)

• 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

• poc_cad_scan_deviation — py -3.11 examples/poc_cad_scan_deviation.py

• poc_ct_void_morphology — py -3.11 examples/poc_ct_void_morphology.py

• poc_dem_terrain — py -3.11 examples/poc_dem_terrain.py

• poc_lidar_terrain_change — py -3.11 examples/poc_lidar_terrain_change.py

• poc_multibeam_bathymetry — py -3.11 examples/poc_multibeam_bathymetry.py

• poc_stockpile_volume — py -3.11 examples/poc_stockpile_volume.py

型別可銜接的下一個運算子(可接受 image2d 作為輸入)

text_box · arrow · leader_line · label_points · crosshair · legend_box · scale_bar · axes_frame

同類別(furniture)

legend_box · scale_bar


*Provenance: annotate.py — ANNOTATE 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.