pub enum Algorithm {
KMeans,
DBSCAN,
DBSCANpp,
SLIC,
SNIC,
}
Expand description
The clustering algorithm to use for color palette extraction.
Variants§
KMeans
K-means clustering algorithm.
DBSCAN
DBSCAN clustering algorithm.
DBSCANpp
DBSCAN++ clustering algorithm.
SLIC
SLIC (Simple Linear Iterative Clustering) algorithm.
SNIC
SNIC (Simple Non-Iterative Clustering) algorithm.
Trait Implementations§
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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