OpenEV
Extending OpenCV to event-based vision
Loading...
Searching...
No Matches
ev::AbstractCamera_ Class Referenceabstract

This is an auxiliary class. This class cannot be instanced. More...

#include <abstract-camera.hpp>

Inheritance diagram for ev::AbstractCamera_:
ev::Davis

Public Member Functions

void setTimeOffset (const double offset)
 Set offset to add after receiving events.
 
virtual void start ()=0
 Start reading data.
 
void stop ()
 Stop reading data.
 
cv::Size getSensorSize () const
 Get device sensor size.
 
cv::Rect getRoi () const
 Get current ROI.
 
bool setRoi (const cv::Rect &roi)
 Set current ROI. Events outside the ROI are not considered. Images are cropped according to the ROI.
 
BiasValue getBias (const int8_t config_bias, const uint8_t name) const
 Retrieve the bias value associated with a specific configuration and name.
 
bool setBias (const int8_t config_bias, const uint8_t name, const BiasValue &value)
 Set the bias value associated with a specific configuration and name.
 
void flush (double msec) const
 Discard data during an interval of time.
 
virtual bool getData (Vector &events)=0
 Get data.
 
virtual bool getData (Queue &events)=0
 Get data.
 

Detailed Description

This is an auxiliary class. This class cannot be instanced.

Member Function Documentation

◆ flush()

void ev::AbstractCamera_::flush ( double msec) const

Discard data during an interval of time.

Parameters
msecTime interval in milliseconds

◆ getBias()

ev::BiasValue ev::AbstractCamera_::getBias ( const int8_t config_bias,
const uint8_t name ) const

Retrieve the bias value associated with a specific configuration and name.

Parameters
config_biasThe configuration identifier for the bias.
nameThe identifier for the bias value to retrieve.
Returns
The bias value corresponding to the given configuration and name.

◆ getData() [1/2]

virtual bool ev::AbstractCamera_::getData ( Queue & events)
pure virtual

Get data.

Parameters
eventsEvent queue to which events will be added.
Returns
True if queue not empty

Implemented in ev::Davis.

◆ getData() [2/2]

virtual bool ev::AbstractCamera_::getData ( Vector & events)
pure virtual

Get data.

Parameters
eventsEvent vector to which events will be added
Returns
True if vector not empty

Implemented in ev::Davis.

◆ getRoi()

cv::Rect ev::AbstractCamera_::getRoi ( ) const
nodiscard

Get current ROI.

Returns
ROI
Examples
example-davis.cpp.

◆ getSensorSize()

cv::Size ev::AbstractCamera_::getSensorSize ( ) const
nodiscard

Get device sensor size.

Returns
Sensor size
Examples
example-davis.cpp.

◆ setBias()

bool ev::AbstractCamera_::setBias ( const int8_t config_bias,
const uint8_t name,
const BiasValue & value )

Set the bias value associated with a specific configuration and name.

Parameters
config_biasThe configuration identifier for the bias.
nameThe identifier for the bias value to set.
valueThe new bias value to set.
Returns
True if the bias value was successfully set.

◆ setRoi()

bool ev::AbstractCamera_::setRoi ( const cv::Rect & roi)

Set current ROI. Events outside the ROI are not considered. Images are cropped according to the ROI.

Parameters
roiROI
Returns
True if valid ROI
Examples
example-davis.cpp.

◆ setTimeOffset()

void ev::AbstractCamera_::setTimeOffset ( const double offset)
inline

Set offset to add after receiving events.

Parameters
offsetTime offset

◆ start()

virtual void ev::AbstractCamera_::start ( )
pure virtual

Start reading data.

Implemented in ev::Davis.


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