6#ifndef OPENEV_CONTAINERS_VECTOR_HPP
7#define OPENEV_CONTAINERS_VECTOR_HPP
10#include <opencv2/core/types.hpp>
20class Vector_ :
public std::vector<Event_<T>> {
34 [[nodiscard]]
inline double rate()
const;
58 [[nodiscard]]
inline double midTime()
const;
64using Vector = Vectori;
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition types.hpp:55
This class extends std::vector to implement event vectors. For more information, please refer here.
Definition vector.hpp:20
double midTime() const
Calculate the midpoint time between the oldest and the newest event.
Definition vector.cpp:41
double rate() const
Compute event rate as the ratio between the number of events and the time difference between the last...
Definition vector.cpp:15
double duration() const
Time difference between the last and the first event.
Definition vector.cpp:10
double meanTime() const
Compute the mean time of the events.
Definition vector.cpp:36
Eventd mean() const
Compute the mean of the events.
Definition vector.cpp:20
cv::Point2d meanPoint() const
Compute the mean x,y point of the events.
Definition vector.cpp:29
Basic event-based vision structures based on OpenCV components.
Event_< double > Eventd
Definition types.hpp:207