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

.. py:module:: tonic.functional.crop


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


Functions
~~~~~~~~~

.. autoapisummary::

   tonic.functional.crop.crop_numpy



.. py:function:: crop_numpy(events, sensor_size, target_size)

   Crops the sensor size to a smaller sensor.

   x' = x - new_sensor_start_x
   y' = y - new_sensor_start_y

   :param events: ndarray of shape [num_events, num_event_channels]
   :param sensor_size: size of the sensor that was used [W,H]
   :param target_size: size of the sensor that was used [W',H']

   :returns: events - events within the crop box
             sensor_size - cropped to target_size


