arc — ANNOTATE shape op

資料種類:image2dimage2d

呼叫: 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 朝下)。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

Raises

------

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` が引き出し文字まで面倒を見る。

詳細使用指南

figure_annotation 族使用指南

背景知識指南(該運算子背後的物理與規範)

dataset_conventions — 学習データセット規約の知識 — COCO / YOLO / VOC と外観検査での落とし穴

參考(範例資料・文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者・年份)與用途見上面的族使用指南

可執行的範例(實際呼叫該運算子並已驗證的樣例)

annotate_gallerypy -3.11 examples/annotate_gallery.py

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