How to count the number of voxels of another color
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I was wondering how to count the number of voxels of one color in a three dimensional space
Thank you!
3 Kommentare
Rik
am 12 Sep. 2019
You can use my answer to achieve this. When you have a logical array you can use sum to count the number of voxels.
Akzeptierte Antwort
Rik
am 11 Sep. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!