Struct visioncortex::color_clusters::ClustersView [−][src]
Fields
width: u32
height: u32
pixels: &'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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,