5.3.4.7. Function _features_shrink¶
Defined in File features_compute.h
5.3.4.7.1. Function Documentation¶
-
size_t _features_shrink(const uint32_t *RoIs_src_id, const uint32_t *RoIs_src_xmin, const uint32_t *RoIs_src_xmax, const uint32_t *RoIs_src_ymin, const uint32_t *RoIs_src_ymax, const uint32_t *RoIs_src_S, const uint32_t *RoIs_src_Sx, const uint32_t *RoIs_src_Sy, const float *RoIs_src_x, const float *RoIs_src_y, const size_t n_RoIs_src, uint32_t *RoIs_dst_id, uint32_t *RoIs_dst_xmin, uint32_t *RoIs_dst_xmax, uint32_t *RoIs_dst_ymin, uint32_t *RoIs_dst_ymax, uint32_t *RoIs_dst_S, uint32_t *RoIs_dst_Sx, uint32_t *RoIs_dst_Sy, float *RoIs_dst_x, float *RoIs_dst_y)¶
Shrink features. Remove features when feature identifier value is 0. Source features (
RoIs_src_X) are copied into destination features (RoIs_dst_X) ifRoIs_src_id> 0.See also
features_merge_CCL_HI_v2 for more explanations about why some identifiers can be set to 0.
See also
RoIs_basic_t for more explanations about the features.
- Parameters
RoIs_src_id – Source array of RoI unique identifiers.
RoIs_src_xmin – Source array of minimum \(x\) coordinates of the bounding box.
RoIs_src_xmax – Source array of maximum \(x\) coordinates of the bounding box.
RoIs_src_ymin – Source array of minimum \(y\) coordinates of the bounding box.
RoIs_src_ymax – Source array of maximum \(y\) coordinates of the bounding box.
RoIs_src_S – Source array of RoI surfaces.
RoIs_src_Sx – Source array of sums of \(x\) properties.
RoIs_src_Sy – Source array of sums of \(y\) properties.
RoIs_src_x – Source array of centroids abscissas.
RoIs_src_y – Source array of centroids ordinates.
n_RoIs_src – Number of RoIs in the previous arrays.
RoIs_dst_id – Destination array of RoI unique identifiers.
RoIs_dst_xmin – Destination array of minimum \(x\) coordinates of the bounding box.
RoIs_dst_xmax – Destination array of maximum \(x\) coordinates of the bounding box.
RoIs_dst_ymin – Destination array of minimum \(y\) coordinates of the bounding box.
RoIs_dst_ymax – Destination array of maximum \(y\) coordinates of the bounding box.
RoIs_dst_S – Destination array of RoI surfaces.
RoIs_dst_Sx – Destination array of sums of \(x\) properties.
RoIs_dst_Sy – Destination array of sums of \(y\) properties.
RoIs_dst_x – Destination array of centroids abscissas.
RoIs_dst_y – Destination array of centroids ordinates.
- Returns
Number of regions of interest (RoIs) after the data shrink.