opencv::mod_prelude

Trait ERStatTraitConst

Source
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§

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 raw_moments(&self) -> &[f64; 2]

order 1 raw moments to derive the centroid

Source

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

order 2 central moments to construct the covariance matrix

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§