Denoise#

class tonic.transforms.Denoise(filter_time: float)[source]#

Drops events that are spatio-temporally not sufficiently close enough to other events in the sample. In practise that means that an event is dropped if no other event occured within a spatial neighbourhood of 1 pixel and a temporal neighbourhood of filter_time time units. Useful to filter noisy recordings where events occur isolated in time.

Parameters:

filter_time (float) – minimum temporal distance to next event, otherwise dropped. Lower values will mean higher constraints, therefore less output events. Use same unit of time as the events have.

Example

>>> transform = tonic.transforms.Denoise(filter_time=10000)