Ground Truth Labeler App (Matlab R2021b) - How to export ground truth image with color-labeled?
    8 views (last 30 days)
  
       Show older comments
    
    firdaus mohamed
 on 4 Mar 2022
  
    
    
    
    
    Answered: Image Analyst
      
      
 on 4 Mar 2022
            Hi,
I am following this example, Semantic Segmentation Using Deep Learning (https://www.mathworks.com/help/vision/ug/semantic-segmentation-using-deep-learning.html)
I have tried to manually label from one of the image below, 

and I got this black image, and I already adjust the image using imadjust  function, (resulted in grayscale image),

What should I do to obtain the image groung truth such as below? I just want to generate Pixel Label with color label

Thank you
0 Comments
Accepted Answer
  Image Analyst
      
      
 on 4 Mar 2022
        You can use label2rgb():
% Apply a variety of pseudo-colors to the regions.
coloredLabelsImage = label2rgb (labeledImage, 'hsv', 'k', 'shuffle');
% Display the pseudo-colored image.
imshow(coloredLabelsImage);
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
