OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
ev::Queue_< T > Class Template Reference

This class extends std::queue to implement event queues. For more information, please refer here. More...

#include <queue.hpp>

Inheritance diagram for ev::Queue_< T >:
ev::AbstractContainer_< Queue_< T >, T >

Friends

class AbstractContainer_< Queue_< T >, T >

Additional Inherited Members

Public Types inherited from ev::AbstractContainer_< Queue_< T >, T >
using ResultType
Public Member Functions inherited from ev::AbstractContainer_< Queue_< T >, T >
ResultType duration () const
 Time difference between the last and the first event.
ResultType rate () const
 Compute event rate as the ratio between the number of events and the time difference between the last and the first event.
ResultType midTime () const
 Calculate the midpoint time between the oldest and the newest event.
Event_< ResultType > mean () const
 Compute the mean of the events.
cv::Point_< ResultType > meanPoint () const
 Compute the mean x,y point of the events.
ResultType meanTime () const
 Compute the mean time of the events.
ResultType entropy () const
 Compute the Shannon entropy of the spatial distribution of the events.

Detailed Description

template<typename T>
class ev::Queue_< T >

This class extends std::queue to implement event queues. For more information, please refer here.

Event queues inherit all the properties from standard C++ queues, so they remain FIFO structures that cannot be iterated. Internally they do expose iterators to AbstractContainer_, which is how the statistics are computed without consuming the events.

Analogously to OpenCV library, the following aliases are defined for convenience:

using Queue = Queuei;
This class extends std::queue to implement event queues. For more information, please refer here.
Definition queue.hpp:32
Queue_< float > Queuef
Definition queue.hpp:59
Queuei Queue
Definition queue.hpp:61
Queue_< double > Queued
Definition queue.hpp:60
Queue_< long > Queuel
Definition queue.hpp:58
Queue_< int > Queuei
Definition queue.hpp:57

The documentation for this class was generated from the following file:
  • modules/containers/include/openev/containers/queue.hpp