pub trait FrameValue {
    type Output;

    // Required methods
    fn get_frame_value(
        event: &Event,
        source_type: SourceType,
        delta_t: DeltaT,
        practical_d_max: f32,
        delta_t_max: DeltaT,
        view_mode: FramedViewMode
    ) -> Self::Output;
    fn max_f32() -> f32;
}
Expand description

A trait for types that can be used as the value of a pixel in a Frame.

Required Associated Types§

source

type Output

The type of the output intensity value

Required Methods§

source

fn get_frame_value( event: &Event, source_type: SourceType, delta_t: DeltaT, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode ) -> Self::Output

Get the frame-normalized intensity value of an event

source

fn max_f32() -> f32

The maximum value of the type, as an f32

Implementations on Foreign Types§

source§

impl FrameValue for u16

§

type Output = u16

source§

fn get_frame_value( event: &Event, source_type: SourceType, tpf: DeltaT, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode ) -> Self::Output

source§

fn max_f32() -> f32

source§

impl FrameValue for u32

§

type Output = u32

source§

fn get_frame_value( event: &Event, source_type: SourceType, tpf: DeltaT, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode ) -> Self::Output

source§

fn max_f32() -> f32

source§

impl FrameValue for u8

§

type Output = u8

source§

fn get_frame_value( event: &Event, source_type: SourceType, tpf: DeltaT, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode ) -> Self::Output

source§

fn max_f32() -> f32

source§

impl FrameValue for u64

§

type Output = u64

source§

fn get_frame_value( event: &Event, source_type: SourceType, tpf: DeltaT, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode ) -> Self::Output

source§

fn max_f32() -> f32

source§

impl FrameValue for EventCoordless

§

type Output = EventCoordless

source§

fn get_frame_value( event: &Event, _source_type: SourceType, _tpf: DeltaT, _practical_d_max: f32, _delta_t_max: DeltaT, _view_mode: FramedViewMode ) -> Self::Output

source§

fn max_f32() -> f32

Implementors§