Struct vid_dup_finder_lib::NormalizedTolerance
source · [−]pub struct NormalizedTolerance { /* private fields */ }
Expand description
Tolerance to be applied when searching for duplicates.
Formed of independent tolerances in the spatial domain (allowable difference in the shapes of each frame) and in the temporal domain (allowable differences in movement between frames)
Spatial and temporal tolerances are specified as floating point numbers in the inclusive range (0..1). The higher the number, the more two hashes may differ before they are no longer considered a match. A tolerance of 0 implies two videos will only match if the raw bits of their respective hashes are identical. A tolerance of 1 implies two videos will always match no matter the value of their hashes.
Depending on requirements, useful tolerances appear to be in the range (0.0..0.15).
Implementations
Trait Implementations
sourceimpl Clone for NormalizedTolerance
impl Clone for NormalizedTolerance
sourcefn clone(&self) -> NormalizedTolerance
fn clone(&self) -> NormalizedTolerance
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NormalizedTolerance
impl Debug for NormalizedTolerance
sourceimpl Default for NormalizedTolerance
impl Default for NormalizedTolerance
sourceimpl PartialEq<NormalizedTolerance> for NormalizedTolerance
impl PartialEq<NormalizedTolerance> for NormalizedTolerance
sourcefn eq(&self, other: &NormalizedTolerance) -> bool
fn eq(&self, other: &NormalizedTolerance) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NormalizedTolerance) -> bool
fn ne(&self, other: &NormalizedTolerance) -> bool
This method tests for !=
.
sourceimpl PartialOrd<NormalizedTolerance> for NormalizedTolerance
impl PartialOrd<NormalizedTolerance> for NormalizedTolerance
sourcefn partial_cmp(&self, other: &NormalizedTolerance) -> Option<Ordering>
fn partial_cmp(&self, other: &NormalizedTolerance) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for NormalizedTolerance
impl StructuralPartialEq for NormalizedTolerance
Auto Trait Implementations
impl RefUnwindSafe for NormalizedTolerance
impl Send for NormalizedTolerance
impl Sync for NormalizedTolerance
impl Unpin for NormalizedTolerance
impl UnwindSafe for NormalizedTolerance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.