paper op• データ種: なし → table(引数だけで決まる op —— 画像やデータの入力を取らない)
• 呼び出し: import annotate; annotate.annotate_scale_bar_layout(shape, units_per_pixel, unit='µm', corner='rb', target_fraction=0.2, margin=14, thickness=5) (または opsannotate.get("annotate_scale_bar_layout"))
table(dict)を返す: 画像幅の `target_fraction` 以下で切りのよい長さのバー。
長さは `1/2/5 × 10^k のうち target_fraction * W * units_per_pixel` 以下の
最大値。画素長 = `round(length / units_per_pixel)`。
Returns
-------
dict
`{"length","px","rect":(x,y,w,h),"unit","corner","label"}`。
Raises
------
ValueError
units_per_pixel / target_fraction が非正、未知の corner、
バーが 1 画素未満か画像に収まらない。
• 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
table を入力に取れる)—
paper)annotate_leader_layout · annotate_leader · annotate_markers · annotate_legend · annotate_dimension_layout · annotate_dimension · annotate_angle_layout · annotate_angle
*Provenance: annotate.py — ANNOTATE operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.