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

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

The base class for image hash algorithms

Required Methods

Provided Methods

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

Implementors