OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
ev::Mat::Mat_< T > Class Template Reference
Inheritance diagram for ev::Mat::Mat_< T >:
ev::Mat::Binary_< uchar > ev::Mat::Ternary_< signed char >

Public Member Functions

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.

Member Function Documentation

◆ count()

template<typename T>
CounterType ev::Mat::Mat_< T >::count ( ) const
inline

Number of events accounted for by updateStats() since the last resetStats().

Returns
Event count

◆ duration()

template<typename T>
TimeType ev::Mat::Mat_< T >::duration ( ) const
inline

Time elapsed between the first and the last event accounted for by updateStats().

Returns
Time difference, zero if fewer than two events were accounted for

◆ updateStats()

template<typename T>
void ev::Mat::Mat_< T >::updateStats ( const Event & e)
inline

Account for an event in the statistics reported by count() and duration().

Parameters
eEvent to account for

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