Struct visioncortex::AverageShape
source · pub struct AverageShape { /* private fields */ }Expand description
Morphologically transforms a shape into another
Implementations§
source§impl AverageShape
impl AverageShape
pub fn average_shape_between( a: BinaryImage, b: BinaryImage ) -> Option<BinaryImage>
pub fn new() -> Self
pub fn init_circle_square(&mut self)
sourcepub fn init(&mut self, from: BinaryImage, to: BinaryImage) -> bool
pub fn init(&mut self, from: BinaryImage, to: BinaryImage) -> bool
caution: if init returned false, tick will never exit
pub fn reset(&mut self)
pub fn tick(&mut self) -> bool
pub fn result(&mut self) -> BinaryImage
Trait Implementations§
source§impl Default for AverageShape
impl Default for AverageShape
source§fn default() -> AverageShape
fn default() -> AverageShape
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AverageShape
impl Send for AverageShape
impl Sync for AverageShape
impl Unpin for AverageShape
impl UnwindSafe for AverageShape
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