Merge two 3D masks
2 ビュー (過去 30 日間)
古いコメントを表示
I have a 3D mask with zero bahground and 3 labels 10 = Ventricles, 20=White matter, 30=Grey matter. I also have a 3D mask with tumour segmentation showing necrosis=1, tumor=2, edema=4.
I would like to merge these two segmentations in a single mask. Any help how to do this?
2 件のコメント
Rik
2023 年 3 月 30 日
Do you just want to add them up? Or do you want to define new numeric labels for each unique combination?
And what have you tried yourself?
回答 (1 件)
Image Analyst
2023 年 3 月 30 日
Try this:
tumor_mask(tumor_mask == 1) = 50;
tumor_mask(tumor_mask == 2) = 60;
tumor_mask(tumor_mask == 4) = 70;
combinedLabeledImage = brain_mask + tumor_mask;
To learn other fundamental concepts, invest 2 hours of your time here:
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!