# How to compute cross sectional area and volume from a stack of segmented images?

4 vues (au cours des 30 derniers jours)
Tri Rowstenkowski le 22 Juil 2021
Modifié(e) : Yazan le 22 Juil 2021
Hi,
I have a stack of segmented images. How do i compute the cross sectional area of these images and volume if xvoxel=0.01(mm/pixel) and zvoxel=0.20(mm/pixel)? Attached images are 256*256.
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (1)

Yazan le 22 Juil 2021
Modifié(e) : Yazan le 22 Juil 2021
Binarize the image, then use region properties to compute the area (number of pixels). Once you know the number of pixels, you can get the area by multiplying by the area of one pixel.
mask = Im>188; % binarize the image
areaReal = area.Area*0.01^2; % real-world area
If you have a 3d image (stack of 2d binary images), you can also call regionprops to compute the number of voxels. To get the real-world volume, multiply the number of voxels by the volume of one voxel.
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by