[][src]Struct opencv::img_hash::BlockMeanHash

pub struct BlockMeanHash { /* fields omitted */ }

Image hash based on block mean.

See zauner2010implementation for details.

Methods

impl BlockMeanHash[src]

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

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

impl BlockMeanHash[src]

pub fn set_mode(&mut self, mode: i32) -> Result<()>[src]

Create BlockMeanHash object

Parameters

  • mode:

pub fn get_mean(&self) -> Result<VectorOfdouble>[src]

pub fn create(mode: i32) -> Result<PtrOfBlockMeanHash>[src]

C++ default parameters

  • mode: BLOCK_MEAN_HASH_MODE_0

Trait Implementations

impl Algorithm for BlockMeanHash[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 BlockMeanHash[src]

impl Send for BlockMeanHash[src]

impl Drop for BlockMeanHash[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]