Thanks a lot for all you answers, they always offer a great help.
I’m trying to do the same here. I have RGB images as my labels and I need to create the color-class mapping, but I was wondering, how can I know exactly the number of classes?
I’m working with Satellite images and the labels are masks for vegetation index values.