Struct visioncortex::clusters::Cluster[][src]

pub struct Cluster {
    pub points: Vec<PointI32>,
    pub rect: BoundingRect,
}

A cluster of binary image pixels

Fields

points: Vec<PointI32>

Points are in absolute coordinate, i.e. (0, 0) is the coordinate of the left-top corner of the raw frame.

rect: BoundingRect

Implementations

impl Cluster[src]

pub fn iter(&self) -> Iter<'_, PointI32>[src]

pub fn add(&mut self, pos: PointI32)[src]

pub fn size(&self) -> usize[src]

pub fn to_binary_image(&self) -> BinaryImage[src]

pub fn boundary(&self) -> Vec<PointI32>[src]

pub fn offset(&mut self, o: PointI32)[src]

pub fn to_compound_path(
    &self,
    mode: PathSimplifyMode,
    corner_threshold: f64,
    segment_length: f64,
    max_iterations: usize,
    splice_threshold: f64
) -> CompoundPath
[src]

pub fn image_to_compound_path(
    offset: &PointI32,
    image: &BinaryImage,
    mode: PathSimplifyMode,
    corner_threshold: f64,
    segment_length: f64,
    max_iterations: usize,
    splice_threshold: f64
) -> CompoundPath
[src]

pub fn image_to_paths(
    image: &BinaryImage,
    mode: PathSimplifyMode
) -> Vec<PathI32>
[src]

pub fn image_to_splines(
    image: &BinaryImage,
    corner_threshold: f64,
    segment_length: f64,
    max_iterations: usize,
    splice_threshold: f64
) -> Vec<Spline>
[src]

pub fn break_cluster(cluster: Cluster) -> Clusters[src]

pub fn break_cluster_recursive(cluster: Cluster, output: &mut Clusters)[src]

Trait Implementations

impl Default for Cluster[src]

Auto Trait Implementations

impl RefUnwindSafe for Cluster

impl Send for Cluster

impl Sync for Cluster

impl Unpin for Cluster

impl UnwindSafe for Cluster

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, 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.