aertb.core.viz¶
-
aertb.core.viz.make_gif(events, filename='my_gif.gif', n_frames=8, f_type='decay', axis=False, **kwargs)¶ - Creates a GIF from the passed events with the specified number of frames.
additional paramters such as ‘tau’ for the exponential decay ‘duration’ for the length of the GIF (default 200), etc. are specified as keyword arguments (**kwargs)
- Parameters
events (np.array) – the events to be used for the GIF
filename (str, optional) – the path+name for the gif file, by default ‘my_gif.gif’
n_frames (int, optional) – the number of frames that will be computed, by default 8
f_type (str, optional) – the type of frame used: ‘nop’ - no polarity, ‘decay’ - nop+exponential decay, ‘std’ - pos/neg polarity, by default ‘decay’
axis (bool, optional) – determines whether the GIF should show axis labels, by default False
- Raises
ValueError – When an invalid frame type is selected