How to convert cell to logical?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mohd akmal masud
am 27 Jun. 2022
Kommentiert: KSSV
am 27 Jun. 2022
Dear all. I have the image grountruth as attached. the image categorical.
Anyone know how to convert it into logical?
0 Kommentare
Akzeptierte Antwort
KSSV
am 27 Jun. 2022
Bearbeitet: KSSV
am 27 Jun. 2022
You can use ismember. Let L be your categorical data of size 128*128*64. I see that, there are two data background, tumour. You can have 0 in background and 1 in tumour, using:
idx = ismember(L,'tumor') ;
5 Kommentare
KSSV
am 27 Jun. 2022
There is a typo error....string should be 'tumor' not 'tumour'. Edited the answer.....check it now.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!