pub struct SimilarComparison {
pub score: f32,
pub identical: bool,
pub brightness_difference: f32,
pub opacity_difference: f32,
pub color_difference: f32,
pub max_cell_difference: f32,
}Expand description
A heuristic fingerprint comparison, not replacement safety or SSIMULACRA2.
Fields§
§score: f320–100; only matching file hashes receive 100. Other matches cap at 99.9.
identical: bool§brightness_difference: f32Mean absolute luminance / alpha and largest mean RGB channel difference. All differences are normalized to 0–1.
opacity_difference: f32§color_difference: f32§max_cell_difference: f32Largest luminance or alpha cell difference; reveals localized changes.
Trait Implementations§
Source§impl Clone for SimilarComparison
impl Clone for SimilarComparison
Source§impl Debug for SimilarComparison
impl Debug for SimilarComparison
Source§impl<'de> Deserialize<'de> for SimilarComparison
impl<'de> Deserialize<'de> for SimilarComparison
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SimilarComparison
impl RefUnwindSafe for SimilarComparison
impl Send for SimilarComparison
impl Sync for SimilarComparison
impl Unpin for SimilarComparison
impl UnsafeUnpin for SimilarComparison
impl UnwindSafe for SimilarComparison
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more