OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
ev::Mat::Binary_< Tb > Class Template Reference

Spatial map marking whether any event has occurred at each pixel. More...

#include <matrices.hpp>

Inheritance diagram for ev::Mat::Binary_< Tb >:
ev::Mat::Mat_< Tb >

Public Member Functions

template<typename T>
Tb insert (const Event_< T > &e)
 Insert an event, setting the pixel at (e.x, e.y) to ON.
template<typename T>
Tb emplace (const T x, const T y)
 Set the pixel at (x, y) to ON without constructing an Event_.
Public Member Functions inherited from ev::Mat::Mat_< Tb >
void updateStats (const Event &e)
CounterType count () const
TimeType duration () const
void resetStats ()
 Reset statistics (count, first timestamp, last timestamp).
void clear ()
 Reset all pixels.

Static Public Attributes

static constexpr Tb ON = std::numeric_limits<Tb>::max()
static constexpr Tb OFF = static_cast<Tb>(0)

Friends

std::ostream & operator<< (std::ostream &os, const Binary_ &binary)

Detailed Description

template<typename Tb>
class ev::Mat::Binary_< Tb >

Spatial map marking whether any event has occurred at each pixel.

Each pixel is set to ON upon insertion regardless of polarity, and reset to OFF by clear().

The following alias is defined for convenience:

using Binary = Binary_<uchar>;
Spatial map marking whether any event has occurred at each pixel.
Definition matrices.hpp:91

Member Function Documentation

◆ emplace()

template<typename Tb>
template<typename T>
Tb ev::Mat::Binary_< Tb >::emplace ( const T x,
const T y )
inline

Set the pixel at (x, y) to ON without constructing an Event_.

Parameters
xSpatial coordinate x
ySpatial coordinate y
Returns
New pixel value (ON)

◆ insert()

template<typename Tb>
template<typename T>
Tb ev::Mat::Binary_< Tb >::insert ( const Event_< T > & e)
inline

Insert an event, setting the pixel at (e.x, e.y) to ON.

Parameters
eEvent to insert
Returns
New pixel value (ON)

Member Data Documentation

◆ OFF

template<typename Tb>
Tb ev::Mat::Binary_< Tb >::OFF = static_cast<Tb>(0)
staticconstexpr

Value after clear()

◆ ON

template<typename Tb>
Tb ev::Mat::Binary_< Tb >::ON = std::numeric_limits<Tb>::max()
staticconstexpr

Value written on event insertion


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