Trait opencv::hub_prelude::MSERTrait
source · pub trait MSERTrait: Feature2DTrait + MSERTraitConst {
// Required method
fn as_raw_mut_MSER(&mut self) -> *mut c_void;
// Provided methods
fn detect_regions(
&mut self,
image: &impl ToInputArray,
msers: &mut Vector<Vector<Point>>,
bboxes: &mut Vector<Rect>
) -> Result<()> { ... }
fn set_delta(&mut self, delta: i32) -> Result<()> { ... }
fn set_min_area(&mut self, min_area: i32) -> Result<()> { ... }
fn set_max_area(&mut self, max_area: i32) -> Result<()> { ... }
fn set_max_variation(&mut self, max_variation: f64) -> Result<()> { ... }
fn set_min_diversity(&mut self, min_diversity: f64) -> Result<()> { ... }
fn set_max_evolution(&mut self, max_evolution: i32) -> Result<()> { ... }
fn set_area_threshold(&mut self, area_threshold: f64) -> Result<()> { ... }
fn set_min_margin(&mut self, min_margin: f64) -> Result<()> { ... }
fn set_edge_blur_size(&mut self, edge_blur_size: i32) -> Result<()> { ... }
fn set_pass2_only(&mut self, f: bool) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::features2d::MSER
Required Methods§
fn as_raw_mut_MSER(&mut self) -> *mut c_void
Provided Methods§
sourcefn detect_regions(
&mut self,
image: &impl ToInputArray,
msers: &mut Vector<Vector<Point>>,
bboxes: &mut Vector<Rect>
) -> Result<()>
fn detect_regions( &mut self, image: &impl ToInputArray, msers: &mut Vector<Vector<Point>>, bboxes: &mut Vector<Rect> ) -> Result<()>
Detect %MSER regions
§Parameters
- image: input image (8UC1, 8UC3 or 8UC4, must be greater or equal than 3x3)
- msers: resulting list of point sets
- bboxes: resulting bounding boxes
fn set_delta(&mut self, delta: i32) -> Result<()>
fn set_min_area(&mut self, min_area: i32) -> Result<()>
fn set_max_area(&mut self, max_area: i32) -> Result<()>
fn set_max_variation(&mut self, max_variation: f64) -> Result<()>
fn set_min_diversity(&mut self, min_diversity: f64) -> Result<()>
fn set_max_evolution(&mut self, max_evolution: i32) -> Result<()>
fn set_area_threshold(&mut self, area_threshold: f64) -> Result<()>
fn set_min_margin(&mut self, min_margin: f64) -> Result<()>
fn set_edge_blur_size(&mut self, edge_blur_size: i32) -> Result<()>
fn set_pass2_only(&mut self, f: bool) -> Result<()>
Object Safety§
This trait is not object safe.