shape op• 数据种类:image2d → image2d
• 调用: import fullseye as fs; fs.ledger.arc(img, center, radius, start_deg, end_deg, color='neutral', width=2, alpha=1.0, scheme='okabe_ito')(要直接调用实现,import annotate; annotate.arc(img, center, radius, start_deg, end_deg, color='neutral', width=2, alpha=1.0, scheme='okabe_ito');从台账取用则 opsannotate.get("arc"))
圆弧。角度以度计,从屏幕 x 轴顺时针(因为 row 朝下)。
ValueError
radius 非正、角度非有限、start == end、alpha 在 [0,1] 之外。
绘制: 对到中心的距离 d 满足 |d - radius| <= max(0.6, width/2),且像素方位角位于从 start_deg 顺时针 (end_deg - start_deg) mod 360 的范围内的像素上色(无抗锯齿)。方位角为 atan2(y - cy, x - cx),0 度 = 右(+x),90 度 = 下(+y),顺时针为正。
• center: (x, y),x = 列、y = 行。可以在图像外(超出部分只是被截掉)。
• radius: 正 [px]。
• start_deg, end_deg: 度。从 start 顺时针画到 end。差为 360 的倍数(end - start 不为 0 而是 360 等)时为整圆。start == end 是“长度 0”,所以 ValueError。
• width: 线宽 [px]。以 max(0.6, width/2) 为半宽,所以即使小于 1 px 也不会断开。
• img / color / alpha / scheme 的处理与 rounded_rect 相同(float64 副本、[0, 1]、角色名或 RGB)。
• 返回值: 与输入同形的 float64。
写入角度的学术图的规范,由 annotate_angle 一直照顾到引出文字。
• dataset_conventions — 训练数据集规范知识 —— COCO / YOLO / VOC 及外观检测中的陷阱
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• 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
image2d 作为输入)text_box · arrow · leader_line · label_points · crosshair · legend_box · color_bar · scale_bar
shape)rounded_rect · filled_polygon · ellipse
*Provenance: annotate.py — ANNOTATE 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.