#[repr(u32)]pub enum MatchType {
SAD = 0,
ZSAD = 1,
LSAD = 2,
SSD = 3,
ZSSD = 4,
LSSD = 5,
NCC = 6,
ZNCC = 7,
SHD = 8,
}
Expand description
Error metric used by matchTemplate
function
Variants§
SAD = 0
Sum of Absolute Differences
ZSAD = 1
Zero-mean Sum of Absolute Differences
LSAD = 2
Locally scaled Sum of Absolute Differences
SSD = 3
Sum of Squared Differences
ZSSD = 4
Zero-mean Sum of Squared Differences
LSSD = 5
Localy scaled Sum of Squared Differences
NCC = 6
Normalized Cross Correlation
ZNCC = 7
Zero-mean Normalized Cross Correlation
SHD = 8
Sum of Hamming Distances
Trait Implementations§
impl Copy for MatchType
impl StructuralPartialEq for MatchType
Auto Trait Implementations§
impl Freeze for MatchType
impl RefUnwindSafe for MatchType
impl Send for MatchType
impl Sync for MatchType
impl Unpin for MatchType
impl UnwindSafe for MatchType
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