5.3.4.8. Function _image_gs_draw_labels¶
Defined in File image_compute.h
5.3.4.8.1. Function Documentation¶
-
void _image_gs_draw_labels(img_data_t *img_data, const uint32_t **labels, const uint32_t *RoIs_id, const uint32_t *RoIs_xmax, const uint32_t *RoIs_ymin, const uint32_t *RoIs_ymax, const size_t n_RoIs, const uint8_t show_id)¶
Convert labels into a black & white image. If the program is linked with the OpenCV library, then the
show_idboolean can be used to draw the label number on the black & white image.- Parameters
img_data – Image data.
labels – Labels (2D array of size \([\texttt{img\_data->height}][\texttt{img\_data->width}]\)).
RoIs_id – Array of RoI unique identifiers (useful only if
show_id == 1).RoIs_xmax – Array of maximum \(x\) coordinates of the bounding box (useful only if
show_id == 1).RoIs_ymin – Array of minimum \(y\) coordinates of the bounding box (useful only if
show_id == 1).RoIs_ymax – Array of maximum \(y\) coordinates of the bounding box (useful only if
show_id == 1).n_RoIs – Number of connected-components (= number of RoIs) (useful only if
show_id == 1).show_id – Boolean to enable display of the label numbers (has no effect if the program has not be linked with the OpenCV library).