![]() |
DvsenseDriver
1.0.3
The SDK for dvsense products.
|
DVS File Reader class. More...
#include <DvsFileReader.h>
Public Member Functions | |
DvsFileReader () | |
Default constructor. More... | |
virtual | ~DvsFileReader () |
Virtual destructor. More... | |
virtual bool | loadFile ()=0 |
Loads a RAW file for event processing. More... | |
virtual bool | getStartTimeStamp (TimeStamp &start_timestamp)=0 |
Get the Seek start of TimeStamp in the file. More... | |
virtual bool | getEndTimeStamp (TimeStamp &end_timestamp)=0 |
Get the Seek end of TimeStamp in the file. More... | |
virtual bool | getMaxEvents (uint64_t &num)=0 |
Get the maximum number of events available. More... | |
virtual bool | reachedEndOfEvents ()=0 |
Check if the end of the event data has been reached. More... | |
virtual bool | seekTime (TimeStamp t)=0 |
Seeks to a specific timestamp in the file. More... | |
virtual bool | seekNEvents (uint64_t n_event)=0 |
Seeks to the n event in the file. More... | |
virtual TimeStamp | getCurrentPosTimeStamp ()=0 |
Gets the timestamp of the current file decode location. More... | |
virtual uint64_t | getCurrentPosEventNum ()=0 |
Gets the number of events from the start of the file to the current file decoding location. More... | |
virtual std::shared_ptr< Event2DVector > | getNEvents (uint64_t n)=0 |
Retrieves a specified number of events from the current file position. More... | |
virtual std::shared_ptr< Event2DVector > | getNEventsGivenStartTimeStamp (TimeStamp start, uint64_t n)=0 |
Retrieves a specified number of events starting from a given timestamp. More... | |
virtual std::shared_ptr< Event2DVector > | getNEventsGivenStartEvent (uint64_t event_num, uint64_t n)=0 |
Retrieves a specific number of events from a specified location. More... | |
virtual std::shared_ptr< std::vector< Event2D > > | getNTimeEvents (TimeStamp interval)=0 |
Retrieves events within a specific time interval from the current position. More... | |
virtual std::shared_ptr< Event2DVector > | getNTimeEventsGivenStartTimeStamp (TimeStamp start, TimeStamp interval)=0 |
Retrieves events within a specific time interval from the current position. More... | |
virtual std::shared_ptr< std::vector< Event2D > > | getNTimeEventsGivenStartEvent (uint64_t event_num, TimeStamp interval)=0 |
Retrieves events within a specified time interval starting with event num. More... | |
virtual bool | extractEventData (TimeStamp start, TimeStamp end, std::string out_file_path)=0 |
Extracts event data within a specified time range and saves the results to a specified output file. More... | |
virtual bool | exportEventDataToVideo (TimeStamp start, TimeStamp end, std::string out_file_path)=0 |
virtual uint16_t | getWidth () const =0 |
Get the width of the sensor used to capture the events. More... | |
virtual uint16_t | getHeight () const =0 |
Get the height of the sensor used to capture the events. More... | |
Static Public Member Functions | |
static std::unique_ptr< DvsFileReader > | createFileReader (std::string filepath) |
Create a File Reader object. More... | |
DVS File Reader class.
|
inline |
Default constructor.
|
inlinevirtual |
Virtual destructor.
|
static |
Create a File Reader object.
filepath | Path to the file |
|
pure virtual |
Loads a RAW file for event processing.
filepath | The full path of the RAW file to be loaded. |
|
pure virtual |
Get the Seek start of TimeStamp in the file.
start_timestamp | Reference to the start timestamp. |
|
pure virtual |
Get the Seek end of TimeStamp in the file.
end_timestamp | Reference to the end timestamp. |
|
pure virtual |
Get the maximum number of events available.
num | Reference to store the maximum number of events. |
|
pure virtual |
Check if the end of the event data has been reached.
|
pure virtual |
Seeks to a specific timestamp in the file.
This function moves the current position in the file to the event at the specified timestamp. If the provided timestamp is out of bounds, the current position will be set to the start or end of the file accordingly.
t | The target timestamp to seek to. |
|
pure virtual |
Seeks to the n event in the file.
t | The target event num to seek to. |
|
pure virtual |
Gets the timestamp of the current file decode location.
|
pure virtual |
Gets the number of events from the start of the file to the current file decoding location.
|
pure virtual |
Retrieves a specified number of events from the current file position.
n | The number of events to retrieve. |
|
pure virtual |
Retrieves a specified number of events starting from a given timestamp.
start | The timestamp to start reading from. |
n | The number of events to retrieve. |
|
pure virtual |
Retrieves a specific number of events from a specified location.
event_num | The event number to start reading from. |
n | The number of events which to retrieve. |
|
pure virtual |
Retrieves events within a specific time interval from the current position.
interval | The time interval during which to retrieve events. |
|
pure virtual |
Retrieves events within a specific time interval from the current position.
start | The timestamp to start reading from. |
interval | The time interval during which to retrieve events. |
|
pure virtual |
Retrieves events within a specified time interval starting with event num.
event_num | The event num to start reading from. |
interval | The time interval during which to retrieve events. |
|
pure virtual |
Extracts event data within a specified time range and saves the results to a specified output file.
start | The start timestamp. |
end | The end timestamp |
|
pure virtual |
|
pure virtual |
Get the width of the sensor used to capture the events.
|
pure virtual |
Get the height of the sensor used to capture the events.