Rust based Command line tool to diff images in 2 structurally similar folders and output diff images.
Comparison is done using the SSIM algorithm at multiple weighed resolutions and relies on the dssim crate for the comparisons of png images.
BMP files are compared using a by pixel sample algorithm and the output is the MOD of the diffrence between each of the pixel components (rgb)
The value returned is 1/SSIM-1, where 0 means identical image, and >0 (unbounded) is amount of difference for PNG.
The value returned for bmp images 0 if images are equal and a positive number that scales with the amout of diffrences.
img_diff -s path\to\images -d path\to\images\to\compare -f path\to\output\diff\images
Will go trough all the files in the -s dir and subdir's and compare them to the ones in the -d outputing diff files if a difrence is found to -f dir.
git clone https://github.com/Mike-Neto/img_diff.git
cd img_diff
cargo build --release
cargo test
cargo doc --open
You need Rust
cargo install img_diff