metrics_table — IMGMETRICS report op

• Data kinds: metrics → table

• Call: import fullseye as fs; fs.ledger.metrics_table(report, order=None) (to call the implementation directly, import imgmetrics; imgmetrics.metrics_table(report, order=None); from the registry, opsimgmetrics.get("metrics_table"))

Usage

Turn a report into a (name, value) table — the rows describing the conditions are always listed with it.

The point of this op is that a numbers-only table cannot be made. Each item of contract goes into the same table as 条件: <name>.

• report: the return value of compare_images or measure_with (a dict with a contract key). Anything else gives MetricContractError.

• order: the sequence of metric names to put first (if omitted, keys in dictionary order). Names not in report are silently skipped, and "contract" is not listed as a metric.

• Return value: a list of (name, value) tuples. After the metric rows, each item of contract is appended like "条件: data_range", in key dictionary order. Values are not converted (None and inf stay as they are).

Place it right before turning things into a figure caption or Markdown table. Do not paste after deleting the condition rows -- placing 2 PSNRs with different data_range side by side produces an apparent difference of 48 dB.

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_metrics — py -3.11 examples/image_quality_metrics.py

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

luma_limited_u8 · rank_data · tid2013_index · tid2013_by_distortion

Same category (report)

compare_images · measure_with · 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.