pub trait ImgHashBaseTraitConst: AlgorithmTraitConst {
    // Required method
    fn as_raw_ImgHashBase(&self) -> *const c_void;

    // Provided method
    fn compare(
        &self,
        hash_one: &impl ToInputArray,
        hash_two: &impl ToInputArray
    ) -> Result<f64> { ... }
}
Expand description

Constant methods for crate::img_hash::ImgHashBase

Required Methods§

Provided Methods§

source

fn compare( &self, hash_one: &impl ToInputArray, hash_two: &impl ToInputArray ) -> Result<f64>

Compare the hash value between inOne and inTwo

Parameters
  • hashOne: Hash value one
  • hashTwo: Hash value two
Returns

value indicate similarity between inOne and inTwo, the meaning of the value vary from algorithms to algorithms

Object Safety§

This trait is not object safe.

Implementors§