How to count the number of voxels of another color
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I was wondering how to count the number of voxels of one color in a three dimensional space
Thank you!
3 个评论
Rik
2019-9-12
You can use my answer to achieve this. When you have a logical array you can use sum to count the number of voxels.
采纳的回答
Rik
2019-9-11
Similar to how you would do that for 2D:
IM=randi(255,[512 512 400]);
count=sum(IM==200,'all');
%if your release doesn't have the 'all' option:
%count=sum(IM(:)==200);
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!