paper op• データ種: image2d → image2d
• 呼び出し: import annotate; annotate.annotate_dimension(img, p0, p1, units_per_pixel=1.0, unit='px', offset=20.0, extension=6.0, color='neutral', width=1.5, head_len=9.0, head_width=6.0, label_fmt='{:.1f}', font_size=11, box_alpha=0.6, text_color=None, scheme='okabe_ito', font_path=None, layout=None) (または opsannotate.get("annotate_dimension"))
画像(image2d)を返す: 寸法線(両端矢じり + 補助線 + 値と単位)。
値は `|p1-p0| * units_per_pixel`(閉形式)。幾何は
:func:annotate_dimension_layout。
Raises
------
ValueError
:func:annotate_dimension_layout と同じ + units_per_pixel が非正、
寸法線が画像の外、文字が収まらない。
• dataset_conventions — 学習データセット規約の知識 — COCO / YOLO / VOC と外観検査での落とし穴
• サンプルデータ カタログ(DL URL / ライセンス) — 2-D は skimage.data(BSD/public)+ 合成、3-D は実データ源(Stanford/PDS 等)の DL URL。
• 演算子の来歴・参考文献 — この op 族の元になった研究/手法の出典。
• アルゴリズムの正典(著者・年)と用途は上記ファミリ使い方ガイドに記載。
• paper_figure — py -3.11 examples/paper_figure.py
image2d を入力に取れる)text_box · arrow · leader_line · label_points · crosshair · legend_box · color_bar · scale_bar
paper)annotate_leader_layout · annotate_leader · annotate_markers · annotate_legend · annotate_dimension_layout · annotate_angle_layout · annotate_angle · annotate_scale_bar_layout
*Provenance: annotate.py — ANNOTATE operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.