Struct visioncortex::color_clusters::Builder
source · pub struct Builder { /* private fields */ }
Implementations§
source§impl Builder
impl Builder
pub fn new() -> Self
pub fn from(self, image: ColorImage) -> Self
pub fn run(self) -> Clusters
pub fn start(self) -> IncrementalBuilder
pub fn diagonal(self, diagonal: bool) -> Self
pub fn hierarchical(self, hierarchical: u32) -> Self
pub fn batch_size(self, batch_size: u32) -> Self
pub fn key(self, key: Color) -> Self
pub fn keying_action(self, keying_action: KeyingAction) -> Self
pub fn same(self, same: impl Fn(Color, Color) -> bool + 'static) -> Self
pub fn diff(self, diff: impl Fn(Color, Color) -> i32 + 'static) -> Self
pub fn deepen( self, deepen: impl Fn(&BuilderImpl, &Cluster, &[NeighbourInfo]) -> bool + 'static ) -> Self
pub fn hollow( self, hollow: impl Fn(&BuilderImpl, &Cluster, &[NeighbourInfo]) -> bool + 'static ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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