# Volume measurement = 0

**URL:** <https://discourse.slicer.org/t/volume-measurement-0/11490>\
**Category:** Support\
**Created:** [May 11, 2020, 7:21am UTC](https://discourse.slicer.org/t/volume-measurement-0/11490 "2020-05-11T07:21:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaborri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gaborri/32/2925_2.png) [@Gaborri](https://discourse.slicer.org/u/Gaborri)\
**Post date:** [May 11, 2020, 7:21am UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/1 "2020-05-11T07:21:35Z")

</div>

Hello there,

I am a new user. Windows 10 and Slicer 4.10.1 version.

I have a problem in measuring a volume.  
I have the segmentation done and it is displayed correctly in the 3d views.  
Unfortunately when I go for Quantification and segment statistics it display to me 0 volume.  
With another scene and segmentation I have not such problem…  
I cannot really find where I am wrong. Could you please give me a piece of advice?

All the best

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 12, 2020, 3:33am UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/2 "2020-05-12T03:33:35Z")

</div>

Volume can be computed from binary labelmap and closed surface representations. Do you get 0 value from both?

Can you share the segmentation file (upload somewhere and post the link here) so that we can investigate?

---

<div class="post-metadata">

**Author:** ![Gaborri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gaborri/32/2925_2.png) [@Gaborri](https://discourse.slicer.org/u/Gaborri)\
**Post date:** [May 12, 2020, 7:15am UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/3 "2020-05-12T07:15:16Z")

</div>

Ok I am attaching here the link of the segmentation (data set and the scene) that actually works:

> **[2020-04-27-Scene.mrml](https://drive.google.com/file/d/139kwEx4vRhTSCxZevONGrXraKS8kaE8f/view?usp=sharing)**
>
> Google Drive file.

  

> **[Segmentation\_1\_2.seg.nrrd](https://drive.google.com/file/d/1rHyA6-KRQSr6cS2CJ-KjE7nB2MJ5_Q_d/view?usp=sharing)**
>
> Google Drive file.

and here the one that does not:

> **[Segmentation.seg.nrrd](https://drive.google.com/file/d/1wZOrk75gwJjlLUChZFxu2jX27tarrTzo/view?usp=sharing)**
>
> Google Drive file.

  

> **[2020-05-02-Scene.mrml](https://drive.google.com/file/d/1sYcc1mJkUoscclW_Z1Zp0a3JYReJijSM/view?usp=sharing)**
>
> Google Drive file.

Once I open the scene and the data set, export the segments in models… and from there I see the information on the model where you can find volume ecc…

I did the same on the segment statistics tool but it gives me the same.  
I am wondering if the dataset that does not work is due to some problems in grow from seed (such as the surface is not closed, but I do not understand then the difference with respect to the other one).

Thank you so much

---

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [May 12, 2020, 12:46pm UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/4 "2020-05-12T12:46:22Z")

</div>

it gives volume for volume info for all 3 segments out of 4.

Only the segment “major ampullate” doest not give the volume or comes as 0 but that is because there is noting there. that segment is empty so it is 0

---

<div class="post-metadata">

**Author:** ![Gaborri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gaborri/32/2925_2.png) [@Gaborri](https://discourse.slicer.org/u/Gaborri)\
**Post date:** [May 12, 2020, 1:24pm UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/5 "2020-05-12T13:24:35Z")

</div>

Thank you manjula,  
but how is it possible that I actually see the segment but it is not there? The file looks good (at least equal to the other one).

Thank you very much

---

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [May 12, 2020, 6:38pm UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/6 "2020-05-12T18:38:48Z")

</div>

I don’t see that segment in 3D View. In your given data. you have two segments with the same name “segmentation” and the same kind of segments. So actually you must have two  
Segmentation.seg.nrrd files. If you are seen the ampulla in 3d view it must have been rendered from the other segment with the same name. But it is clearly not the one you have shared  
So if you are seen the ampulla it must be on the other segment. If you select that segment and to it should work  
.

 ![2020-05-12-203642_1920x1080_scrot](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/9/09eb78759341b37d564f123d21f9df2f90c88670.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 12, 2020, 6:40pm UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/7 "2020-05-12T18:40:23Z")

</div>

Data module gives a good overview of all data that is loaded into the scene.

---

<div class="post-metadata">

**Author:** ![Gaborri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gaborri/32/2925_2.png) [@Gaborri](https://discourse.slicer.org/u/Gaborri)\
**Post date:** [May 13, 2020, 7:28am UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/8 "2020-05-13T07:28:47Z")

</div>

Hello, I am afraid that is not the problem.  
In the first case, I upload the scene and the segmentation data set and I obtain this, where i see both segments and also the relative volume in the segment statistics…

 ![Cattura](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/2/f2fe022bfb41279ab872adbd0670130a84fbae50.jpeg)

for the other, i can upload the file as before (so the scene and the segmentation one) or both of them, but I still obtain the same… so I can visualise the thing that I am studying but I cannot measure the volume

 ![Cattura1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/6/668216581ad8d97c6429661429a362dbeac66707.jpeg) ![Cattura2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/7/b7d2d684f54fccbab8019ab2b18b641af7c4d5bc.jpeg) ![Cattura3](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/e/aedb160861e4b4c608b09124844e867b6635390c.jpeg)

as you can see here… even though you clearily see the gland, the volume is 0, which is strange and makes me think that I am doing something wrong.

Moreover, I would stress also the attention on a thing… if you notice in the first picture that I have uploaded the volume of the gland is bigger than the one of the space. This is very unlikely since the space contain the gland and it is clearily bigger…  
I would be very gratefull if you suggest me something and how to eventually fix this problem.

In the data module, I see all the segments…  
I am really appreciating this fruitful discussion and I am sorry if I seem dumb to you.

All the best

---

<div class="post-metadata">

**Author:** ![Gaborri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gaborri/32/2925_2.png) [@Gaborri](https://discourse.slicer.org/u/Gaborri)\
**Post date:** [May 15, 2020, 7:33am UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/9 "2020-05-15T07:33:28Z")

</div>

No comments?

I am really curious about my mistakes  
🙂

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 23, 2020, 5:10am UTC](https://discourse.slicer.org/t/volume-measurement-0/11490/10 "2020-05-23T05:10:04Z")

</div>

Finally I had time to look at your data sets.

I’ve noticed one issue: Both segmentations only contain seeds, not the final segmentation result. It is important that when you are happy with preview results that the “Grow from seed” effect shows you, switch to “Grow from seeds” effect and click “Apply”.

I’ve also noticed that your segmentations are very big and you are probably using “Grow from seeds” effect, which uses lots of memory. So, there is a good chance that you run out of memory. To confirm this, you can crop&downsample your input image by setting scaling factor of 2-3x in “Crop Volume” module and see if it makes a difference. If it does then you can try to increase virtual memory setting in your computer and try with a smaller scaling factor increase.
