Hi, I'm trying to create a program that can pick out screws and bolts in an image but the screws and bolts will be a different colour each. I've segmented the image successfuly and used the 'bwlabel' function to apply labels to the images. I know the 'label2rgb' function can apply colours to all labels but I can only make it so all labels are a random colour. I'm a little stumped and any help would be greatly appreciated!
MATLAB: How to apply colours of the choosing to labels in a binary image based on their individual areas
homeworkImage Processing Toolboximage segmentationlabels
Best Answer