pub trait ERStatTraitConst {
Show 13 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 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§

Provided Methods§

source

fn pixel(&self) -> i32

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

source

fn level(&self) -> i32

source

fn area(&self) -> i32

incrementally computable features

source

fn perimeter(&self) -> i32

source

fn euler(&self) -> i32

Euler’s number

source

fn rect(&self) -> Rect

source

fn med_crossings(&self) -> f32

median of the crossings at three different height levels

source

fn hole_area_ratio(&self) -> f32

2nd stage features

source

fn convex_hull_ratio(&self) -> f32

source

fn num_inflexion_points(&self) -> f32

source

fn probability(&self) -> f64

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

source

fn local_maxima(&self) -> bool

whenever the regions is a local maxima of the probability

Implementors§