Skip to main content

EfMergeConfig

Struct EfMergeConfig 

Source
#[repr(C)]
pub struct EfMergeConfig { pub metric: u32, pub threshold: f32, pub class_agnostic: c_int, pub max_det: usize, pub score_threshold: f32, pub mode: u32, }
Expand description

How overlapping detections from neighbouring tiles are merged.

Fields§

§metric: u32

An EF_MATCH_METRIC_* code: IoU, or Intersection-over-Smaller.

IoS is the default for a reason: an object split across a tile seam has low IoU with its own fragment but high IoS, so IoU would keep both halves as separate detections.

§threshold: f32§class_agnostic: c_int

Non-zero to merge across classes.

§max_det: usize§score_threshold: f32§mode: u32

An EF_MERGE_MODE_* code. EF_MERGE_MODE_KEEP_BEST (default): the highest-scoring box of each matched group is kept and the boxes it matched are dropped. EF_MERGE_MODE_UNION: the group becomes its enclosing union carrying the max score.

Keep-best is 0, but note that a zero-initialised struct is still not the library default: metric defaults to EF_MATCH_METRIC_IOS, so an all-zero struct selects IoU. Fill with ef_merge_config_default. The union measured about 0.05 AP50 worse on every frame of the Ocean Cleanup ADIS 4K validation (TOP2-836), which is why it is opt-in.

Occupies what was this struct’s 4-byte tail pad, so adding it left every other field’s offset and the 32-byte size unchanged.

Trait Implementations§

Source§

impl Clone for EfMergeConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EfMergeConfig

Source§

impl Debug for EfMergeConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.