This class extends std::vector to implement event vectors. For more information, please refer here.
More...
#include <vector.hpp>
|
template<std::size_t N> |
void | push_back (const Array_< T, N > &array) |
| Push back elements from an array of events.
|
|
double | duration () const |
| Time difference between the last and the first event.
|
|
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.
|
|
Eventd | mean () const |
| Compute the mean of the events.
|
|
cv::Point2d | meanPoint () const |
| Compute the mean x,y point of the events.
|
|
double | meanTime () const |
| Compute the mean time of the events.
|
|
double | midTime () const |
| Calculate the midpoint time between the oldest and the newest event.
|
|
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.
◆ duration()
Time difference between the last and the first event.
- Returns
- Time difference
◆ mean()
Compute the mean of the events.
- Returns
- An Eventd object containing the mean values of x, y, t, and p attributes.
◆ meanPoint()
Compute the mean x,y point of the events.
- Returns
- Mean point
◆ meanTime()
Compute the mean time of the events.
- Returns
- Mean time
◆ midTime()
Calculate the midpoint time between the oldest and the newest event.
- Returns
- Midpoint time.
◆ push_back()
template<typename T >
template<std::size_t N>
Push back elements from an array of events.
- Parameters
-
array | Event array to push back |
◆ rate()
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/vector.hpp