Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you probably need to touch each pixel only once:

foreach pixel
    lookup the corresponding label
    calculate a unique color for the label:
         B = (label*123) % 255
         G = (label*237) % 255
         R = (label*91) % 255