Spatial map accumulating signed event counts per pixel.
More...
#include <matrices.hpp>
|
| template<typename T> |
| CounterType | insert (const Event_< T > &e) |
| | Insert an event, incrementing (p=true) or decrementing (p=false) the counter at (e.x, e.y).
|
| template<typename T> |
| CounterType | emplace (const T x, const T y, const bool p) |
| | Increment or decrement the counter 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 Counter &counter) |
Spatial map accumulating signed event counts per pixel.
Each positive-polarity event increments the pixel counter by +1; each negative-polarity event decrements it by -1. Counters are stored as CounterType (int16_t by default).
◆ emplace()
template<typename T>
| CounterType ev::Mat::Counter::emplace |
( |
const T | x, |
|
|
const T | y, |
|
|
const bool | p ) |
|
inline |
Increment or decrement the counter at (x, y) without constructing an Event_.
- Parameters
-
| x | Spatial coordinate x |
| y | Spatial coordinate y |
| p | true to increment (+1), false to decrement (-1) |
- Returns
- Updated counter value
◆ insert()
template<typename T>
| CounterType ev::Mat::Counter::insert |
( |
const Event_< T > & | e | ) |
|
|
inline |
Insert an event, incrementing (p=true) or decrementing (p=false) the counter at (e.x, e.y).
- Parameters
-
- Returns
- Updated counter value
The documentation for this class was generated from the following file: