5.3.4.6. Function _features_RoIs_write¶
Defined in File features_io.h
5.3.4.6.1. Function Documentation¶
-
void _features_RoIs_write(FILE *f, const int frame, const uint32_t *RoIs_id, const uint32_t *RoIs_xmin, const uint32_t *RoIs_xmax, const uint32_t *RoIs_ymin, const uint32_t *RoIs_ymax, const uint32_t *RoIs_S, const uint32_t *RoIs_Sx, const uint32_t *RoIs_Sy, const float *RoIs_x, const float *RoIs_y, const uint32_t *RoIs_magnitude, const uint32_t *RoIs_sat_count, const size_t n_RoIs, const vec_track_t tracks, const unsigned age)¶
Print a table of RoIs.
See also
RoIs_basic_t for more explanations about the features.
See also
RoIs_misc_t for more explanations about the features.
- Parameters
f – File descriptor (in write mode).
frame – Frame id corresponding to the RoIs.
RoIs_id – Array of RoI unique identifiers.
RoIs_xmin – Array of minimum \(x\) coordinates of the bounding box.
RoIs_xmax – Array of maximum \(x\) coordinates of the bounding box.
RoIs_ymin – Array of minimum \(y\) coordinates of the bounding box.
RoIs_ymax – Array of maximum \(y\) coordinates of the bounding box.
RoIs_S – Array of RoI surfaces.
RoIs_Sx – Array of sums of \(x\) properties.
RoIs_Sy – Array of sums of \(y\) properties.
RoIs_x – Array of centroids abscissa.
RoIs_y – Array of centroids ordinate.
RoIs_magnitude – Array of RoI magnitudes (if NULL, the magnitudes are not shown).
RoIs_sat_count – Array of RoI saturation counters (if NULL, the saturation counters are not shown).
n_RoIs – Number of connected-components (= number of RoIs) in the 2D array of
labels.tracks – Vector of tracks. It enables to match RoIs with corresponding track in the table of RoIs.
age – 0 if
frameis the current frame, 1 ifframeis the \(t - 1\) frame. This is mandatory to find the corresponding track (if any).