pub struct SnapshotWithCells {
pub summary: Summary,
pub eval_imgs: Vec<Option<Box<PerImageEval>>>,
pub n_categories: usize,
pub n_area_ranges: usize,
pub iou_thresholds: Vec<f64>,
pub parity_mode: ParityMode,
}Expand description
Bundle returned by StreamingEvaluator::snapshot_with_cells:
the canonical Summary plus the per-image cell store needed by
the ADR-0018 calibration summarizer.
The cell store is a dense Vec<Option<Box<PerImageEval>>> in
k * A * I + a * I + i row-major order — the same shape
crate::accumulate and
crate::calibration::summarize_calibration both consume directly.
n_categories, n_area_ranges, iou_thresholds, and parity_mode
are mirrored alongside so the FFI handle can build an
EvalCells without re-deriving them from a StreamingEvaluator
reference that may be on the worker thread.
Fields§
§summary: SummaryCanonical Summary — bit-identical to what
StreamingEvaluator::snapshot would have produced for the
same evaluator state.
eval_imgs: Vec<Option<Box<PerImageEval>>>Dense per-image cell store, GT-only overlay applied — directly
consumable by crate::calibration::summarize_calibration.
n_categories: usizeK axis size mirrored from EvalGridMeta::n_categories.
n_area_ranges: usizeA axis size mirrored from EvalGridMeta::n_area_ranges.
iou_thresholds: Vec<f64>Pinned IoU thresholds — the kernel’s T-axis.
parity_mode: ParityModeParity mode the evaluator was constructed under.
Trait Implementations§
Source§impl Clone for SnapshotWithCells
impl Clone for SnapshotWithCells
Source§fn clone(&self) -> SnapshotWithCells
fn clone(&self) -> SnapshotWithCells
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SnapshotWithCells
impl RefUnwindSafe for SnapshotWithCells
impl Send for SnapshotWithCells
impl Sync for SnapshotWithCells
impl Unpin for SnapshotWithCells
impl UnsafeUnpin for SnapshotWithCells
impl UnwindSafe for SnapshotWithCells
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<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.