fullseye

panel_grid — ANNOTATE compose op

使い方

パネルを格子に並べ、各枠の下にラベルを敷く(montage / contact sheet)。

生成器 6 本がそれぞれ別実装を持っていた、この repo で最も重複していた図の 部品。ここでの流儀:

Parameters

panels : sequence of ndarray 並べる画像((H,W) / (H,W,C)、大きさはばらばらでよい)。 チャンネルの並びは揃っていること。 labels : sequence of str or None 各パネルの見出し。label_h が 0 なら描かない。 ncols : int 列数。行数は ceil(n/ncols)。 title : str or None 全体の表題(title_h が 0 なら font_size+14 を自動で確保)。

Returns

ndarray 新しい合成画像(float [0,1])。大きさは W = 2*pad + ncols*cw + (ncols-1)*padH = title_h + 2*pad + nrows*(ch+label_h) + (nrows-1)*pad

Raises

ValueError panels が空 / チャンネル不一致 / ncols < 1 / 負の余白 / labels の数が合わない。

詳しい使い方ガイド

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

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

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

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

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

同カテゴリ(compose)

zoom_inset · compare_frame


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

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