Trouble labelling objects with semantic segmentation - pixelLabelColorbar

4 views (last 30 days)
For my work, I am using a semantic segmentation network to look at photos and classify 3 objects: bubbles, water (the background), and a steel tube (where the bubbles come from). I have the following results:
crop_0160.JPG
Capture.PNG
I have been following this example on automated driving for the project:
My issue is that I cannot figure out how to implement the pixellabelcolorbar function or cmap variable in the example. I want to label the colors in my photos based on the classification like in the example. Can anyone please help with this?
The matlab live file is attached, relevant code is under "Running the Neural Network on Bubble Images" section. The test image is also attached.
The bubble classification network is here as a link (too large file size to attach): https://drive.google.com/open?id=1smBGJP3T8b47Cae5Wo6V3fvukuzo-76p
Any assistance is greatly appreciated

Answers (1)

Harsha Priya Daggubati
Harsha Priya Daggubati on 24 Sep 2019
Hi,
pixelLabelColorbar adds the colorbar using the cmap(which is given by camvidColorMap function) and classnames while camvidColorMap function assigns a color to each class. Try replicating the same for your case.
Hope this clarifies your doubt!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!