Enum opencv::imgproc::AdaptiveThresholdTypes
source · #[repr(C)]pub enum AdaptiveThresholdTypes {
ADAPTIVE_THRESH_MEAN_C = 0,
ADAPTIVE_THRESH_GAUSSIAN_C = 1,
}
Expand description
Variants§
ADAPTIVE_THRESH_MEAN_C = 0
the threshold value is a mean of the
neighborhood of
minus C
ADAPTIVE_THRESH_GAUSSIAN_C = 1
the threshold value is a weighted sum (cross-correlation with a Gaussian
window) of the
neighborhood of
minus C . The default sigma (standard deviation) is used for the specified blockSize . See
#getGaussianKernel
Trait Implementations§
source§impl Clone for AdaptiveThresholdTypes
impl Clone for AdaptiveThresholdTypes
source§fn clone(&self) -> AdaptiveThresholdTypes
fn clone(&self) -> AdaptiveThresholdTypes
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 AdaptiveThresholdTypes
impl Debug for AdaptiveThresholdTypes
source§impl From<AdaptiveThresholdTypes> for i32
impl From<AdaptiveThresholdTypes> for i32
source§fn from(v: AdaptiveThresholdTypes) -> Self
fn from(v: AdaptiveThresholdTypes) -> Self
Converts to this type from the input type.
source§impl PartialEq for AdaptiveThresholdTypes
impl PartialEq for AdaptiveThresholdTypes
source§fn eq(&self, other: &AdaptiveThresholdTypes) -> bool
fn eq(&self, other: &AdaptiveThresholdTypes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for AdaptiveThresholdTypes
impl TryFrom<i32> for AdaptiveThresholdTypes
impl Copy for AdaptiveThresholdTypes
impl Eq for AdaptiveThresholdTypes
impl StructuralPartialEq for AdaptiveThresholdTypes
Auto Trait Implementations§
impl Freeze for AdaptiveThresholdTypes
impl RefUnwindSafe for AdaptiveThresholdTypes
impl Send for AdaptiveThresholdTypes
impl Sync for AdaptiveThresholdTypes
impl Unpin for AdaptiveThresholdTypes
impl UnwindSafe for AdaptiveThresholdTypes
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