Class SuperCellAverage

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class cpphots::SuperCellAverage : public cpphots::interfaces::Clonable<SuperCellAverage, SuperCell>

Average time surfaces over cells.

If added to a layer, time surfaces will be averaged over supercells.

Public Functions

inline SuperCellAverage()

Construct a new Super Cell Average object.

This constructor should not be used explicitly, it is provided only to load this modifier from a stream.

SuperCellAverage(uint16_t width, uint16_t height, uint16_t K)

Construct a new SuperCellAverage modifier.

Parameters
  • width – width of the context

  • height – height of the context

  • K – size of the cells

virtual TimeSurfaceType averageTS(const TimeSurfaceType &ts, uint16_t cx, uint16_t cy) override

Average time surfaces over a cell.

Parameters
  • ts – new time surface computed

  • cx – x coordinate of the cell

  • cy – y coordinate of the cell

Returns

averaged time surface

virtual void toStream(std::ostream &out) const override

Insert to stream.

Parameters

out – stream where to insert to

virtual void fromStream(std::istream &in) override

Extract from stream.

Parameters/current state is expected to be overwritten or invalidated.

Parameters

in – stream where to extract from