5.3.4.92. Function image_gs_draw_labels

5.3.4.92.1. Function Documentation

void image_gs_draw_labels(img_data_t *img_data, const uint32_t **labels, const RoI_basic_t *RoIs_basic, 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_id boolean 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_basic – Basic features (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).