OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
event-image.hpp
Go to the documentation of this file.
1
6#ifndef OPENEV_REPRESENTATIONS_EVENT_IMAGES_HPP
7#define OPENEV_REPRESENTATIONS_EVENT_IMAGES_HPP
8
11#include <opencv2/core/hal/interface.h>
12#include <opencv2/core/mat.hpp>
13#include <opencv2/core/matx.hpp>
14#include <utility>
15
16namespace ev {
51template <typename T, const RepresentationOptions Options = RepresentationOptions::NONE>
52class EventImage_ : public cv::Mat_<T>, public AbstractRepresentation_<T, Options> {
53public:
54 template <typename... Args>
55 explicit EventImage_(Args &&...args) : cv::Mat_<T>(std::forward<Args>(args)...) {
57 }
58
59 cv::Mat &render() { return *this; }
60
61private:
62 void clear_() override;
63 void clear_(const cv::Mat &background) override;
64 bool insert_(const Event &e) override;
65};
93} // namespace ev
94
96#include "openev/representations/event-image.tpp"
99#endif // OPENEV_REPRESENTATIONS_EVENT_IMAGES_HPP
Event abstract representation.
This is an auxiliary class. This class cannot be instanced.
Definition abstract-representation.hpp:119
void clear()
Remove all events from the representation.
This class extends cv::Mat_<T> for event images. For more information, please refer here.
Definition event-image.hpp:52
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition types.hpp:60
Basic event-based vision structures based on OpenCV components.