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

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

#include <array.hpp>

Inheritance diagram for ev::Array_< T, N >:

Public Member Functions

double duration () const
 Time difference between the last and the first event in the array.
 
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 array.
 
Eventd mean () const
 Compute the mean of the events in the array.
 
double meanTime () const
 Compute the mean time of the events in the array.
 

Detailed Description

template<typename T, std::size_t N>
class ev::Array_< T, N >

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

Event arrays inherit all the properties from standard C++ arrays. Events in the array are stored contiguously.

Member Function Documentation

◆ duration()

template<typename T , std::size_t N>
double ev::Array_< T, N >::duration ( ) const
inlinenodiscard

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

Returns
Time difference

◆ mean()

template<typename T , std::size_t N>
Eventd ev::Array_< T, N >::mean ( ) const
inlinenodiscard

Compute the mean of the events in the array.

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

◆ meanTime()

template<typename T , std::size_t N>
double ev::Array_< T, N >::meanTime ( ) const
inlinenodiscard

Compute the mean time of the events in the array.

Returns
Mean time

◆ rate()

template<typename T , std::size_t N>
double ev::Array_< T, N >::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 array.

Returns
Event rate

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