overlay_labels — ANNOTATE overlay op

• Data kinds: image2d × labels → image2d

• Call: import fullseye as fs; fs.ledger.overlay_labels(img, labels, alpha=0.5, colors=None, scheme='okabe_ito', background=0) (implementation को सीधे call करना हो तो import annotate; annotate.overlay_labels(img, labels, alpha=0.5, colors=None, scheme='okabe_ito', background=0), registry से लेना हो तो opsannotate.get("overlay_labels"))

उपयोग

रंगीन label map को α से overlay करता है। एक ही label क्रमांक को हमेशा एक ही रंग।

Parameters

labels : (H,W) int

label numbers का map। background (default 0) पारदर्शी है।

colors : (k,3) or None

number → रंग। None हो तो Okabe–Ito के 8 रंगों को number के क्रम में बारी-बारी से इस्तेमाल करता है

(random numbers का उपयोग नहीं होता, इसलिए एक ही label map से हमेशा एक ही चित्र बनता है)।

Raises

ValueError

shape मेल नहीं खाता / negative label / alpha [0,1] के बाहर / colors का shape।

उपयोग की विस्तृत 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_mri_bias_field — py -3.11 examples/poc_mri_bias_field.py

• poc_recycling_sorting — py -3.11 examples/poc_recycling_sorting.py

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

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

इसी category के (overlay)

overlay_mask · annotate_invert_visibility · annotate_invert · annotate_invert_path


*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.