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 と外観検査での落とし穴

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL 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 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.