fullseye

joint_histogram — IMGMETRICS information op

使い方

2 枚の同時ヒストグラム(正規化した同時確率)。

ビン幅は data_range から決める ―― 画像ごとに min/max で伸縮させると、 一様に暗い絵と一様に明るい絵の相互情報量が同じになるので。

手順: 2 枚を平坦化し、両方に 同じ ビン境界 [lo, lo + data_range] (lo = 2 枚の最小値の小さいほう、bins 等分)で numpy.histogram2d を取り、 総数で割って同時確率にする。

joint_entropy / mutual_information / image_entropy はこの表から計算する。

詳しい使い方ガイド

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

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

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

mse · rmse · psnr · ssim · ms_ssim · ssim_map · image_entropy · joint_entropy

同カテゴリ(information)

image_entropy · joint_entropy · mutual_information · normalized_mutual_information


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

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