data_range_of — IMGMETRICS report op

Data kinds: image2dscalar

Call: import imgmetrics; imgmetrics.data_range_of(*arrays, data_range=None) (or opsimgmetrics.get("data_range_of"))

Usage

Decide the span the pixel values may take. It does not guess.

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

整数 dtype は dtype から一意に決まる。float は `[0, 1]` に収まっている

ときだけ 1.0 とみなし、それ以外は `data_range` の明示を要求する。

`[0, 1]` の float を 255 だと思って PSNR を測ると 48.13 dB ずれるが

例外は出ない ―― それらしい数値が出るだけなので、ここで止める。

Parameters

----------

*arrays : ndarray

同じ画素値の約束を共有するはずの配列(通常 2 枚)。

data_range : float, optional

明示する場合の幅。正の有限値でなければ `ValueError`。

Returns

-------

float

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 scalar as input)

Same category (report)

compare_images · measure_with · metrics_table


*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.