Struct visioncortex::color_clusters::ClustersView[][src]

pub struct ClustersView<'a> {
    pub width: u32,
    pub height: u32,
    pub pixels: &'a [u8],
    pub clusters: &'a [Cluster],
    pub cluster_indices: &'a [ClusterIndex],
    pub clusters_output: &'a [ClusterIndex],
}

Fields

width: u32height: u32pixels: &'a [u8]clusters: &'a [Cluster]cluster_indices: &'a [ClusterIndex]clusters_output: &'a [ClusterIndex]

Implementations

impl ClustersView<'_>[src]

pub fn iter(&self) -> impl Iterator<Item = &Cluster>[src]

pub fn get_cluster(&self, index: ClusterIndex) -> &Cluster[src]

pub fn get_cluster_at_point(&self, point: PointI32) -> ClusterIndex[src]

pub fn get_cluster_at(&self, index: u32) -> ClusterIndex[src]

pub fn get_pixel(&self, x: i32, y: i32) -> Option<Color>[src]

pub fn get_pixel_at_index(&self, index: u32) -> Option<Color>[src]

pub fn to_color_image(&self) -> ColorImage[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ClustersView<'a>

impl<'a> Send for ClustersView<'a>

impl<'a> Sync for ClustersView<'a>

impl<'a> Unpin for ClustersView<'a>

impl<'a> UnwindSafe for ClustersView<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.