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!