pub struct SimulatorConfig {
pub pos_thres: f32,
pub neg_thres: f32,
pub sigma_thres: f32,
pub refractory_us: i64,
pub cutoff_hz: f32,
pub leak_rate_hz: f32,
pub shot_noise_rate_hz: f32,
pub seed: u64,
pub upsample: Upsample,
pub max_upsample: usize,
}Expand description
Pixel-model parameters. Defaults follow v2e’s for a typical DVS.
Fields§
§pos_thres: f32Log-intensity increase that emits an ON event.
neg_thres: f32Log-intensity decrease that emits an OFF event.
sigma_thres: f32Standard deviation of the per-pixel Gaussian threshold mismatch, in log units.
refractory_us: i64Minimum time between two events from the same pixel, in µs.
cutoff_hz: f32Photoreceptor bandwidth for a white pixel, in Hz. 0 disables the lowpass.
leak_rate_hz: f32Spontaneous ON events per pixel per second. 0 disables leak.
shot_noise_rate_hz: f32Shot-noise events per pixel per second in the darkest pixels. 0 disables noise.
seed: u64Seed for mismatch and noise, so a run is reproducible from its configuration.
upsample: UpsampleFrame subdivision — see Upsample.
max_upsample: usizeCeiling on the sub-steps any one frame pair may be split into.
Adaptive upsampling is driven by the busiest pixel, so one high-contrast edge can push a
whole 1080p frame to the ceiling — 64 full-sensor passes for that pair. Lowering this
bounds the worst case at some cost in timestamp accuracy where the scene really is that
fast; raising it buys accuracy on hard cuts. Clamped to 1..=4096.
Implementations§
Trait Implementations§
Source§impl Clone for SimulatorConfig
impl Clone for SimulatorConfig
Source§fn clone(&self) -> SimulatorConfig
fn clone(&self) -> SimulatorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SimulatorConfig
Source§impl Debug for SimulatorConfig
impl Debug for SimulatorConfig
Source§impl Default for SimulatorConfig
impl Default for SimulatorConfig
Source§impl PartialEq for SimulatorConfig
impl PartialEq for SimulatorConfig
impl StructuralPartialEq for SimulatorConfig
Auto Trait Implementations§
impl Freeze for SimulatorConfig
impl RefUnwindSafe for SimulatorConfig
impl Send for SimulatorConfig
impl Sync for SimulatorConfig
impl Unpin for SimulatorConfig
impl UnsafeUnpin for SimulatorConfig
impl UnwindSafe for SimulatorConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more