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: CamNum

The number of the camera.

§frame: i64

The 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: f32

The X (horizontal) coordinate of the detection, in camera pixels.

§y: f32

The Y (vertial) coordinate of the detection, in camera pixels.

§area: f32

The area of the detection, in camera pixels^2.

§slope: f32

The slope of the detection.

The orientation, modulo 𝜋, of the detection, is atan(slope).

§eccentricity: f32

The eccentricity of the detection.

§frame_pt_idx: u8

The 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: f32

Trait Implementations§

source§

impl Debug for Data2dDistortedRowF32

source§

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

Formats the value using the given formatter. Read more
source§

impl From<Data2dDistortedRow> for Data2dDistortedRowF32

source§

fn from(orig: Data2dDistortedRow) -> Self

Converts to this type from the input type.
source§

impl Serialize for Data2dDistortedRowF32

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

§

type Output = T

Should always be Self
source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more