evlib.types.raw_event

Data type for a single event.

Classes

RawEvent(x, y, timestamp, polarity)

Dataclass for raw events

class evlib.types.raw_event.RawEvent(x, y, timestamp, polarity)

Dataclass for raw events

Parameters:
  • x (int16)

  • y (int16)

  • timestamp (float64)

  • polarity (bool)

x: int16
y: int16
timestamp: float64
polarity: bool
property p: bool

Alias for polatiry.

property t: float64

Alias for timestamp.

property color: tuple
copy()
Return type:

Any

as_numpy()

Convert event object into 1-d numpy array.

Returns:

1-d numpy array.

Return type:

npt.NDArray[np.float64]