How to count the number of voxels of another color
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Matthew Lee
el 11 de Sept. de 2019
Comentada: Rik
el 12 de Sept. de 2019
Hi,
I was wondering how to count the number of voxels of one color in a three dimensional space
Thank you!
3 comentarios
Rik
el 12 de Sept. de 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.
Respuesta aceptada
Rik
el 11 de Sept. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!