Template Function cpphots::generateTS(TSC&, const std::vector<Events>&, bool, bool)
Defined in File run.h
Function Documentation
-
template<typename TSC>
std::vector<std::vector<TimeSurfaceType>> cpphots::generateTS(TSC &calculator, const std::vector<Events> &events, bool reset = true, bool skip_check = false) Generate all possible time surface from sequences of events.
Events are processed in order and the times surfaces generate correspond to that order.
A time surface calculator is something with the following methods:
void reset()
std::pair<TimeSurfaceType, bool> updateAndCompute(const event& ev)
TimeSurfaceCalculator, TimeSurfacePoolCalculator and Layer satisfy the requirements.
- Template Parameters
TSC – time surface calculator type
- Parameters
calculator – time surface calculator
events – sequences of events
reset – true if calculator.reset() should be called
skip_check – if true consider all events as valid
- Returns
corresponding sequences of time surfaces computed