OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
ev::Mat::Polarity Class Reference

Spatial map storing the polarity of the most recent event at each pixel. More...

#include <matrices.hpp>

Inheritance diagram for ev::Mat::Polarity:
ev::Mat::Mat_< PolarityType >

Public Member Functions

template<typename T>
PolarityType insert (const Event_< T > &e)
 Insert an event, storing e.p at pixel (e.x, e.y).
template<typename T>
PolarityType emplace (const T x, const T y, const PolarityType p)
 Store polarity p at (x, y) without constructing an Event_.
Public Member Functions inherited from ev::Mat::Mat_< PolarityType >
void updateStats (const Event &e)
 Account for an event in the statistics reported by count() and duration().
CounterType count () const
 Number of events accounted for by updateStats() since the last resetStats().
TimeType duration () const
 Time elapsed between the first and the last event accounted for by updateStats().
void resetStats ()
 Reset statistics (count, first timestamp, last timestamp).
void clear ()
 Reset all pixels.

Friends

std::ostream & operator<< (std::ostream &os, const Polarity &polarity)

Detailed Description

Spatial map storing the polarity of the most recent event at each pixel.

Each insertion overwrites the stored polarity unconditionally; only the latest polarity per pixel is retained.

Member Function Documentation

◆ emplace()

template<typename T>
PolarityType ev::Mat::Polarity::emplace ( const T x,
const T y,
const PolarityType p )
inline

Store polarity p at (x, y) without constructing an Event_.

Parameters
xSpatial coordinate x
ySpatial coordinate y
pPolarity
Returns
Stored polarity

◆ insert()

template<typename T>
PolarityType ev::Mat::Polarity::insert ( const Event_< T > & e)
inline

Insert an event, storing e.p at pixel (e.x, e.y).

Parameters
eEvent to insert
Returns
Stored polarity

The documentation for this class was generated from the following file: