Enum opencv::imgproc::ThresholdTypes
source · #[repr(C)]pub enum ThresholdTypes {
THRESH_BINARY = 0,
THRESH_BINARY_INV = 1,
THRESH_TRUNC = 2,
THRESH_TOZERO = 3,
THRESH_TOZERO_INV = 4,
THRESH_MASK = 7,
THRESH_OTSU = 8,
THRESH_TRIANGLE = 16,
}Expand description
type of the threshold operation

Variants§
THRESH_BINARY = 0
THRESH_BINARY_INV = 1
THRESH_TRUNC = 2
THRESH_TOZERO = 3
THRESH_TOZERO_INV = 4
THRESH_MASK = 7
THRESH_OTSU = 8
flag, use Otsu algorithm to choose the optimal threshold value
THRESH_TRIANGLE = 16
flag, use Triangle algorithm to choose the optimal threshold value
Trait Implementations§
source§impl Clone for ThresholdTypes
impl Clone for ThresholdTypes
source§fn clone(&self) -> ThresholdTypes
fn clone(&self) -> ThresholdTypes
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 ThresholdTypes
impl Debug for ThresholdTypes
source§impl From<ThresholdTypes> for i32
impl From<ThresholdTypes> for i32
source§fn from(v: ThresholdTypes) -> Self
fn from(v: ThresholdTypes) -> Self
Converts to this type from the input type.
source§impl PartialEq for ThresholdTypes
impl PartialEq for ThresholdTypes
source§fn eq(&self, other: &ThresholdTypes) -> bool
fn eq(&self, other: &ThresholdTypes) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ThresholdTypes
impl Eq for ThresholdTypes
impl StructuralEq for ThresholdTypes
impl StructuralPartialEq for ThresholdTypes
Auto Trait Implementations§
impl RefUnwindSafe for ThresholdTypes
impl Send for ThresholdTypes
impl Sync for ThresholdTypes
impl Unpin for ThresholdTypes
impl UnwindSafe for ThresholdTypes
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