pub struct EventFrame { /* private fields */ }Implementations§
Source§impl EventFrame
impl EventFrame
Sourcepub fn connected_components(
&self,
connectivity: u8,
) -> Result<EventFrame, ClusterError>
pub fn connected_components( &self, connectivity: u8, ) -> Result<EventFrame, ClusterError>
Labels 4- or 8-connected foreground components. connectivity must be 4 or 8. The
result is a single-channel u64 frame the same size as self: 0 is background, and each
component gets a distinct label in scan order starting at 1.
Source§impl EventFrame
impl EventFrame
Sourcepub fn resize(
&self,
width: usize,
height: usize,
pooling: PoolingMethod,
) -> Result<Self, ResizeError>
pub fn resize( &self, width: usize, height: usize, pooling: PoolingMethod, ) -> Result<Self, ResizeError>
Returns a resized frame, pooling shrinking axes and interpolating growing axes.
Source§impl EventFrame
impl EventFrame
pub fn data(&self) -> &EventFrameData
pub fn shape(&self) -> (usize, usize, usize)
pub fn channel_names(&self) -> &[String]
pub fn kind(&self) -> RepresentationKind
Trait Implementations§
Source§impl Clone for EventFrame
impl Clone for EventFrame
Source§fn clone(&self) -> EventFrame
fn clone(&self) -> EventFrame
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 EventFrame
impl RefUnwindSafe for EventFrame
impl Send for EventFrame
impl Sync for EventFrame
impl Unpin for EventFrame
impl UnsafeUnpin for EventFrame
impl UnwindSafe for EventFrame
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