pub struct AreaRng {
pub index: usize,
pub label: Cow<'static, str>,
}Expand description
One bucket on the A-axis of an Accumulated — an index plus a
label for rendering.
The canonical pycocotools detection layout is exposed as
AreaRng::ALL / SMALL / MEDIUM
/ LARGE, matching the cocoeval Params.areaRngLbl
order. Custom layouts (e.g., robotics-style finer buckets) are
constructed with AreaRng::new for owned labels or
AreaRng::from_static for &'static str labels.
The bounds that turn an annotation’s area into a bucket index
live upstream, on the orchestrator that builds crate::accumulate::PerImageEval
cells; the summarizer only consumes the resulting A-axis index.
Fields§
§index: usizePosition on the A-axis of Accumulated::precision /
Accumulated::recall. Validated against the actual A-axis
length at summarize time, not at construction; an out-of-range
index produces EvalError::InvalidConfig.
label: Cow<'static, str>Label rendered by Summary::pretty_lines.
Implementations§
Trait Implementations§
impl Eq for AreaRng
impl StructuralPartialEq for AreaRng
Auto Trait Implementations§
impl Freeze for AreaRng
impl RefUnwindSafe for AreaRng
impl Send for AreaRng
impl Sync for AreaRng
impl Unpin for AreaRng
impl UnsafeUnpin for AreaRng
impl UnwindSafe for AreaRng
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.