How to color objects in an image with different color each
问题 I'm having following problem: I have black/white images, which I have to colorize: Every white "blob" in the image represents an instance of an object and I want to color every object with a new color, but for every image i want to use the same color scheme: For example: 1st image: 3 Objects -> used colors: red, green, yellow 2nd image: 2 Objects -> used colors: red, green 3rd image: 5 objects -> used colors: red, green, yellow, pink, orange I've colored a couple of images by hand to show