[−][src]Struct visioncortex::clusters::Cluster
A cluster of binary image pixels
Fields
points: Vec<PointI32>
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]
&self,
mode: PathSimplifyMode,
corner_threshold: f64,
segment_length: f64,
max_iterations: usize,
splice_threshold: f64
) -> CompoundPath
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]
offset: &PointI32,
image: &BinaryImage,
mode: PathSimplifyMode,
corner_threshold: f64,
segment_length: f64,
max_iterations: usize,
splice_threshold: f64
) -> CompoundPath
pub fn image_to_paths(
image: &BinaryImage,
mode: PathSimplifyMode
) -> Vec<PathI32>
[src]
image: &BinaryImage,
mode: PathSimplifyMode
) -> Vec<PathI32>
pub fn image_to_splines(
image: &BinaryImage,
corner_threshold: f64,
segment_length: f64,
max_iterations: usize,
splice_threshold: f64
) -> Vec<Spline>
[src]
image: &BinaryImage,
corner_threshold: f64,
segment_length: f64,
max_iterations: usize,
splice_threshold: f64
) -> Vec<Spline>
pub fn break_cluster(cluster: Cluster) -> Clusters
[src]
pub fn break_cluster_recursive(cluster: Cluster, output: &mut Clusters)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cluster
[src]
impl Send for Cluster
[src]
impl Sync for Cluster
[src]
impl Unpin for Cluster
[src]
impl UnwindSafe for Cluster
[src]
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, 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>,