Trait ERStatTrait

Source
pub trait ERStatTrait: ERStatTraitConst {
Show 27 methods // Required method fn as_raw_mut_ERStat(&mut self) -> *mut c_void; // Provided methods fn set_pixel(&mut self, val: i32) { ... } fn set_level(&mut self, val: i32) { ... } fn set_area(&mut self, val: i32) { ... } fn set_perimeter(&mut self, val: i32) { ... } fn set_euler(&mut self, val: i32) { ... } fn set_rect(&mut self, val: Rect) { ... } fn raw_moments_mut(&mut self) -> &mut [f64; 2] { ... } fn central_moments_mut(&mut self) -> &mut [f64; 3] { ... } fn set_med_crossings(&mut self, val: f32) { ... } fn set_hole_area_ratio(&mut self, val: f32) { ... } fn set_convex_hull_ratio(&mut self, val: f32) { ... } fn set_num_inflexion_points(&mut self, val: f32) { ... } fn set_probability(&mut self, val: f64) { ... } fn parent(&mut self) -> ERStat { ... } fn set_parent(&mut self, val: &impl ERStatTraitConst) { ... } fn child(&mut self) -> ERStat { ... } fn set_child(&mut self, val: &impl ERStatTraitConst) { ... } fn next(&mut self) -> ERStat { ... } fn set_next(&mut self, val: &impl ERStatTraitConst) { ... } fn prev(&mut self) -> ERStat { ... } fn set_prev(&mut self, val: &impl ERStatTraitConst) { ... } fn set_local_maxima(&mut self, val: bool) { ... } fn max_probability_ancestor(&mut self) -> ERStat { ... } fn set_max_probability_ancestor(&mut self, val: &impl ERStatTraitConst) { ... } fn min_probability_ancestor(&mut self) -> ERStat { ... } fn set_min_probability_ancestor(&mut self, val: &impl ERStatTraitConst) { ... }
}
Expand description

Mutable methods for crate::text::ERStat

Required Methods§

Provided Methods§

Source

fn set_pixel(&mut self, val: i32)

seed point and the threshold (max grey-level value)

Source

fn set_level(&mut self, val: i32)

Source

fn set_area(&mut self, val: i32)

incrementally computable features

Source

fn set_perimeter(&mut self, val: i32)

Source

fn set_euler(&mut self, val: i32)

Euler’s number

Source

fn set_rect(&mut self, val: Rect)

Source

fn raw_moments_mut(&mut self) -> &mut [f64; 2]

order 1 raw moments to derive the centroid

Source

fn central_moments_mut(&mut self) -> &mut [f64; 3]

order 2 central moments to construct the covariance matrix

Source

fn set_med_crossings(&mut self, val: f32)

median of the crossings at three different height levels

Source

fn set_hole_area_ratio(&mut self, val: f32)

2nd stage features

Source

fn set_convex_hull_ratio(&mut self, val: f32)

Source

fn set_num_inflexion_points(&mut self, val: f32)

Source

fn set_probability(&mut self, val: f64)

probability that the ER belongs to the class we are looking for

Source

fn parent(&mut self) -> ERStat

pointers preserving the tree structure of the component tree

Source

fn set_parent(&mut self, val: &impl ERStatTraitConst)

pointers preserving the tree structure of the component tree

Source

fn child(&mut self) -> ERStat

Source

fn set_child(&mut self, val: &impl ERStatTraitConst)

Source

fn next(&mut self) -> ERStat

Source

fn set_next(&mut self, val: &impl ERStatTraitConst)

Source

fn prev(&mut self) -> ERStat

Source

fn set_prev(&mut self, val: &impl ERStatTraitConst)

Source

fn set_local_maxima(&mut self, val: bool)

whenever the regions is a local maxima of the probability

Source

fn max_probability_ancestor(&mut self) -> ERStat

Source

fn set_max_probability_ancestor(&mut self, val: &impl ERStatTraitConst)

Source

fn min_probability_ancestor(&mut self) -> ERStat

Source

fn set_min_probability_ancestor(&mut self, val: &impl ERStatTraitConst)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§