How to convert cell to logical?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Dear all. I have the image grountruth as attached. the image categorical.
Anyone know how to convert it into logical?
0 Commenti
Risposta accettata
KSSV
il 27 Giu 2022
Modificato: KSSV
il 27 Giu 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 Commenti
KSSV
il 27 Giu 2022
There is a typo error....string should be 'tumor' not 'tumour'. Edited the answer.....check it now.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Data Workflows in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!