Struct visioncortex::BinaryImage
source · [−]Expand description
Image with 1 bit per pixel
Fields
pixels: BitVec
width: usize
height: usize
Implementations
pub fn operation(
&self,
other: &BinaryImage,
operator: impl FnMut((&mut u8, &u8))
) -> BinaryImage
early return if diff >= threshold, so maximum return value is equal to threshold
expand a binary image using a circular brush
An extremely fast implementation of skeletonization
crop image to fit content
crop a specific area from image
expand the image while center original image so that there will be more space surrounding
Paste the content of src
into self
, with offset
with respective to the upper-left corner.
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for BinaryImage
impl Send for BinaryImage
impl Sync for BinaryImage
impl Unpin for BinaryImage
impl UnwindSafe for BinaryImage
Blanket Implementations
Mutably borrows from an owned value. Read more