How to convert cell to logical?
2 ビュー (過去 30 日間)
古いコメントを表示
Dear all. I have the image grountruth as attached. the image categorical.
Anyone know how to convert it into logical?
0 件のコメント
採用された回答
KSSV
2022 年 6 月 27 日
編集済み: KSSV
2022 年 6 月 27 日
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 件のコメント
KSSV
2022 年 6 月 27 日
There is a typo error....string should be 'tumor' not 'tumour'. Edited the answer.....check it now.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!