OpenEV
Extending OpenCV to event-based vision
 
Loading...
Searching...
No Matches
ev::EventHistogram_< T, Options, E > Class Template Reference

This class extends ev::EventImage_<T> for event 2D histograms. More...

#include <event-histogram.hpp>

Inheritance diagram for ev::EventHistogram_< T, Options, E >:
ev::EventImage_< T, RepresentationOptions::NONE, int > ev::AbstractRepresentation_< T, Options, int >

Public Member Functions

template<typename... Args>
 EventHistogram_ (Args &&...args)
 
cv::Mat & render ()
 Render event histogram matrix.
 
- Public Member Functions inherited from ev::EventImage_< T, RepresentationOptions::NONE, int >
 EventImage_ (Args &&...args)
 
cv::Mat & render ()
 
- Public Member Functions inherited from ev::AbstractRepresentation_< T, Options, int >
std::size_t count () const
 Number of events integrated in the representation.
 
double duration () const
 Time difference between the oldest and the newest event integrated in the representation.
 
double midTime () const
 Calculate the midpoint time between the oldest and the newest event.
 
void clear ()
 Remove all events from the representation.
 
void clear (const cv::Mat &background)
 Remove all events from the representation and add a background image.
 
bool insert (const Event_< int > &e)
 Insert one event in the representation.
 
bool insert (const Array_< int, N > &array)
 Insert an array of events in the representation.
 
bool insert (const Vector_< int > &vector)
 Insert a vector of events in the representation.
 
bool insert (Queue_< int > &queue, const bool keep_events_in_queue=false)
 Insert a queue of events in the representation.
 
void setTimeOffset (const Event_< int > &e)
 Set time offset.
 
void setValue (const bool polarity, const Type &value)
 Set values for ON and OFF pixels.
 
void setValue (const Type &value)
 Set value for non-activated pixels (background).
 
void setValues (const Type &positive, const Type &negative, const Type &reset)
 Set values for ON, OFF, and non-activated pixels.
 
void setColormap (const cv::ColormapTypes cm)
 Set colormap for the representation.
 

Public Attributes

CounterMat counter {cv::Mat_<int>(EventImage_<T, Options, E>::size())}
 

Additional Inherited Members

- Public Types inherited from ev::AbstractRepresentation_< T, Options, int >
using Type
 

Detailed Description

template<typename T, const RepresentationOptions Options = RepresentationOptions::NONE, typename E = int>
class ev::EventHistogram_< T, Options, E >

This class extends ev::EventImage_<T> for event 2D histograms.

Analogously to OpenCV library, the following aliases are defined for convenience:

using EventHistogram1b = EventHistogram_<uchar>;
using EventHistogram2b = EventHistogram_<cv::Vec2b>;
using EventHistogram3b = EventHistogram_<cv::Vec3b>;
using EventHistogram4b = EventHistogram_<cv::Vec4b>;
using EventHistogram1s = EventHistogram_<short>;
using EventHistogram2s = EventHistogram_<cv::Vec2s>;
using EventHistogram3s = EventHistogram_<cv::Vec3s>;
using EventHistogram4s = EventHistogram_<cv::Vec4s>;
using EventHistogram1w = EventHistogram_<ushort>;
using EventHistogram2w = EventHistogram_<cv::Vec2w>;
using EventHistogram3w = EventHistogram_<cv::Vec3w>;
using EventHistogram4w = EventHistogram_<cv::Vec4w>;
using EventHistogram1i = EventHistogram_<int>;
using EventHistogram2i = EventHistogram_<cv::Vec2i>;
using EventHistogram3i = EventHistogram_<cv::Vec3i>;
using EventHistogram4i = EventHistogram_<cv::Vec4i>;
using EventHistogram1f = EventHistogram_<float>;
using EventHistogram2f = EventHistogram_<cv::Vec2f>;
using EventHistogram3f = EventHistogram_<cv::Vec3f>;
using EventHistogram4f = EventHistogram_<cv::Vec4f>;
using EventHistogram1d = EventHistogram_<double>;
using EventHistogram2d = EventHistogram_<cv::Vec2d>;
using EventHistogram3d = EventHistogram_<cv::Vec3d>;
using EventHistogram4d = EventHistogram_<cv::Vec4d>;
EventHistogram1 EventHistogram
Definition event-histogram.hpp:101
EventHistogram_< cv::Vec2f > EventHistogram2f
Definition event-histogram.hpp:92
EventHistogram_< cv::Vec4w > EventHistogram4w
Definition event-histogram.hpp:86
EventHistogram_< uchar > EventHistogram1b
Definition event-histogram.hpp:75
EventHistogram_< cv::Vec4i > EventHistogram4i
Definition event-histogram.hpp:90
EventHistogram1b EventHistogram1
Definition event-histogram.hpp:99
EventHistogram_< cv::Vec3f > EventHistogram3f
Definition event-histogram.hpp:93
EventHistogram_< cv::Vec3b > EventHistogram3b
Definition event-histogram.hpp:77
EventHistogram_< cv::Vec3d > EventHistogram3d
Definition event-histogram.hpp:97
EventHistogram_< cv::Vec2b > EventHistogram2b
Definition event-histogram.hpp:76
EventHistogram_< float > EventHistogram1f
Definition event-histogram.hpp:91
EventHistogram_< ushort > EventHistogram1w
Definition event-histogram.hpp:83
EventHistogram_< cv::Vec4s > EventHistogram4s
Definition event-histogram.hpp:82
EventHistogram_< cv::Vec2s > EventHistogram2s
Definition event-histogram.hpp:80
EventHistogram_< cv::Vec3i > EventHistogram3i
Definition event-histogram.hpp:89
EventHistogram_< cv::Vec4d > EventHistogram4d
Definition event-histogram.hpp:98
EventHistogram3b EventHistogram3
Definition event-histogram.hpp:100
EventHistogram_< cv::Vec3w > EventHistogram3w
Definition event-histogram.hpp:85
EventHistogram_< cv::Vec2w > EventHistogram2w
Definition event-histogram.hpp:84
EventHistogram_< cv::Vec2i > EventHistogram2i
Definition event-histogram.hpp:88
EventHistogram_< double > EventHistogram1d
Definition event-histogram.hpp:95
EventHistogram_< cv::Vec4b > EventHistogram4b
Definition event-histogram.hpp:78
EventHistogram_< cv::Vec3s > EventHistogram3s
Definition event-histogram.hpp:81
EventHistogram_< cv::Vec4f > EventHistogram4f
Definition event-histogram.hpp:94
EventHistogram_< int > EventHistogram1i
Definition event-histogram.hpp:87
EventHistogram_< short > EventHistogram1s
Definition event-histogram.hpp:79
EventHistogram_< cv::Vec2d > EventHistogram2d
Definition event-histogram.hpp:96

Member Function Documentation

◆ render()

template<typename T, const RepresentationOptions Options = RepresentationOptions::NONE, typename E = int>
cv::Mat & ev::EventHistogram_< T, Options, E >::render ( )

Render event histogram matrix.

Event histogram matrix is generated from counter matrix.

Member Data Documentation

◆ counter

template<typename T, const RepresentationOptions Options = RepresentationOptions::NONE, typename E = int>
CounterMat ev::EventHistogram_< T, Options, E >::counter {cv::Mat_<int>(EventImage_<T, Options, E>::size())}

Event counter


The documentation for this class was generated from the following file: