6#ifndef OPENEV_CONTAINERS_QUEUE_HPP
7#define OPENEV_CONTAINERS_QUEUE_HPP
10#include <opencv2/core/types.hpp>
20class Queue_ :
public std::queue<Event_<T>> {
34 [[nodiscard]]
inline double rate()
const;
58 [[nodiscard]]
inline double midTime()
const;
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition types.hpp:55
This class extends std::queue to implement event queues. For more information, please refer here.
Definition queue.hpp:20
double rate() const
Compute event rate as the ratio between the number of events and the time difference between the last...
Definition queue.cpp:15
Eventd mean()
Compute the mean of the events.
Definition queue.cpp:20
cv::Point2d meanPoint()
Compute the mean x,y point of the events.
Definition queue.cpp:40
double meanTime()
Compute the mean time of the events.
Definition queue.cpp:56
double midTime() const
Calculate the midpoint time between the oldest and the newest event.
Definition queue.cpp:69
double duration() const
Time difference between the last and the first event.
Definition queue.cpp:10
Queue_< float > Queuef
Definition queue.hpp:62
Queuei Queue
Definition queue.hpp:64
Queue_< double > Queued
Definition queue.hpp:63
Queue_< long > Queuel
Definition queue.hpp:61
Queue_< int > Queuei
Definition queue.hpp:60
Basic event-based vision structures based on OpenCV components.
Event_< double > Eventd
Definition types.hpp:207