pub struct ERStat { /* private fields */ }
Expand description
The ERStat structure represents a class-specific Extremal Region (ER).
An ER is a 4-connected set of pixels with all its grey-level values smaller than the values in its outer boundary. A class-specific ER is selected (using a classifier) from all the ER’s in the component tree of the image. :
Implementations
Trait Implementations
sourceimpl Boxed for ERStat
impl Boxed for ERStat
sourceimpl ERStatTrait for ERStat
impl ERStatTrait for ERStat
fn as_raw_mut_ERStat(&mut self) -> *mut c_void
fn set_level(&mut self, val: i32)
fn set_perimeter(&mut self, val: i32)
fn set_rect(&mut self, val: Rect)
sourcefn raw_moments(&mut self) -> &mut [f64; 2]
fn raw_moments(&mut self) -> &mut [f64; 2]
order 1 raw moments to derive the centroid
sourcefn central_moments(&mut self) -> &mut [f64; 3]
fn central_moments(&mut self) -> &mut [f64; 3]
order 2 central moments to construct the covariance matrix
sourcefn set_med_crossings(&mut self, val: f32)
fn set_med_crossings(&mut self, val: f32)
median of the crossings at three different height levels
sourcefn set_hole_area_ratio(&mut self, val: f32)
fn set_hole_area_ratio(&mut self, val: f32)
2nd stage features
fn set_convex_hull_ratio(&mut self, val: f32)
fn set_num_inflexion_points(&mut self, val: f32)
sourcefn set_probability(&mut self, val: f64)
fn set_probability(&mut self, val: f64)
probability that the ER belongs to the class we are looking for
sourcefn set_parent(&mut self, val: &mut ERStat)
fn set_parent(&mut self, val: &mut ERStat)
pointers preserving the tree structure of the component tree
fn child(&mut self) -> ERStat
fn set_child(&mut self, val: &mut ERStat)
fn next(&mut self) -> ERStat
fn set_next(&mut self, val: &mut ERStat)
fn prev(&mut self) -> ERStat
fn set_prev(&mut self, val: &mut ERStat)
sourcefn set_local_maxima(&mut self, val: bool)
fn set_local_maxima(&mut self, val: bool)
whenever the regions is a local maxima of the probability
fn max_probability_ancestor(&mut self) -> ERStat
fn set_max_probability_ancestor(&mut self, val: &mut ERStat)
fn min_probability_ancestor(&mut self) -> ERStat
fn set_min_probability_ancestor(&mut self, val: &mut ERStat)
sourceimpl ERStatTraitConst for ERStat
impl ERStatTraitConst for ERStat
fn as_raw_ERStat(&self) -> *const c_void
fn level(&self) -> i32
fn perimeter(&self) -> i32
fn rect(&self) -> Rect
sourcefn med_crossings(&self) -> f32
fn med_crossings(&self) -> f32
median of the crossings at three different height levels
sourcefn hole_area_ratio(&self) -> f32
fn hole_area_ratio(&self) -> f32
2nd stage features
fn convex_hull_ratio(&self) -> f32
fn num_inflexion_points(&self) -> f32
sourcefn probability(&self) -> f64
fn probability(&self) -> f64
probability that the ER belongs to the class we are looking for
sourcefn local_maxima(&self) -> bool
fn local_maxima(&self) -> bool
whenever the regions is a local maxima of the probability
impl Send for ERStat
impl VectorElement for ERStatwhere
Vector<ERStat>: VectorExtern<ERStat>,
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more