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::EventActiveTrack

Event describing the position and size of a track generated by an active light source.

Public Members

float x

Blob’s center’s abscissa in the sensor.

float y

Blob’s center’s ordinate in the sensor.

float radius

Track’s influence radius (i.e. radius below which an event is associated to the track)

timestamp t

Timestamp of the last update of the center.

std::uint32_t id

ID of the source that generated this track.

Status status

Blob’s status.

struct Metavision::EventOpticalFlow

Class representing an event used to describe an optical flow.

Public Functions

EventOpticalFlow() = default

Default constructor.

inline 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 of 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

inline 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 also

Metavision::Event2d for more details

timestamp t

Timestamp at which the event happened (in us)

float vx

Speed in X axis in pixels per second in the image plane of the considered event.

float vy

Speed in Y axis 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

static inline 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 of the event.

See also

Metavision::Event2d for more details

timestamp t

Timestamp at which the event happened (in us)

struct Metavision::EventSourceId

Event triggered by a source identified with a unique ID.

Public Members

std::uint16_t x

Column position in the sensor at which the event happened.

std::uint16_t y

Row position in the sensor at which the event happened.

timestamp t

Timestamp at which the event happened (in us)

std::uint32_t id

ID of the source that generated the event.