pub struct InstanceMask {
pub mask: SegmentationMask,
pub instance_count: usize,
}Available on crate feature
segmentation only.Expand description
A foreground-instance mask plus the number of distinct instances
the model identified. Pixel values are 0 for background and
1..=instance_count for each detected instance.
Fields§
§mask: SegmentationMask§instance_count: usizeTrait Implementations§
Source§impl Clone for InstanceMask
impl Clone for InstanceMask
Source§fn clone(&self) -> InstanceMask
fn clone(&self) -> InstanceMask
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 moreSource§impl Debug for InstanceMask
impl Debug for InstanceMask
Source§impl PartialEq for InstanceMask
impl PartialEq for InstanceMask
Source§fn eq(&self, other: &InstanceMask) -> bool
fn eq(&self, other: &InstanceMask) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InstanceMask
impl StructuralPartialEq for InstanceMask
Auto Trait Implementations§
impl Freeze for InstanceMask
impl RefUnwindSafe for InstanceMask
impl Send for InstanceMask
impl Sync for InstanceMask
impl Unpin for InstanceMask
impl UnsafeUnpin for InstanceMask
impl UnwindSafe for InstanceMask
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