pub enum Upsample {
Off,
Fixed(usize),
Adaptive {
max_events_per_pixel: f32,
},
}Expand description
How finely the interval between two source frames is subdivided before simulating.
Between two frames the true intensity path is unknown and is assumed linear. That assumption degrades as more happens between them, so subdividing and interpolating recovers timing accuracy — the axis no other event-vision library covers today.
Variants§
Off
Simulate straight from the source frames.
Fixed(usize)
Always insert n - 1 interpolated frames between each pair.
Adaptive
Subdivide until no pixel would emit more than max_events_per_pixel events per sub-interval.
v2e picks its factor from optical flow, keeping motion under a pixel per sub-interval. This uses contrast instead: the quantity that actually bounds timestamp error is how many threshold crossings are being packed into one linear interpolation, and that is measured directly rather than inferred from displacement — no flow estimate required.
Trait Implementations§
impl Copy for Upsample
impl StructuralPartialEq for Upsample
Auto Trait Implementations§
impl Freeze for Upsample
impl RefUnwindSafe for Upsample
impl Send for Upsample
impl Sync for Upsample
impl Unpin for Upsample
impl UnsafeUnpin for Upsample
impl UnwindSafe for Upsample
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