RefractoryPeriod#
- class tonic.transforms.RefractoryPeriod(delta: Union[int, Tuple[int, int]])[source]#
Sets a refractory period for each pixel, during which events will be ignored/discarded. We keep events if:
\[t_n - t_{n-1} > t_{refrac}\]for each pixel.
- Parameters:
delta (int) – Refractory period for each pixel. Use same time unit as event timestamps. Can use a 2-tuple to sample from a range.
>>> transform1 = tonic.transforms.RefractoryPeriod(delta=1000) >>> transform2 = tonic.transforms.RefractoryPeriod(delta=[0, 1000])