tonic.functional.to_voxel_grid
#
Module Contents#
Functions#
|
Build a voxel grid with bilinear interpolation in the time domain from a set of events. |
- tonic.functional.to_voxel_grid.to_voxel_grid_numpy(events, sensor_size, n_time_bins=10)[source]#
Build a voxel grid with bilinear interpolation in the time domain from a set of events. Implements the event volume from Zhu et al. 2019, Unsupervised event-based learning of optical flow, depth, and egomotion.
- Parameters:
events – ndarray of shape [num_events, num_event_channels]
sensor_size – size of the sensor that was used [W,H].
n_time_bins – number of bins in the temporal axis of the voxel grid.
- Returns:
numpy array of n event volumes (n,w,h,t)