[][src]Struct opencv::img_hash::MarrHildrethHash

pub struct MarrHildrethHash { /* fields omitted */ }

Marr-Hildreth Operator Based Hash, slowest but more discriminative.

See zauner2010implementation for details.

Methods

impl MarrHildrethHash[src]

pub fn as_raw_MarrHildrethHash(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl MarrHildrethHash[src]

pub fn get_alpha(&self) -> Result<f32>[src]

self explain

pub fn get_scale(&self) -> Result<f32>[src]

self explain

pub fn set_kernel_param(&mut self, alpha: f32, scale: f32) -> Result<()>[src]

Set Mh kernel parameters

Parameters

  • alpha: int scale factor for marr wavelet (default=2).
  • scale: int level of scale factor (default = 1)

pub fn create(alpha: f32, scale: f32) -> Result<PtrOfMarrHildrethHash>[src]

Parameters

  • alpha: int scale factor for marr wavelet (default=2).
  • scale: int level of scale factor (default = 1)

C++ default parameters

  • alpha: 2.0f
  • scale: 1.0f

Trait Implementations

impl Algorithm for MarrHildrethHash[src]

fn clear(&mut self) -> Result<()>[src]

Clears the algorithm state

fn empty(&self) -> Result<bool>[src]

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

fn save(&self, filename: &str) -> Result<()>[src]

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more

fn get_default_name(&self) -> Result<String>[src]

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more

impl ImgHashBase for MarrHildrethHash[src]

impl Send for MarrHildrethHash[src]

impl Drop for MarrHildrethHash[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]