![]() |
OpenEV
Extending OpenCV to event-based vision
|
This class extends std::queue to implement event queues. For more information, please refer here. More...
#include <queue.hpp>
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. | |
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: