tid2013_compare — IMGMETRICS iqa op

• Data kinds: any × any × any → table

• Call: import fullseye as fs; fs.ledger.tid2013_compare(values, author_values, mos, published: 'Optional[Tuple[float, float]]' = None, inf_as: 'Optional[float]' = None) -> 'dict' (to call the implementation directly, import iqatid; iqatid.tid2013_compare(values, author_values, mos, published: 'Optional[Tuple[float, float]]' = None, inf_as: 'Optional[float]' = None) -> 'dict'; from the registry, opsimgmetrics.get("tid2013_compare"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

自前の値と作者の値(同じ組、同じ順)の行ごとの差と、MOS との順位相関を比べる。

`inf_as = 自前の inf` を差を取る前に置き換える値。作者は PSNR の完全一致を 100000.0 と書く(psnr.txt の 106 行、歪み 18)ので

`inf_as=100000.0 で行ごとの差が 0 になる。省略時に inf があれば ValueError`(黙って落とさない)。順位相関は inf を順序として使う。

作者の印は psnr.txt に 111 行あるが、BT.601 の式で Y′ が参照と一致するのは 106 行 —— 残り 5 行(参照 I12 の彩度変化 5 段)は

28 画素の輝度が ちょうど k.5 に落ち、丸めの向きが作者の算術と食い違って 1 LSB 差 → 86.6 dB(半偶数・半切り上げ・float32・整数式を

試しても 111 にはならない、2026-10-04)。そこで `diff_max_finite`(作者も自分も完全一致でない行だけの最大差)と

`sentinel_mismatch_idx / sentinel_mismatch_values`(作者が印・自分は有限の行とその値)を別に返す。門は両方を見る。

返り値: `n、n_inf、n_sentinel_author、diff_max(|自前 − 作者| の最大、印の行も含む)、diff_max_finite / argmax_finite`、

`sentinel_mismatch_idx / sentinel_mismatch_values、inf_not_sentinel_idx(自分が inf・作者は数値)、diff_mean(符号つき平均)、diff_rms、argmax`(最大差の行)、

`srocc / krocc(自前 vs MOS)、srocc_author / krocc_author(作者値 vs MOS)、published` を渡せば

`d_srocc_published / d_krocc_published(自前 − 公表)と d_srocc_author_published / d_krocc_author_published`。

Raises `ValueError: 長さ不一致・nan・inf_as` 無しの inf。

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)

• poc_iqa_fsim_gmsd_vif — py -3.11 examples/poc_iqa_fsim_gmsd_vif.py

• poc_iqa_tid2013 — py -3.11 examples/poc_iqa_tid2013.py

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

luma_limited_u8 · rank_data · tid2013_index · tid2013_by_distortion

Same category (iqa)

luma_limited_u8 · rank_data · rank_spearman · rank_kendall_b · tid2013_published · tid2013_root · tid2013_index · tid2013_metric_values


*Provenance: iqatid.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.