Enum opencv::imgproc::HistCompMethods
source · [−]#[repr(C)]
pub enum HistCompMethods {
HISTCMP_CORREL,
HISTCMP_CHISQR,
HISTCMP_INTERSECT,
HISTCMP_BHATTACHARYYA,
HISTCMP_CHISQR_ALT,
HISTCMP_KL_DIV,
}Expand description
Histogram comparison methods @ingroup imgproc_hist
Variants
HISTCMP_CORREL
Correlation
where
and
is a total number of histogram bins.
HISTCMP_CHISQR
Chi-Square
HISTCMP_INTERSECT
Intersection
HISTCMP_BHATTACHARYYA
Bhattacharyya distance
(In fact, OpenCV computes Hellinger distance, which is related to Bhattacharyya coefficient.)
HISTCMP_CHISQR_ALT
Alternative Chi-Square
This alternative formula is regularly used for texture comparison. See e.g. Puzicha1997
HISTCMP_KL_DIV
Kullback-Leibler divergence
Trait Implementations
sourceimpl Clone for HistCompMethods
impl Clone for HistCompMethods
sourcefn clone(&self) -> HistCompMethods
fn clone(&self) -> HistCompMethods
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 moresourceimpl Debug for HistCompMethods
impl Debug for HistCompMethods
sourceimpl PartialEq<HistCompMethods> for HistCompMethods
impl PartialEq<HistCompMethods> for HistCompMethods
sourcefn eq(&self, other: &HistCompMethods) -> bool
fn eq(&self, other: &HistCompMethods) -> bool
impl Copy for HistCompMethods
impl StructuralPartialEq for HistCompMethods
Auto Trait Implementations
impl RefUnwindSafe for HistCompMethods
impl Send for HistCompMethods
impl Sync for HistCompMethods
impl Unpin for HistCompMethods
impl UnwindSafe for HistCompMethods
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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