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>
Public Member Functions | |
template<std::size_t N> | |
void | push (const Array_< T, N > &array) |
Push elements from an array of events. | |
void | push (const Vector_< T > &vector) |
Push elements from a vector of events. | |
double | duration () const |
Time difference between the last and the first event in the queue. | |
double | rate () const |
Compute event rate as the ratio between the number of events and the time difference between the last and the first event in the queue. | |
double | midTime () const |
Calculate the midpoint time between the oldest and the newest event. | |
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. Events queues are FIFO data structures not intended to be directly iterated.
|
inlinenodiscard |
Time difference between the last and the first event in the queue.
|
inlinenodiscard |
Calculate the midpoint time between the oldest and the newest event.
|
inline |
Push elements from an array of events.
array | Event array to push |
|
inline |
Push elements from a vector of events.
vector | Event vector to push |
|
inlinenodiscard |
Compute event rate as the ratio between the number of events and the time difference between the last and the first event in the queue.