pub struct Similarity {
    pub image: SimilarityImage,
    pub score: f64,
}
Expand description

A struct containing the results of a grayscale comparison

Fields

image: SimilarityImage

Contains 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: f64

the averaged resulting score

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.