fullseye

rounded_rect — ANNOTATE shape op

使い方

角丸の矩形(fill=True で塗り)。下敷きや囲みに使う。

Raises

ValueError 矩形が画像の外、radius が負か辺の半分を超える、alpha が [0,1] の外。

描画: 画素中心から「角を丸めた矩形」までの距離で内側判定し、fill=False なら外周から max(1, width) px 幅の帯だけを載せる(距離判定の 1 段階、 アンチエイリアスは無し)。合成は out = m*color + (1-m)*imgalpha を 掛けたもの。

text_box の下敷きや annotate_legend の囲みと同じ見た目を手で組むときに。

詳しい使い方ガイド

背景知識ガイド(この op の手前にある物理・規約)

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(image2d を入力に取れる)

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

同カテゴリ(shape)

filled_polygon · arc · ellipse


Provenance: annotate.py — ANNOTATE operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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