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§
source§impl Clone for HistCompMethods
impl Clone for HistCompMethods
source§fn clone(&self) -> HistCompMethods
fn clone(&self) -> HistCompMethods
Returns a copy 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 HistCompMethods
impl Debug for HistCompMethods
source§impl PartialEq<HistCompMethods> for HistCompMethods
impl PartialEq<HistCompMethods> for HistCompMethods
source§fn eq(&self, other: &HistCompMethods) -> bool
fn eq(&self, other: &HistCompMethods) -> bool
This method tests for
self and other values to be equal, and is used
by ==.