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 {
19template <typename T>
20class Event_;
21
56template <typename T, const RepresentationOptions Options = RepresentationOptions::NONE, typename E = int>
57class EventHistogram_ : public EventImage_<T, Options, E> {
58public:
59 template <typename... Args>
60 explicit EventHistogram_(Args &&...args) : EventImage_<T, Options, E>(std::forward<Args>(args)...) {
62 }
63
64 Mat::Counter counter{cv::Mat_<int>(EventImage_<T, Options, E>::size())};
65
70 cv::Mat &render();
71
72private:
73 void clear_() override;
74 void clear_(const cv::Mat &background) override;
75 bool insert_(const Event_<E> &e) override;
76 int peak_{0};
77};
105} // namespace ev
106
108#include "openev/representations/event-histogram.tpp"
110
111#endif // OPENEV_REPRESENTATIONS_EVENT_HISTOGRAM_HPP
Event abstract representation.
This class extends ev::EventImage_<T> for event 2D histograms.
Definition event-histogram.hpp:57
cv::Mat & render()
Render event histogram matrix.
Mat::Counter counter
Definition event-histogram.hpp:64
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition types.hpp:62
Definition matrices.hpp:113
EventHistogram1 EventHistogram
Definition event-histogram.hpp:104
EventHistogram_< cv::Vec2f > EventHistogram2f
Definition event-histogram.hpp:95
EventHistogram_< cv::Vec4w > EventHistogram4w
Definition event-histogram.hpp:89
EventHistogram_< uchar > EventHistogram1b
Definition event-histogram.hpp:78
EventHistogram_< cv::Vec4i > EventHistogram4i
Definition event-histogram.hpp:93
EventHistogram1b EventHistogram1
Definition event-histogram.hpp:102
EventHistogram_< cv::Vec3f > EventHistogram3f
Definition event-histogram.hpp:96
EventHistogram_< cv::Vec3b > EventHistogram3b
Definition event-histogram.hpp:80
EventHistogram_< cv::Vec3d > EventHistogram3d
Definition event-histogram.hpp:100
EventHistogram_< cv::Vec2b > EventHistogram2b
Definition event-histogram.hpp:79
EventHistogram_< float > EventHistogram1f
Definition event-histogram.hpp:94
EventHistogram_< ushort > EventHistogram1w
Definition event-histogram.hpp:86
EventHistogram_< cv::Vec4s > EventHistogram4s
Definition event-histogram.hpp:85
EventHistogram_< cv::Vec2s > EventHistogram2s
Definition event-histogram.hpp:83
EventHistogram_< cv::Vec3i > EventHistogram3i
Definition event-histogram.hpp:92
EventHistogram_< cv::Vec4d > EventHistogram4d
Definition event-histogram.hpp:101
EventHistogram3b EventHistogram3
Definition event-histogram.hpp:103
EventHistogram_< cv::Vec3w > EventHistogram3w
Definition event-histogram.hpp:88
EventHistogram_< cv::Vec2w > EventHistogram2w
Definition event-histogram.hpp:87
EventHistogram_< cv::Vec2i > EventHistogram2i
Definition event-histogram.hpp:91
EventHistogram_< double > EventHistogram1d
Definition event-histogram.hpp:98
EventHistogram_< cv::Vec4b > EventHistogram4b
Definition event-histogram.hpp:81
EventHistogram_< cv::Vec3s > EventHistogram3s
Definition event-histogram.hpp:84
EventHistogram_< cv::Vec4f > EventHistogram4f
Definition event-histogram.hpp:97
EventHistogram_< int > EventHistogram1i
Definition event-histogram.hpp:90
EventHistogram_< short > EventHistogram1s
Definition event-histogram.hpp:82
EventHistogram_< cv::Vec2d > EventHistogram2d
Definition event-histogram.hpp:99
Event images.
Basic event-based vision structures based on OpenCV components.
Basic event-based vision structures based on OpenCV components.