#[repr(i32)]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,
THRESH_DRYRUN = 128,
}
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
THRESH_DRYRUN = 128
flag, compute threshold only (useful for OTSU/TRIANGLE) but does not actually run thresholding
Trait Implementations§
Source§impl Clone for ThresholdTypes
impl Clone for ThresholdTypes
Source§fn clone(&self) -> ThresholdTypes
fn clone(&self) -> ThresholdTypes
Returns a duplicate 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§impl TryFrom<i32> for ThresholdTypes
impl TryFrom<i32> for ThresholdTypes
impl Copy for ThresholdTypes
impl Eq for ThresholdTypes
impl StructuralPartialEq for ThresholdTypes
Auto Trait Implementations§
impl Freeze for ThresholdTypes
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