pub struct MergeConfig {
pub metric: MatchMetric,
pub threshold: f32,
pub class_agnostic: bool,
pub max_det: usize,
pub score_threshold: f32,
pub mode: MergeMode,
}Expand description
Configuration for the tiled-detection merge.
The defaults are IoS at 0.5, class-aware, MergeMode::KeepBest,
max_det 300 and no score gate. Keep-best rather than the enclosing union
because the union measured about −0.05 AP50 on every frame of the Ocean
Cleanup ADIS 4K validation (TOP2-836); see MergeMode.
Fields§
§metric: MatchMetricOverlap metric (default MatchMetric::Ios).
threshold: f32Merge two boxes when metric.value(a, b) >= threshold (default 0.5).
class_agnostic: boolMerge across classes when true (default false).
max_det: usizeCap on returned detections after the merge (default 300).
score_threshold: f32Drop merged groups whose max score is below this (default 0.0 = keep all; per-tile decode is the real flood control).
mode: MergeModeWhat a matched group becomes (default MergeMode::KeepBest).
Trait Implementations§
Source§impl Clone for MergeConfig
impl Clone for MergeConfig
impl Copy for MergeConfig
Source§impl Debug for MergeConfig
impl Debug for MergeConfig
Source§impl Default for MergeConfig
impl Default for MergeConfig
Source§impl PartialEq for MergeConfig
impl PartialEq for MergeConfig
impl StructuralPartialEq for MergeConfig
Auto Trait Implementations§
impl Freeze for MergeConfig
impl RefUnwindSafe for MergeConfig
impl Send for MergeConfig
impl Sync for MergeConfig
impl Unpin for MergeConfig
impl UnsafeUnpin for MergeConfig
impl UnwindSafe for MergeConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more