OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
event-histogram.hpp
Go to the documentation of this file.
1
6#ifndef OPENEV_REPRESENTATIONS_EVENT_HISTOGRAM_HPP
7#define OPENEV_REPRESENTATIONS_EVENT_HISTOGRAM_HPP
8
10#include "openev/core/types.hpp"
13#include <opencv2/core/hal/interface.h>
14#include <opencv2/core/mat.hpp>
15#include <opencv2/core/matx.hpp>
16#include <utility>
17
18namespace ev {
53template <typename T, const RepresentationOptions Options = RepresentationOptions::NONE, typename E = int>
54class EventHistogram_ : public EventImage_<T, Options, E> {
55public:
56 template <typename... Args>
57 explicit EventHistogram_(Args &&...args) : EventImage_<T, Options, E>(std::forward<Args>(args)...) {
59 }
60
67 cv::Mat &render();
68
69private:
70 void clear_() override;
71 void clear_(const cv::Mat &background) override;
72 bool insert_(const Event_<E> &e) override;
73 int peak_{0};
74};
102} // namespace ev
103
105#include "openev/representations/event-histogram.tpp"
108#endif // OPENEV_REPRESENTATIONS_EVENT_HISTOGRAM_HPP
Event abstract representation.
Definition matrices.hpp:72
This class extends ev::EventImage_<T> for event 2D histograms.
Definition event-histogram.hpp:54
cv::Mat & render()
Render event histogram matrix.
CounterMat counter
Definition event-histogram.hpp:61
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
Event images.
Basic event-based vision structures based on OpenCV components.
Basic event-based vision structures based on OpenCV components.