compare_images — IMGMETRICS report op

Data kinds: image2d × image2dmetrics

Call: import imgmetrics; imgmetrics.compare_images(a, b, data_range=None, bins=64, channel_axis=None, ms=False) (or opsimgmetrics.get("compare_images"))

Usage

Measure several metrics at once and return what was measured and how, alongside the numbers.

> The detailed description below is the original text — the summary and the headings are translated.

返り値の `contractdata_range / bins / crop_border` /

SSIM の窓を入れてあるのは、数値だけを図注に写して条件が消えるのを

防ぐため(この repo で実際に起きた事故の型)。

Returns

-------

dict

``{"mse", "rmse", "psnr", "ssim", "mutual_information",

"normalized_mutual_information", "ncd", "contract": {...}}``。

`ms=True なら ms_ssim も(成立しない大きさなら ValueError`)。

カラー画像で `channel_axis を渡すと delta_e_2000_mean` も入る。

Detailed usage guide

image_difference_metrics family guide

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

image_quality_metricspy -3.11 examples/image_quality_metrics.py

Ops the type connects to (they accept metrics as input)

measure_with · metrics_table

Same category (report)

measure_with · metrics_table · data_range_of


*Provenance: imgmetrics.py — IMGMETRICS operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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