5.3.2.9. Struct History_t

5.3.2.9.1. Struct Documentation

struct History_t

History of the previous RoI features and motions. This structure allows to access RoI/motion in the past frames. RoIs at \(t\) are stored in the first array element while RoIs at \(t-\texttt{\_size}\) are store in the \(\texttt{\_size} - 1\) element. The memory layout is a Structure of Arrays (SoA), each field is an array of _max_size capacity (except for _max_size itself and _size fields that are both scalar values).

Public Members

RoI_t **RoIs

2D array of RoIs, the first dimension is the time and the second dimension is the RoIs at a given time.

motion_t *motion

Array of motion estimations.

uint32_t *n_RoIs

Array of numbers of RoIs.

uint32_t _max_n_RoIs

Maximum number of RoIs.

size_t _size

Current size/utilization of the fields.

size_t _max_size

Maximum capacity of data that can be contained in the fields.