OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
filtering.hpp
Go to the documentation of this file.
1
6#ifndef OPENEV_EVPROC_FILTERING_HPP
7#define OPENEV_EVPROC_FILTERING_HPP
8
10#include "openev/core/types.hpp"
11#include <limits>
12#include <opencv2/core/types.hpp>
13
14namespace ev {
15
26public:
33 BackgroundActivityFilter(const cv::Size &size, ev::TimeType dt, int radius = 1);
34
35 ~BackgroundActivityFilter() = default;
38 BackgroundActivityFilter &operator=(const BackgroundActivityFilter &) = default;
39 BackgroundActivityFilter &operator=(BackgroundActivityFilter &&) noexcept = default;
40
47 [[nodiscard]] bool operator()(const ev::Event &e);
48
49private:
50 ev::Mat::Time map_;
51 ev::TimeType dt_;
52 int radius_;
53};
54
55} // namespace ev
56
57#endif // OPENEV_EVPROC_FILTERING_HPP
BackgroundActivityFilter(const cv::Size &size, ev::TimeType dt, int radius=1)
Definition filtering.cpp:10
bool operator()(const ev::Event &e)
Definition filtering.cpp:13
Spatial map storing the timestamp of the most recent event at each pixel.
Definition matrices.hpp:201
Event-based matrix representations for accumulating events into spatial maps.
Basic event-based vision structures based on OpenCV components.
Eventi Event
Definition types.hpp:252