arc — ANNOTATE shape op

• Data kinds: image2d → image2d

• Call: import fullseye as fs; fs.ledger.arc(img, center, radius, start_deg, end_deg, color='neutral', width=2, alpha=1.0, scheme='okabe_ito') (implementation को सीधे call करना हो तो import annotate; annotate.arc(img, center, radius, start_deg, end_deg, color='neutral', width=2, alpha=1.0, scheme='okabe_ito'), registry से लेना हो तो opsannotate.get("arc"))

उपयोग

वृत्त का चाप। कोण degree में, screen के x axis से दक्षिणावर्त (क्योंकि row नीचे की ओर है)।

Raises

ValueError

radius positive नहीं, कोण non-finite, start == end, alpha [0,1] के बाहर।

drawing: उन pixels को रंगता है जिनकी केंद्र से दूरी d के लिए |d - radius| <= max(0.6, width/2) हो, और जिनका azimuth start_deg से clockwise (end_deg - start_deg) mod 360 की range में हो (anti-aliasing नहीं)। azimuth atan2(y - cy, x - cx) है, जहाँ 0 degree = दायाँ (+x), 90 degree = नीचे (+y), और clockwise धनात्मक है।

• center: (x, y), x = column, y = row। image के बाहर भी हो सकता है (बाहर निकला हिस्सा बस कट जाता है)।

• radius: positive [px]।

• start_deg, end_deg: degree। start से clockwise end तक बनाता है। अंतर 360 का गुणज हो (end - start 0 नहीं बल्कि 360 आदि) तो पूरा वृत्त। start == end "लंबाई 0" है, इसलिए ValueError।

• width: line width [px]। max(0.6, width/2) को आधी चौड़ाई माना जाता है, इसलिए 1 px से कम पर भी line टूटती नहीं।

• img / color / alpha / scheme का व्यवहार rounded_rect जैसा ही है (float64 copy, [0, 1], role name या RGB)।

• return value: input के समान shape का float64।

कोण लिखने वाले academic figures के तौर-तरीके के लिए annotate_angle leader text तक सब संभालता है।

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

• poc_weld_radiograph_porosity — py -3.11 examples/poc_weld_radiograph_porosity.py

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

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

इसी category के (shape)

rounded_rect · filled_polygon · 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.