5.3.4.32. Function features_alloc_RoIs

5.3.4.32.1. Function Documentation

RoIs_t *features_alloc_RoIs(const size_t max_size, const uint8_t alloc_asso, const uint8_t alloc_motion, const uint8_t alloc_magn, const uint8_t alloc_elli)

Allocation of all the features.

Parameters
  • max_size – Maximum capacity of each feature field (= maximum number of elements in the arrays).

  • alloc_asso – Allocate association features if set to 1 (set the field to NULL if 0).

  • alloc_motion – Allocate motion features if set to 1 (set the field to NULL if 0).

  • alloc_magn – Allocate magnitude features if set to 1 (set the field to NULL if 0).

  • alloc_elli – Allocate ellipse features if set to 1 (set the field to NULL if 0).

Returns

Pointer of allocated RoIs.