Enum opencv::imgproc::HistCompMethods
source · #[repr(C)]pub enum HistCompMethods {
HISTCMP_CORREL = 0,
HISTCMP_CHISQR = 1,
HISTCMP_INTERSECT = 2,
HISTCMP_BHATTACHARYYA = 3,
HISTCMP_CHISQR_ALT = 4,
HISTCMP_KL_DIV = 5,
}
Expand description
Histogram comparison methods @ingroup imgproc_hist
Variants§
HISTCMP_CORREL = 0
Correlation
where
and
is a total number of histogram bins.
HISTCMP_CHISQR = 1
Chi-Square
HISTCMP_INTERSECT = 2
Intersection
HISTCMP_BHATTACHARYYA = 3
Bhattacharyya distance
(In fact, OpenCV computes Hellinger distance, which is related to Bhattacharyya coefficient.)
HISTCMP_CHISQR_ALT = 4
Alternative Chi-Square
This alternative formula is regularly used for texture comparison. See e.g. Puzicha1997
HISTCMP_KL_DIV = 5
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 From<HistCompMethods> for i32
impl From<HistCompMethods> for i32
source§fn from(v: HistCompMethods) -> Self
fn from(v: HistCompMethods) -> Self
Converts to this type from the input type.
source§impl PartialEq for HistCompMethods
impl PartialEq 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 ==
.source§impl TryFrom<i32> for HistCompMethods
impl TryFrom<i32> for HistCompMethods
impl Copy for HistCompMethods
impl Eq for HistCompMethods
impl StructuralPartialEq for HistCompMethods
Auto Trait Implementations§
impl Freeze for HistCompMethods
impl RefUnwindSafe for HistCompMethods
impl Send for HistCompMethods
impl Sync for HistCompMethods
impl Unpin for HistCompMethods
impl UnwindSafe for HistCompMethods
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