Visualize label image

This is a plotting method used to visualize labeled images.

plantcv.visualize.colorize_label_img(label_img)

returns colored_img

  • Parameters:
    • label_img - A labeled image, i.e. a 2d image with unique integer values at every pixel, where the values represent for the class the pixel belongs to
  • Context:
    • Visualize different class labels in one image
  • Example use:

Original image

Screenshot


from plantcv import plantcv as pcv

colored_img = pcv.visualize.colorize_label_img(label_img=label_img)

Plot with Colored Masks

Screenshot

Source Code: Here