how to change the color output of segmentation?

조회 수: 4 (최근 30일)
Lamya Mohammad
Lamya Mohammad 2019년 11월 29일
답변: Sourav Bairagya 2019년 12월 13일
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:
12.png
but I got this:
untitled.png
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!
  댓글 수: 2
Image Analyst
Image Analyst 2019년 11월 29일
What is the class of the actual and expected? RGB, grayscale, logical?
Lamya Mohammad
Lamya Mohammad 2019년 11월 29일
편집: Lamya Mohammad 2019년 11월 29일
I'm not sure, but I think they are RGB, you can check it from the link. Sorry, I'm a beginner.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sourav Bairagya
Sourav Bairagya 2019년 12월 13일
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:

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by