6#ifndef OPENEV_REPRESENTATIONS_EVENT_HISTOGRAM_HPP
7#define OPENEV_REPRESENTATIONS_EVENT_HISTOGRAM_HPP
12#include <opencv2/core/hal/interface.h>
13#include <opencv2/core/mat.hpp>
14#include <opencv2/core/matx.hpp>
45template <
typename T, const RepresentationOptions Options = RepresentationOptions::NONE,
typename E =
int>
46class EventHistogram_ :
public EventImage_<T, Options, E> {
48 template <
typename... Args>
49 explicit EventHistogram_(Args &&...args) : EventImage_<T, Options, E>(std::forward<Args>(args)...) {
67 outlierRejectionFactor_ = k;
71 double outlierRejectionFactor_{0};
72 void clear_()
override;
73 void clear_(
const cv::Mat &background)
override;
74 bool insert_(
const Event_<E> &e)
override;
95#include "openev/representations/event-histogram.tpp"
Event abstract representation.
This class extends ev::EventImage_<T> for event 2D histograms.
Definition event-histogram.hpp:46
cv::Mat & render()
Render event histogram matrix.
Mat::Counter counter
Definition event-histogram.hpp:53
void setOutlierRejection(const double k)
Saturate the pixels whose count is abnormally high when rendering.
Definition event-histogram.hpp:66
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition types.hpp:78
Spatial map accumulating signed event counts per pixel.
Definition matrices.hpp:322
EventHistogram1 EventHistogram
Definition event-histogram.hpp:91
EventHistogram_< uchar > EventHistogram1b
Definition event-histogram.hpp:77
EventHistogram1b EventHistogram1
Definition event-histogram.hpp:89
EventHistogram_< cv::Vec3f > EventHistogram3f
Definition event-histogram.hpp:86
EventHistogram_< cv::Vec3b > EventHistogram3b
Definition event-histogram.hpp:78
EventHistogram_< cv::Vec3d > EventHistogram3d
Definition event-histogram.hpp:88
EventHistogram_< float > EventHistogram1f
Definition event-histogram.hpp:85
EventHistogram_< ushort > EventHistogram1w
Definition event-histogram.hpp:81
EventHistogram_< cv::Vec3i > EventHistogram3i
Definition event-histogram.hpp:84
EventHistogram3b EventHistogram3
Definition event-histogram.hpp:90
EventHistogram_< cv::Vec3w > EventHistogram3w
Definition event-histogram.hpp:82
EventHistogram_< double > EventHistogram1d
Definition event-histogram.hpp:87
EventHistogram_< cv::Vec3s > EventHistogram3s
Definition event-histogram.hpp:80
EventHistogram_< int > EventHistogram1i
Definition event-histogram.hpp:83
EventHistogram_< short > EventHistogram1s
Definition event-histogram.hpp:79
Event-based matrix representations for accumulating events into spatial maps.