tonic.functional.crop
#
Module Contents#
Functions#
|
Crops the sensor size to a smaller sensor. |
- tonic.functional.crop.crop_numpy(events, sensor_size, target_size)[source]#
Crops the sensor size to a smaller sensor.
x’ = x - new_sensor_start_x y’ = y - new_sensor_start_y
- Parameters:
events – ndarray of shape [num_events, num_event_channels]
sensor_size – size of the sensor that was used [W,H]
target_size – size of the sensor that was used [W’,H’]
- Returns:
events - events within the crop box sensor_size - cropped to target_size