#[non_exhaustive]pub struct OtsuResult {
pub threshold: u8,
pub binary: Array2<u8>,
pub between_class_variance: f64,
pub separability: f64,
}Expand description
The result of Otsu thresholding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.threshold: u8The threshold: pixels <= threshold are background.
binary: Array2<u8>The thresholded image: 0 for background, 255 for foreground.
between_class_variance: f64The maximised between-class variance.
separability: f64Separability σ_b² / σ_total² in [0, 1]: near 1 for cleanly bimodal images, 0 for a flat one.
Trait Implementations§
Source§impl Clone for OtsuResult
impl Clone for OtsuResult
Source§impl Debug for OtsuResult
impl Debug for OtsuResult
Source§impl PartialEq for OtsuResult
impl PartialEq for OtsuResult
impl StructuralPartialEq for OtsuResult
Auto Trait Implementations§
impl Freeze for OtsuResult
impl RefUnwindSafe for OtsuResult
impl Send for OtsuResult
impl Sync for OtsuResult
impl Unpin for OtsuResult
impl UnsafeUnpin for OtsuResult
impl UnwindSafe for OtsuResult
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