:py:mod:`tonic.functional.to_voxel_grid`
========================================

.. py:module:: tonic.functional.to_voxel_grid


Module Contents
---------------


Functions
~~~~~~~~~

.. autoapisummary::

   tonic.functional.to_voxel_grid.to_voxel_grid_numpy



.. py:function:: to_voxel_grid_numpy(events, sensor_size, n_time_bins=10)

   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.

   :param events: ndarray of shape [num_events, num_event_channels]
   :param sensor_size: size of the sensor that was used [W,H].
   :param 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)


