6#ifndef OPENEV_REPRESENTATIONS_TIME_SURFACE_HPP
7#define OPENEV_REPRESENTATIONS_TIME_SURFACE_HPP
12#include <opencv2/core/hal/interface.h>
13#include <opencv2/core/matx.hpp>
14#include <opencv2/core/utils/logger.hpp>
66template <
typename T, const RepresentationOptions Options = RepresentationOptions::NONE,
typename E =
int>
67class TimeSurface_ :
public EventImage_<T, Options, E> {
69 template <
typename... Args>
70 explicit TimeSurface_(Args &&...args) : EventImage_<T, Options, E>(std::forward<Args>(args)...) {
84 cv::Mat &
render(
const Kernel kernel = Kernel::NONE,
const double tau = 0);
87 void clear_()
override;
88 void clear_(
const cv::Mat &background)
override;
89 bool insert_(
const Event_<E> &e)
override;
121#include "openev/representations/time-surface.tpp"
Event abstract representation.
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition types.hpp:56
Definition matrices.hpp:98
Definition matrices.hpp:64
Definition time-surface.hpp:67
cv::Mat & render(const Kernel kernel=Kernel::NONE, const double tau=0)
Render timesurface matrix.
Mat::Time time
Definition time-surface.hpp:74
Mat::Polarity polarity
Definition time-surface.hpp:75
Basic event-based vision structures based on OpenCV components.
TimeSurface_< cv::Vec4i > TimeSurface4i
Definition time-surface.hpp:106
TimeSurface_< int > TimeSurface1i
Definition time-surface.hpp:103
TimeSurface_< float > TimeSurface1f
Definition time-surface.hpp:107
TimeSurface_< cv::Vec4b > TimeSurface4b
Definition time-surface.hpp:94
TimeSurface_< cv::Vec4s > TimeSurface4s
Definition time-surface.hpp:98
TimeSurface_< cv::Vec4w > TimeSurface4w
Definition time-surface.hpp:102
TimeSurface_< cv::Vec3w > TimeSurface3w
Definition time-surface.hpp:101
TimeSurface_< cv::Vec3f > TimeSurface3f
Definition time-surface.hpp:109
TimeSurface_< cv::Vec2w > TimeSurface2w
Definition time-surface.hpp:100
TimeSurface_< cv::Vec3s > TimeSurface3s
Definition time-surface.hpp:97
TimeSurface1b TimeSurface1
Definition time-surface.hpp:115
TimeSurface_< cv::Vec2d > TimeSurface2d
Definition time-surface.hpp:112
TimeSurface_< ushort > TimeSurface1w
Definition time-surface.hpp:99
TimeSurface_< cv::Vec2f > TimeSurface2f
Definition time-surface.hpp:108
TimeSurface_< cv::Vec3i > TimeSurface3i
Definition time-surface.hpp:105
TimeSurface_< cv::Vec2b > TimeSurface2b
Definition time-surface.hpp:92
TimeSurface3b TimeSurface3
Definition time-surface.hpp:116
TimeSurface_< uchar > TimeSurface1b
Definition time-surface.hpp:91
Kernel
This class extends ev::EventImage_<T> for time surfaces.
Definition time-surface.hpp:63
TimeSurface_< cv::Vec3d > TimeSurface3d
Definition time-surface.hpp:113
TimeSurface_< cv::Vec4f > TimeSurface4f
Definition time-surface.hpp:110
TimeSurface_< double > TimeSurface1d
Definition time-surface.hpp:111
TimeSurface_< cv::Vec3b > TimeSurface3b
Definition time-surface.hpp:93
TimeSurface_< short > TimeSurface1s
Definition time-surface.hpp:95
TimeSurface1 TimeSurface
Definition time-surface.hpp:117
TimeSurface_< cv::Vec2s > TimeSurface2s
Definition time-surface.hpp:96
TimeSurface_< cv::Vec2i > TimeSurface2i
Definition time-surface.hpp:104
TimeSurface_< cv::Vec4d > TimeSurface4d
Definition time-surface.hpp:114