Struct adder_codec_rs::transcoder::source::davis::Davis
source · pub struct Davis {
pub start_of_frame_timestamp: Option<i64>,
pub end_of_frame_timestamp: Option<i64>,
pub rt: Runtime,
pub dvs_last_timestamps: Array3<i64>,
pub dvs_last_ln_val: Array3<f64>,
pub mode: TranscoderMode,
pub time_mode: TimeMode,
/* private fields */
}
Expand description
Attributes of a framed video -> ADΔER transcode
Fields§
§start_of_frame_timestamp: Option<i64>
§end_of_frame_timestamp: Option<i64>
§rt: Runtime
§dvs_last_timestamps: Array3<i64>
§dvs_last_ln_val: Array3<f64>
§mode: TranscoderMode
§time_mode: TimeMode
Implementations§
source§impl Davis
impl Davis
pub fn new(
reconstructor: Reconstructor,
rt: Runtime
) -> Result<Self, Box<dyn Error>>
pub fn optimize_adder_controller(self, optimize: bool) -> Self
pub fn mode(self, mode: TranscoderMode) -> Self
pub fn time_mode(self, time_mode: TimeMode) -> Self
pub fn integrate_dvs_events<F: Fn(i64, i64) -> bool + Send + 'static + Sync>(
&mut self,
dvs_events: &Vec<DvsEvent>,
frame_timestamp: &i64,
event_check: F
) -> Result<(), StreamError>
pub fn get_reconstructor(&self) -> &Reconstructor
pub fn get_reconstructor_mut(&mut self) -> &mut Reconstructor
Trait Implementations§
source§impl Source for Davis
impl Source for Davis
source§fn consume(
&mut self,
view_interval: u32,
thread_pool: &ThreadPool
) -> Result<Vec<Vec<Event>>, SourceError>
fn consume(
&mut self,
view_interval: u32,
thread_pool: &ThreadPool
) -> Result<Vec<Vec<Event>>, SourceError>
Intake one input interval worth of data from the source stream into the ADΔER model as
intensities.
fn get_video_mut(&mut self) -> &mut Video
fn get_video_ref(&self) -> &Video
fn get_video(self) -> Video
source§impl VideoBuilder for Davis
impl VideoBuilder for Davis
fn contrast_thresholds(self, c_thresh_pos: u8, c_thresh_neg: u8) -> Self
fn c_thresh_pos(self, c_thresh_pos: u8) -> Self
fn c_thresh_neg(self, c_thresh_neg: u8) -> Self
fn chunk_rows(self, chunk_rows: usize) -> Self
fn time_parameters(
self,
tps: u32,
ref_time: u32,
delta_t_max: u32
) -> Result<Self, Box<dyn Error>>
fn write_out(
self,
output_filename: String,
source_camera: SourceCamera,
time_mode: TimeMode
) -> Result<Box<Self>, Box<dyn Error>>
fn show_display(self, show_display: bool) -> Self
impl Sync for Davis
Auto Trait Implementations§
Blanket Implementations§
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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.