pub struct NmsConfig {
pub threshold: f32,
pub mode: NmsMode,
pub metric: OverlapMetric,
}Expand description
Immutable settings for a non-maximum suppression pass.
Fields§
§threshold: f32Overlap threshold in the inclusive range 0.0..=1.0; suppression
occurs only when overlap is strictly greater than this value.
mode: NmsModeWhether class identifiers restrict suppression.
metric: OverlapMetricThe overlap metric used for suppression.
Trait Implementations§
impl Copy for NmsConfig
impl StructuralPartialEq for NmsConfig
Auto Trait Implementations§
impl Freeze for NmsConfig
impl RefUnwindSafe for NmsConfig
impl Send for NmsConfig
impl Sync for NmsConfig
impl Unpin for NmsConfig
impl UnsafeUnpin for NmsConfig
impl UnwindSafe for NmsConfig
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