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

This class extends AbstractReader_ to read dataset in plain text format. More...

#include <plain-text-reader.hpp>

Inheritance diagram for ev::PlainTextReader:
ev::AbstractReader_

Public Member Functions

 PlainTextReader (const std::string &filename, const PlainTextReaderColumns columns=PlainTextReaderColumns::TXYP, const std::string &separator=" ")
 
- Public Member Functions inherited from ev::AbstractReader_
bool next (Event &e)
 Get next event from the dataset.
 
template<std::size_t N>
bool next (Array< N > &array)
 Get next events from the dataset.
 
bool next_n (Vector &vector, const int n)
 Get next n events from the dataset.
 
bool next_n (Queue &queue, const int n, const bool keep_size=false)
 Get next n events from the dataset.
 
bool next_t (Vector &vector, const double t)
 Get the next events until the specified duration is reached.
 
bool next_t (Queue &queue, const double t, const bool keep_size=false)
 Get the next events until the specified duration is reached and store them in a queue.
 
bool skip_n (int n)
 Skip the next n events in the dataset.
 
bool skip_t (const double t)
 Skip events for the specified duration.
 
void reset ()
 Start reading from the first event in the dataset.
 
std::size_t count ()
 

Additional Inherited Members

- Protected Member Functions inherited from ev::AbstractReader_

Detailed Description

This class extends AbstractReader_ to read dataset in plain text format.

Examples
example-plain-text-reader.cpp.

Constructor & Destructor Documentation

◆ PlainTextReader()

ev::PlainTextReader::PlainTextReader ( const std::string & filename,
const PlainTextReaderColumns columns = PlainTextReaderColumns::TXYP,
const std::string & separator = " " )
explicit

Contructor using filename.

Parameters
filenameFilename of the dataset TODO

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