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

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

#include <vector.hpp>

Inheritance diagram for ev::Vector_< T >:

Public Member Functions

template<std::size_t N>
void push_back (const Array_< T, N > &array)
 Push back elements from an array of events.
 
void push_back (Queue_< T > &queue, const bool keep_events_in_queue=false)
 Push back elements from a queue of events.
 
double duration () const
 Time difference between the last and the first event in the vector.
 
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 vector.
 
Eventd mean () const
 Compute the mean of the events in the vector.
 
double meanTime () const
 Compute the mean time of the events in the vector.
 

Detailed Description

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

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

Event vectors inherit all the properties from standard C++ vectors. Events in the vector are stored contiguously.

Examples
example-davis.cpp.

Member Function Documentation

◆ duration()

template<typename T >
double ev::Vector_< T >::duration ( ) const
inlinenodiscard

Time difference between the last and the first event in the vector.

Returns
Time difference

◆ mean()

template<typename T >
Eventd ev::Vector_< T >::mean ( ) const
inlinenodiscard

Compute the mean of the events in the vector.

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

◆ meanTime()

template<typename T >
double ev::Vector_< T >::meanTime ( ) const
inlinenodiscard

Compute the mean time of the events in the vector.

Returns
Mean time

◆ push_back() [1/2]

template<typename T >
template<std::size_t N>
void ev::Vector_< T >::push_back ( const Array_< T, N > & array)
inline

Push back elements from an array of events.

Parameters
arrayEvent array to push back

◆ push_back() [2/2]

template<typename T >
void ev::Vector_< T >::push_back ( Queue_< T > & queue,
const bool keep_events_in_queue = false )
inline

Push back elements from a queue of events.

Parameters
queueEvent queue to push back
keep_events_in_queueIf true, events are reinserted in the queue

◆ rate()

template<typename T >
double ev::Vector_< 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 in the vector.

Returns
Event rate

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