Multiple ROI within one slice median calculation
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all,
I have a mask file 192x192x10, within each slice there are multiple ROIs with mask = 1 and background = 0. I then use bsxfun to apply this mask to an image 192x192x17 with values between [0,1]. What I'm trying to calculate is the median value of each individual ROIs within each slice. Is there an easy way to calculate the median value of each individual ROIs?
Many thanks!
Fiona
2 件のコメント
xi
2019 年 8 月 23 日
編集済み: xi
2019 年 8 月 23 日
There are multiple ROIs within each slice. So, you need to define the number of ROIs as well as the sub-masks for individual ROIs, in order to calculate whatever value of each ROI.
Otherwise, you will need to use some algorithms (such as clustering) to automatically detect connected regions as individual ROIs, for each given mask slice.
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!