SDK CV Events

template<typename T = float>
struct Metavision::Event2dFrequency

Event2dFrequency represents a periodic event at a particular 2D position.

Public Members

unsigned short x

Column position in the sensor at which the event happened.

unsigned short y

Row position in the sensor at which the event happened.

timestamp t

Timestamp at which the event happened (in us)

T frequency

frequency

template<typename T = float>
struct Metavision::Event2dFrequencyCluster

Event2dFrequencyCluster represents a cluster of frequency events.

Public Members

T x = 0

X coordinate of the center of the cluster.

T y = 0

Y coordinate of the center of the cluster.

timestamp t = 0

Timestamp of the last update (in us).

T frequency = 0

Filtered frequency of events associated to the cluster.

uint32_t id = 0

Cluster ID.

uint32_t n_pixels = 0

Number of different pixels “triggered” by an event, belonging to the cluster.

uint32_t n_events = 0

Number of events that were associated to this cluster.

struct Metavision::EventOpticalFlow

Class representing an event used to describe an optical flow.

Public Functions

EventOpticalFlow() = default

Default constructor.

EventOpticalFlow(unsigned short x, unsigned short y, short p, timestamp t, float vx, float vy, unsigned int id, float cx, float cy)

Constructor.

Parameters
  • x: Column position of the event in the sensor

  • y: Row position of the event in the sensor

  • p: Polarity specialising the event

  • t: Timestamp of the event (in us)

  • vx: Speed in X axis in pixels per second in the image plane of the considered event

  • vy: Speed in Y axis in pixels per second in the image plane of the considered event

  • id: Feature id of the considered event

  • cx: Horizontal coordinate of the center of the feature used to compute speed of the considered event

  • cy: Vertical coordinate of the center of the feature used to compute speed of the considered event

void write_event(void *buf, timestamp origin) const

Write EventOpticalFlowCCL in buffer.

Public Members

unsigned short x

Column position in the sensor at which the event happened.

unsigned short y

Row position in the sensor at which the event happened.

short p

Polarity, whose value depends on the type of the event (CD or EM)

See

Metavision::Event2d for more details

timestamp t

Timestamp at which the event happened (in us)

float vx

vx, vy speed in pixels per second in the image plane of the considered event

unsigned int id = 0

id feature id of the considered event.

float center_x = 0.f

center_x horizontal coordinate of the center of the feature used to compute speed of the considered event.

float center_y = 0.f

center_y vertical coordinate of the center of the feature used to compute speed of the considered event.

Public Static Functions

EventOpticalFlow read_event(void *buf, const timestamp &delta_ts)

Read EventOpticalFlowCCL from buffer.

template<typename T = timestamp>
struct Metavision::Event2dPeriod

Event2dPeriod is an Event2d extended with a period information.

Public Members

unsigned short x

Column position in the sensor at which the event happened.

unsigned short y

Row position in the sensor at which the event happened.

short p

Polarity, whose value depends on the type of the event (CD or EM)

See

Metavision::Event2d for more details

timestamp t

Timestamp at which the event happened (in us)