evlib.preproc.hot_pixel

Hot-pixel removal filters.

Functions

hot_pixel_filter(events, image_shape[, ...])

Apply hot-pixel removal, a speed-optimized implementation.

evlib.preproc.hot_pixel.hot_pixel_filter(events, image_shape, hot_pixel=10)
Apply hot-pixel removal, a speed-optimized implementation.

The filtering is for a single batch of events, not multiple or asynchronous.

Parameters:
  • events (NUMPY_TORCH) – [N, 4]

  • image_shape (tuple) – tuple of (H, W).

  • hot_pixel (int) – threshold of hot pixels.

Returns:

Filered events

Return type:

NUMPY_TORCH