Crate image_compare
source · [−]Expand description
Comparing images
This crate allows to compare grayscale images The easiest use is loading two images, converting them to grayscale and running a comparison:
use image_compare::Algorithm;
let image_one = image::open("image1.png").expect("Could not find test-image").into_luma8();
let image_two = image::open("image2.png").expect("Could not find test-image").into_luma8();
let result = image_compare::gray_similarity(Algorithm::MSSIMSimple, &image_one, &image_two).expect("Images had different dimensions");Check the Algorithm enum for implementation details
Structs
A struct containing the results of a grayscale comparison
Enums
The enum for selecting a grayscale comparison implementation
The errors that can occur during comparison of the images
Functions
The current main function of the crate