OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
ev::EventHistogram_< T, Options > 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 >:
ev::EventImage_< T, RepresentationOptions::NONE > ev::AbstractRepresentation_< T, Options >

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 >
 EventImage_ (Args &&...args)
 
cv::Mat & render ()
 
- Public Member Functions inherited from ev::AbstractRepresentation_< T, Options >
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 &e)
 Insert one event in the representation.
 
bool insert (const Array< N > &array)
 Insert an array of events in the representation.
 
bool insert (const Vector &vector)
 Insert a vector of events in the representation.
 
bool insert (Queue &queue, const bool keep_events_in_queue=false)
 Insert a queue of events in the representation.
 
void setTimeOffset (const Event &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.
 
Type getValue (const bool polarity) const
 Get current values for ON and OFF pixels.
 
Type getValue () const
 Get current values for non-activated pixels (background).
 

Public Attributes

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

Additional Inherited Members

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

Detailed Description

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

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

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

Examples
example-davis.cpp, and example-event-histogram.cpp.

Member Function Documentation

◆ render()

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

Render event histogram matrix.

Event histogram matrix is generated from counter matrix.

Examples
example-davis.cpp, and example-event-histogram.cpp.

Member Data Documentation

◆ counter

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

Event counter


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