Struct flydra_types::Data2dDistortedRowF32
source · pub struct Data2dDistortedRowF32 {Show 15 fields
pub camn: CamNum,
pub frame: i64,
pub timestamp: Option<FlydraFloatTimestampLocal<Triggerbox>>,
pub cam_received_timestamp: FlydraFloatTimestampLocal<HostClock>,
pub device_timestamp: Option<NonZeroU64>,
pub block_id: Option<NonZeroU64>,
pub x: f32,
pub y: f32,
pub area: f32,
pub slope: f32,
pub eccentricity: f32,
pub frame_pt_idx: u8,
pub cur_val: u8,
pub mean_val: f32,
pub sumsqf_val: f32,
}Expand description
Lower precision version of Data2dDistortedRow for saving to disk.
Fields§
§camn: CamNumThe number of the camera.
frame: i64The synchronized frame number.
This is very likely to be different than Self::block_id, the camera’s internal frame number, because Braid synchronizes the frames so that, e.g. “frame 10” occurred at the same instant across all cameras.
timestamp: Option<FlydraFloatTimestampLocal<Triggerbox>>This is the trigger timestamp (if available).
cam_received_timestamp: FlydraFloatTimestampLocal<HostClock>§device_timestamp: Option<NonZeroU64>timestamp from the camera
block_id: Option<NonZeroU64>Frame number from the camera.
Note that this is not the synchronized frame number, which is Self::frame.
x: f32The X (horizontal) coordinate of the detection, in camera pixels.
y: f32The Y (vertial) coordinate of the detection, in camera pixels.
area: f32The area of the detection, in camera pixels^2.
slope: f32The slope of the detection.
The orientation, modulo 𝜋, of the detection, is atan(slope).
eccentricity: f32The eccentricity of the detection.
frame_pt_idx: u8The index of this particular detection within a given frame.
Multiple detections can occur within a single frame, and each succesive detection will have a higher index.
cur_val: u8§mean_val: f32§sumsqf_val: f32Trait Implementations§
source§impl Debug for Data2dDistortedRowF32
impl Debug for Data2dDistortedRowF32
source§impl From<Data2dDistortedRow> for Data2dDistortedRowF32
impl From<Data2dDistortedRow> for Data2dDistortedRowF32
source§fn from(orig: Data2dDistortedRow) -> Self
fn from(orig: Data2dDistortedRow) -> Self
Auto Trait Implementations§
impl Freeze for Data2dDistortedRowF32
impl RefUnwindSafe for Data2dDistortedRowF32
impl Send for Data2dDistortedRowF32
impl Sync for Data2dDistortedRowF32
impl Unpin for Data2dDistortedRowF32
impl UnwindSafe for Data2dDistortedRowF32
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
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.