[−][src]Struct opencv::img_hash::PHash
pHash
Slower than average_hash, but tolerant of minor modifications
This algorithm can combat more variation than averageHash, for more details please refer to lookslikeit
Implementations
impl PHash
[src]
pub fn as_raw_PHash(&self) -> *const c_void
[src]
pub fn as_raw_mut_PHash(&mut self) -> *mut c_void
[src]
impl PHash
[src]
Trait Implementations
impl AlgorithmTrait for PHash
[src]
fn as_raw_Algorithm(&self) -> *const c_void
[src]
fn as_raw_mut_Algorithm(&mut self) -> *mut c_void
[src]
fn clear(&mut self) -> Result<()>
[src]
fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
[src]
fn read(&mut self, fn_: &FileNode) -> Result<()>
[src]
fn empty(&self) -> Result<bool>
[src]
fn save(&self, filename: &str) -> Result<()>
[src]
fn get_default_name(&self) -> Result<String>
[src]
impl Boxed for PHash
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for PHash
[src]
impl ImgHashBaseTrait for PHash
[src]
fn as_raw_ImgHashBase(&self) -> *const c_void
[src]
fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void
[src]
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<()>
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>
impl PHashTrait for PHash
[src]
fn as_raw_PHash(&self) -> *const c_void
[src]
fn as_raw_mut_PHash(&mut self) -> *mut c_void
[src]
impl Send for PHash
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,