Struct visioncortex::Shape[][src]

pub struct Shape {
    pub image: BinaryImage,
}

A conceptual object represented by an image

Fields

image: BinaryImage

Implementations

impl Shape[src]

pub fn image_boundary(image: &BinaryImage) -> BinaryImage[src]

pub fn image_boundary_and_position_length(
    image: &BinaryImage
) -> (BinaryImage, Option<PointI32>, u32)
[src]

image boundary with position of top-left pixel and path length

pub fn image_boundary_list(image: &BinaryImage) -> Vec<PointI32>[src]

pub fn image_boundary_list_transpose(
    image: &BinaryImage,
    transpose: bool
) -> Vec<PointI32>
[src]

pub fn rect(&self) -> BoundingRect[src]

pub fn circle(width: usize, height: usize) -> Self[src]

pub fn ellipse(width: usize, height: usize) -> Self[src]

pub fn is_circle(&self) -> bool[src]

pub fn is_ellipse(&self) -> bool[src]

pub fn is_quadrilateral(&self) -> bool[src]

impl Shape[src]

pub fn to_skeleton(&self) -> Skeleton[src]

Trait Implementations

impl Clone for Shape[src]

impl From<BinaryImage> for Shape[src]

Auto Trait Implementations

impl RefUnwindSafe for Shape

impl Send for Shape

impl Sync for Shape

impl Unpin for Shape

impl UnwindSafe for Shape

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.