:py:mod:`tonic.datasets.davisdataset`
=====================================

.. py:module:: tonic.datasets.davisdataset


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

Classes
~~~~~~~

.. autoapisummary::

   tonic.datasets.davisdataset.DAVISDATA




.. py:class:: DAVISDATA(save_to: str, recording: Union[str, List[str]], transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, transforms: Optional[Callable] = None)


   Bases: :py:obj:`tonic.dataset.Dataset`

   `DAVIS event camera dataset <http://rpg.ifi.uzh.ch/davis_data.html>`_
   ::

       @article{mueggler2017event,
         title={The event-camera dataset and simulator: Event-based data for pose estimation, visual odometry, and SLAM},
         author={Mueggler, Elias and Rebecq, Henri and Gallego, Guillermo and Delbruck, Tobi and Scaramuzza, Davide},
         journal={The International Journal of Robotics Research},
         volume={36},
         number={2},
         pages={142--149},
         year={2017},
         publisher={SAGE Publications Sage UK: London, England}
       }

   :param save_to: Location to save files to on disk. Will save files in a sub folder 'davis_dataset'.
   :type save_to: string
   :param recording: Use the name of the recording or a list thereof to download it, for example 'dynamic_6dof'
                     or ['slider_far', 'urban']. See project homepage for a list of available recordings.
                     Can use 'all' to download all available recordings.
   :type recording: string
   :param transform: A callable of transforms to apply to events and/or images.
   :type transform: callable, optional
   :param target_transform: A callable of transforms to apply to the targets/labels.
   :type target_transform: callable, optional
   :param transforms: A callable of transforms that is applied to both data and
                      labels at the same time.
   :type transforms: callable, optional

   .. py:attribute:: base_url
      :value: 'http://rpg.ifi.uzh.ch/datasets/davis/'

      

   .. py:attribute:: recordings

      

   .. py:attribute:: sensor_size
      :value: (240, 180, 2)

      

   .. py:attribute:: dtype

      

   .. py:attribute:: ordering

      

   .. py:attribute:: folder_name
      :value: ''

      

   .. py:method:: __getitem__(index)

      :returns: tuple of (data, target), where data is another tuple of (events, imu, images) and target is the opti track ground truth


   .. py:method:: __len__()


   .. py:method:: download()

      Downloads from a given url, places into target folder and verifies the file hash.



