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§
source§impl Boxed for ERStat
impl Boxed for ERStat
source§unsafe fn from_raw(ptr: <ERStat as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <ERStat as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(self) -> <ERStat as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <ERStat as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <ERStat as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <ERStat as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(&mut self) -> <ERStat as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut(&mut self) -> <ERStat as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl 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)
source§fn raw_moments_mut(&mut self) -> &mut [f64; 2]
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]
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)
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)
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)
source§fn 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
source§fn set_parent(&mut self, val: &impl ERStatTraitConst)
fn set_parent(&mut self, val: &impl ERStatTraitConst)
pointers preserving the tree structure of the component tree
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)
source§fn 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: &impl ERStatTraitConst)
fn min_probability_ancestor(&mut self) -> ERStat
fn set_min_probability_ancestor(&mut self, val: &impl ERStatTraitConst)
source§impl 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
source§fn raw_moments(&self) -> &[f64; 2]
fn raw_moments(&self) -> &[f64; 2]
order 1 raw moments to derive the centroid
source§fn central_moments(&self) -> &[f64; 3]
fn central_moments(&self) -> &[f64; 3]
order 2 central moments to construct the covariance matrix
source§fn med_crossings(&self) -> f32
fn med_crossings(&self) -> f32
median of the crossings at three different height levels
source§fn 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
source§fn probability(&self) -> f64
fn probability(&self) -> f64
probability that the ER belongs to the class we are looking for
source§fn local_maxima(&self) -> bool
fn local_maxima(&self) -> bool
whenever the regions is a local maxima of the probability
impl Send for ERStat
Auto Trait Implementations§
impl Freeze for ERStat
impl RefUnwindSafe for ERStat
impl !Sync for ERStat
impl Unpin for ERStat
impl UnwindSafe for ERStat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is of course unsafe as it breaks the Rust aliasing rules, but it might be useful for some performance
sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold
. Read more