How to convert RGB images with many different colors (not only red, green, blue) into classes for segmentation training?, The mask is linked below

This code shows an example of the transformation from colors to class indices.

2 Likes