OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
ev::TimeSurface_< T, Options, E > Class Template Reference
Inheritance diagram for ev::TimeSurface_< T, Options, E >:
ev::EventImage_< T, RepresentationOptions::NONE, int > ev::AbstractRepresentation_< T, Options, int >

Public Member Functions

template<typename... Args>
 TimeSurface_ (Args &&...args)
cv::Mat & render (const Kernel kernel=Kernel::NONE, const double tau=0)
 Render timesurface 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.
bool insert (const Event_< int > &e)
 Insert one event 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 setValues (const Type &positive, const Type &negative, const Type &reset)
 Set values for ON, OFF, and non-activated pixels.
void setColor (const bool polarity, const cv::viz::Color &color)
 Set colors for ON and OFF pixels. For more information, please refer here.
void setColors (const cv::viz::Color &positive, const cv::viz::Color &negative, const cv::viz::Color &reset)
 Set colors for ON, OFF, and non-activated pixels. For more information, please refer here.
void setColormap (const cv::ColormapTypes cm)
 Set colormap for the representation.

Public Attributes

Mat::Time time {this->size()}
Mat::Polarity polarity {this->size()}

Additional Inherited Members

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

Member Function Documentation

◆ render()

template<typename T, const RepresentationOptions Options = RepresentationOptions::NONE, typename E = int>
cv::Mat & ev::TimeSurface_< T, Options, E >::render ( const Kernel kernel = Kernel::NONE,
const double tau = 0 )

Render timesurface matrix.

Timesurface matrix is generated from timestamp and polarity matrices.

Parameters
kernelKernel type
tauTime constant
See also
TimeSurface_::Kernel

Member Data Documentation

◆ polarity

template<typename T, const RepresentationOptions Options = RepresentationOptions::NONE, typename E = int>
Mat::Polarity ev::TimeSurface_< T, Options, E >::polarity {this->size()}

Polarity matrix

◆ time

template<typename T, const RepresentationOptions Options = RepresentationOptions::NONE, typename E = int>
Mat::Time ev::TimeSurface_< T, Options, E >::time {this->size()}

Time matrix


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