pub enum ImageProcessingMethod {
Otsu,
Kapur,
Wolfs,
Bernsens,
Sauvola,
}Variants§
Otsu
Otsu’s Method - Best for most use-cases (default)
Kapur
Kapur’s Entropy - Best for textured/heterogeneous images
Wolfs
Wolf’s Method - Best for degraded images
Bernsens
Bernsen’s Method - Best for low-contrast images
Sauvola
Sauvola’s Method - Best for images with noisy/textured backgrounds
Implementations§
Trait Implementations§
Source§impl Clone for ImageProcessingMethod
impl Clone for ImageProcessingMethod
Source§fn clone(&self) -> ImageProcessingMethod
fn clone(&self) -> ImageProcessingMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageProcessingMethod
impl Debug for ImageProcessingMethod
Source§impl Display for ImageProcessingMethod
impl Display for ImageProcessingMethod
Source§impl PartialEq for ImageProcessingMethod
impl PartialEq for ImageProcessingMethod
Source§fn eq(&self, other: &ImageProcessingMethod) -> bool
fn eq(&self, other: &ImageProcessingMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ImageProcessingMethod
impl StructuralPartialEq for ImageProcessingMethod
Auto Trait Implementations§
impl Freeze for ImageProcessingMethod
impl RefUnwindSafe for ImageProcessingMethod
impl Send for ImageProcessingMethod
impl Sync for ImageProcessingMethod
impl Unpin for ImageProcessingMethod
impl UnsafeUnpin for ImageProcessingMethod
impl UnwindSafe for ImageProcessingMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more