compression op• Data kinds: image2d → scalar
• Call: import imgmetrics; imgmetrics.compressed_size(a, compressor='lzma') (or opsimgmetrics.get("compressed_size"))
Size in bytes of the array after lossless compression. The raw material for `ncd`.
> The detailed description below is the original text — the summary and the headings are translated.
画像コーデックは使わない ―― 挟むとその実装の癖を測ってしまう。
stdlib の `zlib / lzma` のみ。dtype と shape の違いが結果を変える
ので、比べる 2 枚は同じ dtype・同じ shape であること。
• image_difference_metrics family guide
• 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.
• image_quality_metrics — py -3.11 examples/image_quality_metrics.py
scalar as input)—
compression)*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.