shape op• 데이터 종류: image2d → image2d
• 호출: import fullseye as fs; fs.ledger.rounded_rect(img, rect, radius=8, color='neutral', width=2, fill=False, alpha=1.0, scheme='okabe_ito')(구현을 직접 호출하려면 import annotate; annotate.rounded_rect(img, rect, radius=8, color='neutral', width=2, fill=False, alpha=1.0, scheme='okabe_ito'), 원장에서 가져오려면 opsannotate.get("rounded_rect"))
모서리가 둥근 사각형(`fill=True` 면 칠하기). 밑판이나 둘러싸기에 씁니다.
> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.
Raises
------
ValueError
矩形が画像の外、radius が負か辺の半分を超える、alpha が [0,1] の外。
描画: 画素中心から「角を丸めた矩形」までの距離で内側判定し、`fill=False`
なら外周から `max(1, width)` px 幅の帯だけを載せる(距離判定の 1 段階、
アンチエイリアスは無し)。合成は `out = m*color + (1-m)*img に alpha` を
掛けたもの。
• `img: (H, W) / (H, W, 1|3|4)。float64 に変換し [0, 1]` にクリップした
複製を返す(入力は変えない)。NaN/Inf は `ValueError`。
• `rect: (x, y, w, h)、x = 列・y = 行。丸めて整数化し、w, h > 0`、
画像内に完全に収まること(はみ出しは切り詰めず `ValueError`)。
占める画素は `x .. x+w-1、y .. y+h-1`。
• `radius: 角の半径 [px]、0 <= radius <= min(w, h)/2`。0 で普通の矩形。
• `color: palette の役割名("neutral" 等、scheme` で解決)か
`[0, 1]` の RGB。グレー画像には RGB の平均を使う。
• 返り値: 入力と同形の float64。
`text_box の下敷きや annotate_legend` の囲みと同じ見た目を手で組むときに。
• dataset_conventions — 学習データセット規約の知識 — COCO / YOLO / VOC と外観検査での落とし穴
• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.
• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.
• 알고리즘의 정전(저자·연도)과 용도는 위의 패밀리 사용 가이드에 적혀 있습니다.
• annotate_gallery — py -3.11 examples/annotate_gallery.py
• poc_machine_condition_fusion — py -3.11 examples/poc_machine_condition_fusion.py
image2d 를 입력으로 받는 것)text_box · arrow · leader_line · label_points · crosshair · legend_box · color_bar · scale_bar
shape)filled_polygon · arc · ellipse
*Provenance: annotate.py — ANNOTATE 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.