Struct flydra_types::Data2dDistortedRow

source ·
pub struct Data2dDistortedRow {
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: f64, pub y: f64, pub area: f64, pub slope: f64, pub eccentricity: f64, pub frame_pt_idx: u8, pub cur_val: u8, pub mean_val: f64, pub sumsqf_val: f64,
}
Expand description

Feature detection data in raw camera coordinates.

Because these are in raw camera coordinates (and thus have not been undistorted with any lens distortion model), they are called “distorted”.

Note that in .braidz files, subsequent rows on disk are not in general monotonically increasing in frame number.

See the “Details about how data are processed online and saved for later analysis” section in the “3D Tracking in Braid” chapter of the User’s Guide for a description of why these cannot be relied upon in .braidz files to be monotonic.

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

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

§y: f64

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

§area: f64

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

§slope: f64

The slope of the detection.

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

§eccentricity: f64

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: f64§sumsqf_val: f64

Trait Implementations§

source§

impl Clone for Data2dDistortedRow

source§

fn clone(&self) -> Data2dDistortedRow

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Data2dDistortedRow

source§

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

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

impl<'de> Deserialize<'de> for Data2dDistortedRow

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. 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 Data2dDistortedRow

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

impl WithKey<i64> for Data2dDistortedRow

source§

fn key(&self) -> i64

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> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,