Fast image & video fidelity metrics in C & Zig.
Read the wiki for comprehensive documentation (library usage, speed testing, MOS correlation, etc).
Compilation requires Zig ≥0.16.0 & a macOS, Linux, or Unix-like operating system. To compile, run:
zig build --release=fastYou may add -Dflto=true for FLTO, and -Dstrip=true to strip the binary.
fmetrics binary usage:
fmetrics by Halide Compression, LLC | [version]
usage: fmetrics <metric> [options] <reference> <distorted>
compare two images/videos using various perceptual quality metrics
metrics: iwssim, msssim, ssimu2, butter, cvvdp
run `fmetrics <metric> --help` for metric-specific help
options:
-h, --help
show this help message
sRGB PNG, PNM/PAM, QOI, or Y4M input expected
fmetrics is under the Apache 2.0 License. fmetrics is developed by Halide Compression.
Special thanks to Vship, which has inspired parts of fmetrics. Vship is under the MIT NON-AI license.