opencv::mod_prelude

Trait ImgHashBaseTrait

Source
pub trait ImgHashBaseTrait: AlgorithmTrait + ImgHashBaseTraitConst {
    // Required method
    fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void;

    // Provided method
    fn compute(
        &mut self,
        input_arr: &impl ToInputArray,
        output_arr: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::img_hash::ImgHashBase

Required Methods§

Provided Methods§

Source

fn compute( &mut self, input_arr: &impl ToInputArray, output_arr: &mut impl ToOutputArray, ) -> Result<()>

Computes hash of the input image

§Parameters
  • inputArr: input image want to compute hash value
  • outputArr: hash of the image

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§