how to extract the pixel value of tumor in uint16 .mat from logical .mat?
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have data uint16 .mat. then I label it into tumor and background, and save it into logical .mat. Means the background is 0, tumor is 1.
how to extract the pixel value of tumor in uint16 .mat?
the file unit16 and logical as attached.
0 个评论
回答(1 个)
Walter Roberson
2022-10-17
uint8() the logical mask and multiply by the uint8 data. The locations where the mask is false will come out 0.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!