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_ RecordedReader

Public Member Functions

 PlainTextReader (const std::string &filename, const PlainTextReaderColumns columns=PlainTextReaderColumns::TXYP, const std::string &separator=" ")
Public Member Functions inherited from ev::AbstractReader_
ConcurrentQueue & events (const std::size_t n=0)
 Read a given number of events, add them to the queue, and return it.
void prefetch (const std::size_t n)
 Keep the queue at a given number of events from a background thread.
std::size_t prefetchCapacity () const
 Number of events prefetch() keeps in the queue.
void reset ()
 Go back to the beginning, discarding the events in the queue.
void setTimeTransform (const TimeType offset, const TimeType scale=1)
 Transform the timestamp of every event read from now on as (t - offset) * scale.
void setRoi (const cv::Rect &roi)
 Deliver only the events inside a region of interest. The events keep their coordinates.
cv::Rect getRoi () const
 Get the region of interest.

Protected Member Functions

std::size_t read_ (Event *events, const std::size_t max) override
void reset_ () override

Detailed Description

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

Examples
example-plain-text-reader.cpp.

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