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

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

#include <deque.hpp>

Inheritance diagram for ev::Deque_< T >:
ev::SlidingWindow_< T >

Public Member Functions

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 () 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 midTime () const
 Calculate the midpoint time between the oldest and the newest event.

Detailed Description

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

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

Event deques inherit all the properties from standard C++ deques. Event deques are double-ended queues that allow fast insertion and deletion at both their beginning and their end.

Member Function Documentation

◆ duration()

template<typename T>
ResultType ev::Deque_< T >::duration ( ) const
inlinenodiscard

Time difference between the last and the first event.

Returns
Time difference

◆ mean()

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

Compute the mean of the events.

Returns
An Eventd object containing the mean values of x, y, t, and p attributes.

◆ meanPoint()

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

Compute the mean x,y point of the events.

Returns
Mean point

◆ meanTime()

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

Compute the mean time of the events.

Returns
Mean time

◆ midTime()

template<typename T>
ResultType ev::Deque_< T >::midTime ( ) const
inlinenodiscard

Calculate the midpoint time between the oldest and the newest event.

Returns
Midpoint time.

◆ rate()

template<typename T>
ResultType ev::Deque_< T >::rate ( ) const
inlinenodiscard

Compute event rate as the ratio between the number of events and the time difference between the last and the first event.

Returns
Event rate

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