Struct image_compare::Similarity
source · [−]pub struct Similarity {
pub image: SimilarityImage,
pub score: f64,
}Expand description
A struct containing the results of a grayscale comparison
Fields
image: SimilarityImageContains the resulting differences per pixel. The buffer will contain the resulting values of the respective algorithms:
- RMS will be between 0. for all-white vs all-black and 1.0 for identical
- SSIM usually is near 1. for similar, near 0. for different but can take on negative values for negative covariances
score: f64the averaged resulting score
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Similarity
impl Send for Similarity
impl Sync for Similarity
impl Unpin for Similarity
impl UnwindSafe for Similarity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more