MATLAB Answers

how to change the color output of segmentation?

1 view (last 30 days)
Lamya Mohammad
Lamya Mohammad on 29 Nov 2019
Answered: Sourav Bairagya on 13 Dec 2019
Hello everyone!
I changed it and made it work with hand segmantation, with only two classes, they are: hand (white) and background (black)
the problem is when using this function :
imshowpair(actual, expected)
I want the result to be like the one shown in the link,or for example like this:
but I got this:
Also, I want to ask if there is a way to show the predicted mask of the image alone? when I tried to show the 'expected' variable, all the image appeared as black.
Thank you!


Image Analyst
Image Analyst on 29 Nov 2019
What is the class of the actual and expected? RGB, grayscale, logical?
Lamya Mohammad
Lamya Mohammad on 29 Nov 2019
I'm not sure, but I think they are RGB, you can check it from the link. Sorry, I'm a beginner.

Sign in to comment.

Answers (1)

Sourav Bairagya
Sourav Bairagya on 13 Dec 2019
For "imshowpair" function, inputs should be grayscale/ binary/ truecolor images and for "jaccard" function, inputs sholud be binary/ label/ categorical images. Make sure the type of inputs fed to those functions are falling under these categories.
For more information follow this links:


Sign in to comment.