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

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

#include <persistent_queue.hpp>

Inheritance diagram for ev::PersistentQueue_< T >:
ev::Queue_< T >

Public Member Functions

Event_< ResultType > mean ()
 Compute the mean of the events without consuming the queue.
cv::Point_< ResultType > meanPoint ()
 Compute the mean x,y point of the events without consuming the queue.
ResultType meanTime ()
 Compute the mean time of the events without consuming the queue.
Public Member Functions inherited from ev::Queue_< 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.
Event_< ResultType > mean ()
 Compute the mean of the events.
cv::Point_< ResultType > meanPoint ()
 Compute the mean x,y point of the events.
ResultType meanTime ()
 Compute the mean time of the events.
ResultType midTime () const
 Calculate the midpoint time between the oldest and the newest event.

Detailed Description

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

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

Persistent event queues inherit the FIFO behaviour of standard C++ queues while preserving their contents after aggregate queries.

Member Function Documentation

◆ mean()

template<typename T>
Event_< ResultType > ev::PersistentQueue_< T >::mean ( )
inlinenodiscard

Compute the mean of the events without consuming the queue.

Returns
An Eventd object containing the mean values of x, y, t, and p attributes.
Note
Unlike Queue_::mean(), the queue contents are preserved after this call.

◆ meanPoint()

template<typename T>
cv::Point_< ResultType > ev::PersistentQueue_< T >::meanPoint ( )
inlinenodiscard

Compute the mean x,y point of the events without consuming the queue.

Returns
Mean point
Note
Unlike Queue_::meanPoint(), the queue contents are preserved after this call.

◆ meanTime()

template<typename T>
ResultType ev::PersistentQueue_< T >::meanTime ( )
inlinenodiscard

Compute the mean time of the events without consuming the queue.

Returns
Mean time
Note
Unlike Queue_::meanTime(), the queue contents are preserved after this call.

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