[−][src]Trait opencv::prelude::ImgHashBaseTrait
The base class for image hash algorithms
Required methods
pub fn as_raw_ImgHashBase(&self) -> *const c_void
[src]
pub fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void
[src]
Provided methods
pub fn compute(
&mut self,
input_arr: &dyn ToInputArray,
output_arr: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
input_arr: &dyn ToInputArray,
output_arr: &mut dyn ToOutputArray
) -> Result<()>
Computes hash of the input image
Parameters
- inputArr: input image want to compute hash value
- outputArr: hash of the image
pub fn compare(
&self,
hash_one: &dyn ToInputArray,
hash_two: &dyn ToInputArray
) -> Result<f64>
[src]
&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