pub trait ThresholdOtsuExt<T> {
type Output;
// Required method
fn threshold_otsu(&self) -> Result<Self::Output, Error>;
}
Expand description
Runs the Otsu thresholding algorithm on a type T
.
Required Associated Types§
Required Methods§
Sourcefn threshold_otsu(&self) -> Result<Self::Output, Error>
fn threshold_otsu(&self) -> Result<Self::Output, Error>
Run the Otsu threshold algorithm.
Due to Otsu threshold algorithm specifying a greyscale image, all current implementations assume a single channel image; otherwise, an error is returned.
§Errors
Returns a ChannelDimensionMismatch
error if more than one channel
exists.