shape op• Data kinds: image2d → image2d
• Call: import fullseye as fs; fs.ledger.rounded_rect(img, rect, radius=8, color='neutral', width=2, fill=False, alpha=1.0, scheme='okabe_ito') (implementation को सीधे call करना हो तो import annotate; annotate.rounded_rect(img, rect, radius=8, color='neutral', width=2, fill=False, alpha=1.0, scheme='okabe_ito'), registry से लेना हो तो opsannotate.get("rounded_rect"))
गोल कोनों वाला rectangle (fill=True से भरा)। backing plate और घेरने वाले box के लिए।
ValueError
आयत image के बाहर, radius negative या भुजा के आधे से अधिक, alpha [0,1] के बाहर।
drawing: pixel केंद्र से "गोल कोनों वाले आयत" तक की दूरी से अंदर होने का निर्णय होता है; fill=False हो तो बाहरी किनारे से max(1, width) px चौड़ी band ही रखी जाती है (दूरी जाँच का 1 स्तर, anti-aliasing नहीं)। compositing out = m*color + (1-m)*img को alpha से गुणा करके होता है।
• img: (H, W) / (H, W, 1|3|4)। float64 में बदलकर [0, 1] पर clip की गई copy लौटाता है (input नहीं बदलता)। NaN/Inf पर ValueError।
• rect: (x, y, w, h), x = column, y = row। round करके integer बनाया जाता है, w, h > 0, और image के अंदर पूरी तरह समाना चाहिए (बाहर निकला हिस्सा काटा नहीं जाता, ValueError होता है)। घेरे गए pixels x .. x+w-1, y .. y+h-1 हैं।
• radius: कोने की radius [px], 0 <= radius <= min(w, h)/2। 0 पर सामान्य आयत।
• color: palette का role name ("neutral" आदि, scheme से हल होता है) या [0, 1] का RGB। grey images के लिए RGB का औसत इस्तेमाल होता है।
• return value: input के समान shape का float64।
जब text_box की नीचे वाली plate या annotate_legend के घेरे जैसा ही रूप हाथ से बनाना हो।
• 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 में दिए गए हैं।
• annotate_gallery — py -3.11 examples/annotate_gallery.py
• poc_machine_condition_fusion — py -3.11 examples/poc_machine_condition_fusion.py
image2d को input के रूप में लेते हैं)text_box · arrow · leader_line · label_points · crosshair · legend_box · color_bar · scale_bar
shape)filled_polygon · arc · ellipse
*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.