compose op• 資料種類:image2d × image2d → image2d
• 呼叫:import annotate; annotate.compare_frame(left, right, layout='h', labels=None, divider=3, gap=0, divider_color='neutral', background=0.0, label_anchor='lt', label_margin=8, scheme='okabe_ito', **text_kw)(或 opsannotate.get("compare_frame"))
把兩張圖並排,在交界處放分隔線與標籤。
> 以下的詳細說明為原文 —— 摘要與標題已翻譯。
Parameters
----------
left, right : ndarray
比べる 2 枚。大きさが違ってもよい(足りない側は `background` で埋める)。
チャンネル数は揃っていること。
layout : {'h','v'}
`'h' = 左右、'v'` = 上下。
labels : (str, str) or None
それぞれの見出し。
divider : int
仕切りの太さ [px] (0 で無し)。
gap : int
仕切りの両側に空ける余白[px]。
Returns
-------
ndarray
新しい合成画像。
Raises
------
ValueError
チャンネル数の不一致 / 未知の layout / 負の divider・gap /
labels が 2 要素でない。
• dataset_conventions — 学習データセット規約の知識 — COCO / YOLO / VOC と外観検査での落とし穴
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者・年份)與用途見上面的族使用指南。
• annotate_gallery — py -3.11 examples/annotate_gallery.py
image2d 作為輸入)text_box · arrow · leader_line · label_points · crosshair · legend_box · color_bar · scale_bar
compose)*Provenance: annotate.py — ANNOTATE 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.