Struct visioncortex::Shape [−][src]
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: &BinaryImage
) -> (BinaryImage, Option<PointI32>, u32)
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]
image: &BinaryImage,
transpose: bool
) -> Vec<PointI32>
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]
fn from(image: BinaryImage) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,