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

This class extends cv::Mat_<T> for event images. For more information, please refer here. More...

#include <event-image.hpp>

Inheritance diagram for ev::EventImage_< T, Options, E >:
ev::AbstractRepresentation_< T, RepresentationOptions::NONE, int > ev::Stats_< AbstractRepresentation_< T, Options, int > > ev::EventHistogram_< uchar > ev::EventHistogram_< cv::Vec3b > ev::EventHistogram_< short > ev::EventHistogram_< cv::Vec3s > ev::EventHistogram_< ushort > ev::EventHistogram_< cv::Vec3w > ev::EventHistogram_< int > ev::EventHistogram_< cv::Vec3i > ev::EventHistogram_< float > ev::EventHistogram_< cv::Vec3f > ev::EventHistogram_< double > ev::EventHistogram_< cv::Vec3d > ev::SpaceTime_< uchar > ev::SpaceTime_< cv::Vec3b > ev::SpaceTime_< short > ev::SpaceTime_< cv::Vec3s > ev::SpaceTime_< ushort > ev::SpaceTime_< cv::Vec3w > ev::SpaceTime_< int > ev::SpaceTime_< cv::Vec3i > ev::SpaceTime_< float > ev::SpaceTime_< cv::Vec3f > ev::SpaceTime_< double > ev::SpaceTime_< cv::Vec3d > ev::TimeSurface_< uchar > ev::TimeSurface_< cv::Vec3b > ev::TimeSurface_< short > ev::TimeSurface_< cv::Vec3s > ev::TimeSurface_< ushort > ev::TimeSurface_< cv::Vec3w > ev::TimeSurface_< int > ev::TimeSurface_< cv::Vec3i > ev::TimeSurface_< float > ev::TimeSurface_< cv::Vec3f > ev::TimeSurface_< double > ev::TimeSurface_< cv::Vec3d >

Public Member Functions

template<typename... Args>
 EventImage_ (Args &&...args)
cv::Mat & render ()
Public Member Functions inherited from ev::AbstractRepresentation_< T, RepresentationOptions::NONE, int >
std::size_t count () const
 Number of events integrated in the representation.
TimeType firstTimestamp () const
 Timestamp of the oldest event integrated in the representation.
TimeType lastTimestamp () const
 Timestamp of the newest event integrated in the representation.
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 Member Functions inherited from ev::Stats_< AbstractRepresentation_< T, Options, int > >
ResultType duration () const
 Time difference between the last and the first event.
ResultType rate () const
 Compute event rate as the ratio between the number of events and the time difference between the last and the first event.
ResultType density (const cv::Size size) const
 Compute event density as the ratio between the number of events and the number of pixels.
std::size_t activePixels () const
 Count the pixels with at least one event.
ResultType fillRatio (const cv::Size size) const
 Compute fill ratio as the fraction of pixels with at least one event.
ResultType polarityRatio (const PolarityType p) const
 Compute polarity ratio as the fraction of events with the given polarity.
Event_< ResultType > mean () const
 Compute the mean of the events.
cv::Point_< ResultType > meanPoint () const
 Compute the mean x,y point of the events.
cv::Matx< ResultType, 2, 2 > covariance () const
 Compute the covariance of the x,y coordinates of the events around meanPoint().
cv::Rect boundingBox () const
 Compute the smallest rectangle of pixels containing the events.
ResultType meanTime () const
 Compute the mean time of the events.
ResultType midTime () const
 Calculate the midpoint time between the oldest and the newest event.
std::size_t peak () const
 Find the largest number of events on a single pixel.
ResultType entropy () const
 Compute the Shannon entropy of the spatial distribution of the events.

Additional Inherited Members

Public Types inherited from ev::AbstractRepresentation_< T, RepresentationOptions::NONE, int >
using Type
Public Types inherited from ev::Stats_< AbstractRepresentation_< T, Options, int > >
using ResultType

Detailed Description

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

This class extends cv::Mat_<T> for event images. For more information, please refer here.

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

using EventImage1b = EventImage_<uchar>;
using EventImage3b = EventImage_<cv::Vec3b>;
using EventImage1s = EventImage_<short>;
using EventImage3s = EventImage_<cv::Vec3s>;
using EventImage1w = EventImage_<ushort>;
using EventImage3w = EventImage_<cv::Vec3w>;
using EventImage1i = EventImage_<int>;
using EventImage3i = EventImage_<cv::Vec3i>;
using EventImage1f = EventImage_<float>;
using EventImage3f = EventImage_<cv::Vec3f>;
using EventImage1d = EventImage_<double>;
using EventImage3d = EventImage_<cv::Vec3d>;
EventImage3b EventImage3
Definition event-image.hpp:79
EventImage_< double > EventImage1d
Definition event-image.hpp:76
EventImage_< int > EventImage1i
Definition event-image.hpp:72
EventImage_< ushort > EventImage1w
Definition event-image.hpp:70
EventImage1 EventImage
Definition event-image.hpp:80
EventImage_< cv::Vec3f > EventImage3f
Definition event-image.hpp:75
EventImage_< cv::Vec3s > EventImage3s
Definition event-image.hpp:69
EventImage_< float > EventImage1f
Definition event-image.hpp:74
EventImage_< cv::Vec3i > EventImage3i
Definition event-image.hpp:73
EventImage_< uchar > EventImage1b
Definition event-image.hpp:66
EventImage_< cv::Vec3w > EventImage3w
Definition event-image.hpp:71
EventImage_< cv::Vec3b > EventImage3b
Definition event-image.hpp:67
EventImage_< cv::Vec3d > EventImage3d
Definition event-image.hpp:77
EventImage1b EventImage1
Definition event-image.hpp:78
EventImage_< short > EventImage1s
Definition event-image.hpp:68

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