pub struct SceneFeature {
pub name: &'static str,
pub value: SceneFeatureValue,
pub confidence: Option<f32>,
pub ts: MonotonicTs,
}Expand description
A single scene-level feature observation produced by a perception stage.
§Example
use nv_perception::{SceneFeature, SceneFeatureValue};
use nv_core::MonotonicTs;
let complexity = SceneFeature {
name: "scene_complexity",
value: SceneFeatureValue::Scalar(0.82),
confidence: Some(0.95),
ts: MonotonicTs::from_nanos(1_000_000),
};Fields§
§name: &'static strFeature name — compile-time constant chosen by the stage author.
value: SceneFeatureValueThe observed value.
confidence: Option<f32>Optional confidence in [0.0, 1.0] (None = not applicable).
ts: MonotonicTsTimestamp at which this feature was computed.
Trait Implementations§
Source§impl Clone for SceneFeature
impl Clone for SceneFeature
Source§fn clone(&self) -> SceneFeature
fn clone(&self) -> SceneFeature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SceneFeature
impl RefUnwindSafe for SceneFeature
impl Send for SceneFeature
impl Sync for SceneFeature
impl Unpin for SceneFeature
impl UnsafeUnpin for SceneFeature
impl UnwindSafe for SceneFeature
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