OpenEV
Extending OpenCV to event-based vision
|
This is an auxiliary class. This class cannot be instanced. More...
#include <abstract-representation.hpp>
Public Types | |
using | Type = typename TypeHelper<T>::Type |
Public Member Functions | |
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 > &e) |
Insert one event in the representation. | |
template<std::size_t N> | |
bool | insert (const Array_< E, N > &array) |
Insert an array of events in the representation. | |
bool | insert (const Vector_< E > &vector) |
Insert a vector of events in the representation. | |
bool | insert (Queue_< E > &queue, const bool keep_events_in_queue=false) |
Insert a queue of events in the representation. | |
void | setTimeOffset (const Event_< E > &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. | |
This is an auxiliary class. This class cannot be instanced.
using ev::AbstractRepresentation_< T, Options, E >::Type = typename TypeHelper<T>::Type |
Type
void ev::AbstractRepresentation_< T, Options, E >::clear | ( | ) |
Remove all events from the representation.
void ev::AbstractRepresentation_< T, Options, E >::clear | ( | const cv::Mat & | background | ) |
Remove all events from the representation and add a background image.
|
inlinenodiscard |
Number of events integrated in the representation.
|
inlinenodiscard |
Time difference between the oldest and the newest event integrated in the representation.
bool ev::AbstractRepresentation_< T, Options, E >::insert | ( | const Array_< E, N > & | array | ) |
Insert an array of events in the representation.
array | Event array to insert |
bool ev::AbstractRepresentation_< T, Options, E >::insert | ( | const Event_< E > & | e | ) |
Insert one event in the representation.
e | Event to insert |
bool ev::AbstractRepresentation_< T, Options, E >::insert | ( | const Vector_< E > & | vector | ) |
Insert a vector of events in the representation.
vector | Event vector to insert |
bool ev::AbstractRepresentation_< T, Options, E >::insert | ( | Queue_< E > & | queue, |
const bool | keep_events_in_queue = false ) |
Insert a queue of events in the representation.
queue | Event queue to insert |
keep_events_in_queue | If true, events are reinserted in the queue |
|
inlinenodiscard |
Calculate the midpoint time between the oldest and the newest event.
|
inline |
Set colormap for the representation.
cm | Colormap type |
|
inline |
Set time offset.
e | Event |
|
inline |
Set values for ON and OFF pixels.
polarity | Positive (ON) or negative (OFF) |
value | Value for ON/OFF pixels |
|
inline |
Set value for non-activated pixels (background).
value | Value for non-activated pixels |
|
inline |
Set values for ON, OFF, and non-activated pixels.
positive | Value for ON pixels |
negative | Value for OFF pixels |
reset | Value for non-activated pixels |