pub struct Classifier {
pub filter: HaarFilter,
pub quantizer: Quantizer,
}Expand description
A classifier pairs a Haar-like filter with a quantizer. Each classifier contributes 2 bits to the fingerprint.
Fields§
§filter: HaarFilter§quantizer: QuantizerImplementations§
Source§impl Classifier
impl Classifier
Sourcepub fn classify(&self, image: &RollingIntegralImage, offset: usize) -> u32
pub fn classify(&self, image: &RollingIntegralImage, offset: usize) -> u32
Classify: apply filter, quantize result, return Gray-coded 2-bit value.
Trait Implementations§
Source§impl Clone for Classifier
impl Clone for Classifier
Source§fn clone(&self) -> Classifier
fn clone(&self) -> Classifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Classifier
impl Debug for Classifier
impl Copy for Classifier
Auto Trait Implementations§
impl Freeze for Classifier
impl RefUnwindSafe for Classifier
impl Send for Classifier
impl Sync for Classifier
impl Unpin for Classifier
impl UnsafeUnpin for Classifier
impl UnwindSafe for Classifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more