5.3.4.40. Function features_extract
Defined in File features_compute.h
5.3.4.40.1. Function Documentation
-
void features_extract(const uint32_t **labels, const int i0, const int i1, const int j0, const int j1, RoI_basic_t *RoIs_basic, const size_t n_RoIs)
Basic features extraction from a 2D array of
labels. In other words, this function converts a (sparse ?) 2-dimensional representation of connected-components (CCs) into a list of CCs.See also
RoI_basic_t for more explanations about the features.
- Parameters
labels – Input 2D array of labels ( \([i1 - i0 + 1][j1 - j0 + 1]\)).
i0 – First \(y\) index in the labels (included).
i1 – Last \(y\) index in the labels (included).
j0 – First \(x\) index in the labels (included).
j1 – Last \(x\) index in the labels (included).
RoIs_basic – Basic features.
n_RoIs – Number of connected-components (= number of RoIs) in the 2D array of
labels.