color_bar — ANNOTATE furniture op

• Data kinds: image2d × lut → image2d

• Call: 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) (implementation को सीधे call करना हो तो 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), registry से लेना हो तो opsannotate.get("color_bar"))

उपयोग

LUT की legend (color bar), न्यूनतम, अधिकतम और इकाई के label सहित।

Parameters

lut : (n,3) or (n,)

रंग lookup table। float [0,1]। palette.diverging_lut का output सीधे।

rect : (x, y, w, h)

bar का आयत (ऊपर-बाएँ आधार)।

vmin, vmax : float

दोनों सिरों के मान। vmin == vmax पर ticks का अर्थ मिट जाता है, इसलिए ValueError।

orientation : {'vertical','horizontal'}

'vertical' में ऊपर vmax होता है (row नीचे की ओर है, इसलिए LUT उलटा किया जाता है)।

Returns

ndarray

Raises

ValueError

LUT का shape/range, आयत बाहर निकलना, vmin==vmax, अज्ञात orientation।

उपयोग की विस्तृत guide

• figure_annotation family guide

पृष्ठभूमि guides (इस op के पीछे की physics और conventions)

• dataset_conventions — Training dataset के conventions — COCO / YOLO / VOC और visual inspection में सावधानियाँ

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• 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

वे अगले ops जिनसे type जुड़ता है (image2d को input के रूप में लेते हैं)

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

इसी category के (furniture)

legend_box · scale_bar


*Provenance: annotate.py — ANNOTATE operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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