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

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

#include <types.hpp>

Inheritance diagram for ev::Event_< T >:
ev::AugmentedEvent_< T >

Public Member Functions

 Event_ ()
 
 Event_ (const Event_< T > &)=default
 
 Event_ (Event_< T > &&) noexcept=default
 
 Event_ (const T x, const T y)
 
 Event_ (const cv::Point_< T > &pt)
 
 Event_ (const T x, const T y, const double t, const bool p)
 
 Event_ (const cv::Point_< T > &pt, const double t, const bool p)
 
Event_< T > & operator= (const Event_< T > &)=default
 
Event_< T > & operator= (const cv::Point_< T > &p)
 
Event_< T > & operator= (Event_< T > &&) noexcept=default
 
bool operator== (const Event_< T > &e) const
 
bool operator== (const cv::Point_< T > &pt) const
 
bool operator== (const cv::Point3_< T > &pt) const
 
bool operator< (const Event_< T > &e) const
 
template<typename U >
 operator cv::Point_< U > () const
 
template<typename U >
 operator cv::Point3_< U > () const
 
double distance (const Event_< T > &e, const uint8_t type=DISTANCE_NORM_L2|DISTANCE_FLAG_SPATIAL) const
 
bool undistort (const UndistortMap &map)
 
std::array< double, 4 > bilinearVoting () const
 Bilinear voting.
 

Public Attributes

double t
 
bool p
 

Friends

std::ostream & operator<< (std::ostream &os, const Event_< T > &e)
 Overload of << operator.
 

Detailed Description

template<typename T>
class ev::Event_< T >

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

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

using Event = Eventi;
This class extends cv::Point_<T> for event data. For more information, please refer here.
Definition types.hpp:60
Examples
example-event-histogram.cpp, example-event-image.cpp, example-event.cpp, example-plain-text-reader.cpp, example-point-cloud.cpp, and example-time-surface.cpp.

Constructor & Destructor Documentation

◆ Event_() [1/7]

template<typename T >
ev::Event_< T >::Event_ ( )
inline

Default constructor.

◆ Event_() [2/7]

template<typename T >
ev::Event_< T >::Event_ ( const Event_< T > & )
default

Copy constructor.

◆ Event_() [3/7]

template<typename T >
ev::Event_< T >::Event_ ( Event_< T > && )
defaultnoexcept

Move constructor.

◆ Event_() [4/7]

template<typename T >
ev::Event_< T >::Event_ ( const T x,
const T y )
inline

Contructor using event coordinates.

Parameters
xSpatial coordinate x
ySpatial coordinate y

◆ Event_() [5/7]

template<typename T >
ev::Event_< T >::Event_ ( const cv::Point_< T > & pt)
inlineexplicit

Contructor using event coordinates as cv::Point.

Parameters
ptSpatial coordinate (x,y) as point

◆ Event_() [6/7]

template<typename T >
ev::Event_< T >::Event_ ( const T x,
const T y,
const double t,
const bool p )
inline

Contructor using timestamp, event coordinates, and polarity.

Parameters
xSpatial coordinate x
ySpatial coordinate y
tTimestamp
pPolarity

◆ Event_() [7/7]

template<typename T >
ev::Event_< T >::Event_ ( const cv::Point_< T > & pt,
const double t,
const bool p )
inline

Contructor using timestamp, event coordinates as cv::Point, and polarity.

Parameters
ptSpatial coordinate (x,y) as point
tTimestamp
pPolarity

Member Function Documentation

◆ bilinearVoting()

template<typename T >
std::array< double, 4 > ev::Event_< T >::bilinearVoting ( ) const
inline

Bilinear voting.

Returns
Vector of weights

◆ distance()

template<typename T >
double ev::Event_< T >::distance ( const Event_< T > & e,
const uint8_t type = DISTANCE_NORM_L2 | DISTANCE_FLAG_SPATIAL ) const
inlinenodiscard

Compute distance between events.

Parameters
eOther event
typeDistance type
Returns
Distance
See also
Distance
Examples
example-event.cpp.

◆ operator cv::Point3_< U >()

template<typename T >
template<typename U >
ev::Event_< T >::operator cv::Point3_< U > ( ) const
inlinenodiscard

cv::Point3 cast operator

◆ operator cv::Point_< U >()

template<typename T >
template<typename U >
ev::Event_< T >::operator cv::Point_< U > ( ) const
inlinenodiscard

cv::Point cast operator

◆ operator<()

template<typename T >
bool ev::Event_< T >::operator< ( const Event_< T > & e) const
inlinenodiscard

Comparison operator

◆ operator=() [1/3]

template<typename T >
Event_< T > & ev::Event_< T >::operator= ( const cv::Point_< T > & p)
inline

Copy assignment operator

◆ operator=() [2/3]

template<typename T >
Event_< T > & ev::Event_< T >::operator= ( const Event_< T > & )
default

Copy assignment operator

◆ operator=() [3/3]

template<typename T >
Event_< T > & ev::Event_< T >::operator= ( Event_< T > && )
defaultnoexcept

Move assignment operator

◆ operator==() [1/3]

template<typename T >
bool ev::Event_< T >::operator== ( const cv::Point3_< T > & pt) const
inlinenodiscard

cv::Point3 equality operator

◆ operator==() [2/3]

template<typename T >
bool ev::Event_< T >::operator== ( const cv::Point_< T > & pt) const
inlinenodiscard

cv::Point equality operator

◆ operator==() [3/3]

template<typename T >
bool ev::Event_< T >::operator== ( const Event_< T > & e) const
inlinenodiscard

Equality operator

◆ undistort()

template<typename T >
bool ev::Event_< T >::undistort ( const UndistortMap & map)
inline

Undistort event using undistortion map

Parameters
mapUndistortion map
Returns
True if the new coordinates lie on the frame
See also
UndistortMap

Friends And Related Symbol Documentation

◆ operator<<

template<typename T >
std::ostream & operator<< ( std::ostream & os,
const Event_< T > & e )
friend

Overload of << operator.

Parameters
osOutput stream
eEvent to print
Returns
Output stream

Member Data Documentation

◆ p

template<typename T >
bool ev::Event_< T >::p

Event polarity

◆ t

template<typename T >
double ev::Event_< T >::t

Event timestamp


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