pub trait ERStatTraitConst {
Show 15 methods
// Required method
fn as_raw_ERStat(&self) -> *const c_void;
// Provided methods
fn pixel(&self) -> i32 { ... }
fn level(&self) -> i32 { ... }
fn area(&self) -> i32 { ... }
fn perimeter(&self) -> i32 { ... }
fn euler(&self) -> i32 { ... }
fn rect(&self) -> Rect { ... }
fn raw_moments(&self) -> &[f64; 2] { ... }
fn central_moments(&self) -> &[f64; 3] { ... }
fn med_crossings(&self) -> f32 { ... }
fn hole_area_ratio(&self) -> f32 { ... }
fn convex_hull_ratio(&self) -> f32 { ... }
fn num_inflexion_points(&self) -> f32 { ... }
fn probability(&self) -> f64 { ... }
fn local_maxima(&self) -> bool { ... }
}
Expand description
Constant methods for crate::text::ERStat
Required Methods§
fn as_raw_ERStat(&self) -> *const c_void
Provided Methods§
fn level(&self) -> i32
fn perimeter(&self) -> i32
fn rect(&self) -> Rect
Sourcefn raw_moments(&self) -> &[f64; 2]
fn raw_moments(&self) -> &[f64; 2]
order 1 raw moments to derive the centroid
Sourcefn central_moments(&self) -> &[f64; 3]
fn central_moments(&self) -> &[f64; 3]
order 2 central moments to construct the covariance matrix
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