Function cpphots::loadFromFile

Function Documentation

Events cpphots::loadFromFile(const std::string &filename, const std::unordered_map<bool, uint16_t> &change_polarities = {{false, 0}, {true, 1}})

Load events from a file.

File is espected to be EventStream, as it will be parsed with Sepia.

Parameters
  • filename – path to the file

  • change_polarities – a {bool: uint16_t} dictionary that specifies how to handle the conversion between boolean and uint polarities (can be used to merge polarities)

Returns

the collection of events