1 #ifndef DVS_FILE_READER_H
2 #define DVS_FILE_READER_H
5 #define DVSENSE_API __declspec(dllexport)
11 #include "DvsenseHal/camera/DvsCameraUtils.hpp"
12 #include "DvsenseBase/EventBase/EventTypes.hpp"
13 #include "DvsenseBase/Utils/TypeUtils.hpp"
152 virtual std::shared_ptr<Event2DVector>
getNEvents(uint64_t n) = 0;
257 typedef DVSENSE_API std::unique_ptr<DvsFileReader>
DvsFile;
DVS File Reader class.
Definition: DvsFileReader.h:21
virtual std::shared_ptr< std::vector< Event2D > > getNTimeEvents(TimeStamp interval)=0
Retrieves events within a specific time interval from the current position.
virtual bool exportEventDataToVideo(TimeStamp start, TimeStamp end, std::string out_file_path)=0
virtual bool loadFile()=0
Loads a RAW file for event processing.
virtual std::shared_ptr< Event2DVector > getNEventsGivenStartTimeStamp(TimeStamp start, uint64_t n)=0
Retrieves a specified number of events starting from a given timestamp.
virtual ~DvsFileReader()
Virtual destructor.
Definition: DvsFileReader.h:31
virtual std::shared_ptr< Event2DVector > getNEvents(uint64_t n)=0
Retrieves a specified number of events from the current file position.
virtual TimeStamp getCurrentPosTimeStamp()=0
Gets the timestamp of the current file decode location.
virtual std::shared_ptr< Event2DVector > getNEventsGivenStartEvent(uint64_t event_num, uint64_t n)=0
Retrieves a specific number of events from a specified location.
virtual bool seekTime(TimeStamp t)=0
Seeks to a specific timestamp in the file.
virtual bool getEndTimeStamp(TimeStamp &end_timestamp)=0
Get the Seek end of TimeStamp in the file.
virtual bool getStartTimeStamp(TimeStamp &start_timestamp)=0
Get the Seek start of TimeStamp in the file.
virtual std::shared_ptr< Event2DVector > getNTimeEventsGivenStartTimeStamp(TimeStamp start, TimeStamp interval)=0
Retrieves events within a specific time interval from the current position.
virtual uint64_t getCurrentPosEventNum()=0
Gets the number of events from the start of the file to the current file decoding location.
virtual bool reachedEndOfEvents()=0
Check if the end of the event data has been reached.
static std::unique_ptr< DvsFileReader > createFileReader(std::string filepath)
Create a File Reader object.
virtual bool getMaxEvents(uint64_t &num)=0
Get the maximum number of events available.
virtual uint16_t getWidth() const =0
Get the width of the sensor used to capture the events.
virtual bool seekNEvents(uint64_t n_event)=0
Seeks to the n event in the file.
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.
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.
virtual uint16_t getHeight() const =0
Get the height of the sensor used to capture the events.
DvsFileReader()
Default constructor.
Definition: DvsFileReader.h:26
Definition: TypeUtils.hpp:7
DVSENSE_API std::unique_ptr< DvsFileReader > DvsFile
unique_ptr to manage DVS file reader
Definition: DvsFileReader.h:257
uint64_t TimeStamp
Definition: TypeUtils.hpp:8