pub struct ComponentLabels {
pub labels: Vec<u32>,
pub num_components: usize,
pub height: usize,
pub width: usize,
/* private fields */
}Expand description
Result of connected_components.
Fields§
§labels: Vec<u32>Row-major [height × width] label image; 0 is background and
1..=num_components identifies each connected region.
num_components: usizeNumber of distinct foreground components.
height: usizeImage height.
width: usizeImage width.
Implementations§
Source§impl ComponentLabels
impl ComponentLabels
Trait Implementations§
Source§impl Clone for ComponentLabels
impl Clone for ComponentLabels
Source§fn clone(&self) -> ComponentLabels
fn clone(&self) -> ComponentLabels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentLabels
impl RefUnwindSafe for ComponentLabels
impl Send for ComponentLabels
impl Sync for ComponentLabels
impl Unpin for ComponentLabels
impl UnsafeUnpin for ComponentLabels
impl UnwindSafe for ComponentLabels
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