Trait opencv::hub_prelude::ImgHashBaseTraitConst
source · [−]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
source
fn as_raw_ImgHashBase(&self) -> *const c_void
Provided Methods
sourcefn compare(
&self,
hash_one: &dyn ToInputArray,
hash_two: &dyn ToInputArray
) -> Result<f64>
fn compare(
&self,
hash_one: &dyn ToInputArray,
hash_two: &dyn 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