paper op• Data kinds: image2d × image2d → image2d
• Call: import fullseye as fs; fs.ledger.annotate_colorbar(img, field, rect, lut=None, vmin=None, vmax=None, alpha=0.6, mask=None, unit='', label_fmt='{:.3g}', orientation='vertical', font_size=12, scheme='okabe_ito', font_path=None, text_color=None, nan_transparent=False) (implementation को सीधे call करना हो तो import annotate; annotate.annotate_colorbar(img, field, rect, lut=None, vmin=None, vmax=None, alpha=0.6, mask=None, unit='', label_fmt='{:.3g}', orientation='vertical', font_size=12, scheme='okabe_ito', font_path=None, text_color=None, nan_transparent=False), registry से लेना हो तो opsannotate.get("annotate_colorbar"))
image (image2d) लौटाता है: scalar field को LUT से रंगकर overlay करता है, साथ में color bar।
t = (field - vmin)/(vmax - vmin) को [0,1] में clip करके lut[round(t*(n-1))] से रंग बनाया जाता है (सीमा से बाहर के मान को छोर का रंग मिलता है -- यह color bar के छोर जैसा ही है, इसलिए झूठ नहीं बनता)। overlay alpha वाला α compositing है; mask देने पर केवल उन्हीं pixels पर।
field : (H, W)
image जितने ही आकार का scalar field। non-finite मान केवल nan_transparent=True होने पर
पारदर्शी के रूप में स्वीकार होते हैं (default में ValueError)।
lut : (n, 3) or None
None हो तो palette.diverging_lut के 256 स्तर।
vmin, vmax : float or None
None हो तो field का (finite मानों का) न्यूनतम / अधिकतम। दोनों बराबर हों तो ValueError।
ValueError
shape का मेल न होना, non-finite (अनुमति के बिना), vmin == vmax, alpha [0,1] के बाहर,
bar का आयत image के बाहर, या LUT का shape।
• figure_annotation family guide
• dataset_conventions — Training dataset के conventions — COCO / YOLO / VOC और visual inspection में सावधानियाँ
• 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 में दिए गए हैं।
• paper_figure — py -3.11 examples/paper_figure.py
image2d को input के रूप में लेते हैं)text_box · arrow · leader_line · label_points · crosshair · legend_box · color_bar · scale_bar
paper)annotate_leader_layout · annotate_leader · annotate_markers · annotate_legend · annotate_dimension_layout · annotate_dimension · annotate_angle_layout · annotate_angle
*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.