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.
 
void start ()
 Start reading data.
 
void stop ()
 Stop reading data.
 
cv::Size getSensorSize () const
 Get device sensor size.
 
cv::Rect_< uint16_t > getRoi () const
 Get current ROI.
 
bool setRoi (const cv::Rect_< uint16_t > &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 (const 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.
 

Protected Member Functions

virtual void init ()=0
 

Detailed Description

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

Member Function Documentation

◆ flush()

void ev::AbstractCamera::flush ( const 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_< uint16_t > 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_< uint16_t > & 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

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