How to find pixels number of a 3D dataset
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Silvia Caruso
il 3 Giu 2015
Risposto: Image Analyst
il 3 Giu 2015
I have a 3D dataset D=260*320*100 of 100 slice. After segmentation I need to Know the total volume (found as total number of pixel) of the 3D dataset. I tried with this code, but I'm not able to find the total volume:
CCvol = bwconncomp(D(:,:,:), 8);
STATS = regionprops(CCvol, 'Area');
Volume=sum(STATS.Area)
0 Commenti
Risposta accettata
Image Analyst
il 3 Giu 2015
Assuming D is your binary image, and you want the volume of the true/white/1 voxels, you'd simply do this:
Volume = sum(D(:)); % Compute sum of all "true" voxels.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 3-D Volumetric Image Processing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!