imgviz.label_colormap

imgviz.label_colormap(n_label=256, value=None)[source]

Label colormap.

Parameters:
  • n_labels (int) – Number of labels (default: 256).

  • value (float or int) – Value scale or value of label color in HSV space.

Returns:

cmap – Label id to colormap.

Return type:

numpy.ndarray, (N, 3), numpy.uint8