Spatial map storing the timestamp of the most recent event at each pixel.
More...
#include <matrices.hpp>
|
| template<typename T> |
| TimeType | insert (const Event_< T > &e) |
| | Insert an event, storing e.t at pixel (e.x, e.y).
|
| template<typename T> |
| TimeType | emplace (const T x, const T y, const TimeType t) |
| | Store timestamp t at (x, y) without constructing an Event_.
|
|
void | updateStats (const Event &e) |
|
CounterType | count () const |
|
TimeType | duration () const |
|
void | resetStats () |
| | Reset statistics (count, first timestamp, last timestamp).
|
|
void | clear () |
| | Reset all pixels.
|
|
|
std::ostream & | operator<< (std::ostream &os, const Time &time) |
Spatial map storing the timestamp of the most recent event at each pixel.
Each insertion overwrites the stored timestamp unconditionally; only the latest timestamp per pixel is retained. Timestamps are stored as TimeType (float by default).
◆ emplace()
template<typename T>
| TimeType ev::Mat::Time::emplace |
( |
const T | x, |
|
|
const T | y, |
|
|
const TimeType | t ) |
|
inline |
Store timestamp t at (x, y) without constructing an Event_.
- Parameters
-
| x | Spatial coordinate x |
| y | Spatial coordinate y |
| t | Timestamp |
- Returns
- Stored timestamp
◆ insert()
template<typename T>
| TimeType ev::Mat::Time::insert |
( |
const Event_< T > & | e | ) |
|
|
inline |
Insert an event, storing e.t at pixel (e.x, e.y).
- Parameters
-
- Returns
- Stored timestamp
The documentation for this class was generated from the following file: