This is an auxiliary class. This class cannot be instanced.
More...
#include <abstract-camera.hpp>
|
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.
|
|
This is an auxiliary class. This class cannot be instanced.
◆ flush()
void ev::AbstractCamera::flush |
( |
const double | msec | ) |
const |
Discard data during an interval of time.
- Parameters
-
msec | Time 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_bias | The configuration identifier for the bias. |
name | The 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
-
events | Event 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
-
events | Event 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 |
◆ getSensorSize()
cv::Size ev::AbstractCamera::getSensorSize |
( |
| ) |
const |
|
nodiscard |
◆ 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_bias | The configuration identifier for the bias. |
name | The identifier for the bias value to set. |
value | The 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
-
- 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
-
The documentation for this class was generated from the following files: