#[repr(C)]pub struct SimpleBlobDetector_Params {Show 20 fields
pub threshold_step: f32,
pub min_threshold: f32,
pub max_threshold: f32,
pub min_repeatability: size_t,
pub min_dist_between_blobs: f32,
pub filter_by_color: bool,
pub blob_color: u8,
pub filter_by_area: bool,
pub min_area: f32,
pub max_area: f32,
pub filter_by_circularity: bool,
pub min_circularity: f32,
pub max_circularity: f32,
pub filter_by_inertia: bool,
pub min_inertia_ratio: f32,
pub max_inertia_ratio: f32,
pub filter_by_convexity: bool,
pub min_convexity: f32,
pub max_convexity: f32,
pub collect_contours: bool,
}Fields§
§threshold_step: f32§min_threshold: f32§max_threshold: f32§min_repeatability: size_t§min_dist_between_blobs: f32§filter_by_color: bool§blob_color: u8§filter_by_area: bool§min_area: f32§max_area: f32§filter_by_circularity: bool§min_circularity: f32§max_circularity: f32§filter_by_inertia: bool§min_inertia_ratio: f32§max_inertia_ratio: f32§filter_by_convexity: bool§min_convexity: f32§max_convexity: f32§collect_contours: boolFlag to enable contour collection. If set to true, the detector will store the contours of the detected blobs in memory, which can be retrieved after the detect() call using getBlobContours().
Note: Default value is false.
Implementations§
Source§impl SimpleBlobDetector_Params
impl SimpleBlobDetector_Params
pub fn write(self, fs: &mut impl FileStorageTrait) -> Result<()>
pub fn default() -> Result<SimpleBlobDetector_Params>
pub fn read(self, fn_: &impl FileNodeTraitConst) -> Result<()>
Trait Implementations§
Source§impl Clone for SimpleBlobDetector_Params
impl Clone for SimpleBlobDetector_Params
Source§fn clone(&self) -> SimpleBlobDetector_Params
fn clone(&self) -> SimpleBlobDetector_Params
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleBlobDetector_Params
impl Debug for SimpleBlobDetector_Params
impl Copy for SimpleBlobDetector_Params
impl StructuralPartialEq for SimpleBlobDetector_Params
Auto Trait Implementations§
impl Freeze for SimpleBlobDetector_Params
impl RefUnwindSafe for SimpleBlobDetector_Params
impl Send for SimpleBlobDetector_Params
impl Sync for SimpleBlobDetector_Params
impl Unpin for SimpleBlobDetector_Params
impl UnwindSafe for SimpleBlobDetector_Params
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