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

This class extends AbstractReader_ to read event data from HDF5 files. More...

#include <hdf5-reader.hpp>

Inheritance diagram for ev::HDF5Reader:
ev::AbstractReader_

Public Member Functions

 HDF5Reader (const std::string &filename, const std::string &t_path="/events/t", const std::string &x_path="/events/x", const std::string &y_path="/events/y", const std::string &p_path="/events/p")
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.

Detailed Description

This class extends AbstractReader_ to read event data from HDF5 files.

// Default paths match the common /events/{t,x,y,p} layout:
ev::HDF5Reader reader("recording.h5");
// Custom paths:
ev::HDF5Reader reader("recording.h5",
"/davis/left/events/timestamp",
"/davis/left/events/x",
"/davis/left/events/y",
"/davis/left/events/polarity");
This class extends AbstractReader_ to read event data from HDF5 files.
Definition hdf5-reader.hpp:33

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