# Volume Miscalculation

**URL:** <https://discourse.slicer.org/t/volume-miscalculation/13274>\
**Category:** Support\
**Created:** [September 1, 2020, 7:47am UTC](https://discourse.slicer.org/t/volume-miscalculation/13274 "2020-09-01T07:47:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 1, 2020, 7:47am UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/1 "2020-09-01T07:47:49Z")

</div>

Hello,

I have been using the Segment Statistics Module to try and compute the volumes of segmentations. However, the values do not seem to be correct. For example, the volume of the right ventricle is shown to be greater than the volume of the left ventricle. Also the volume is much lower than what we found to be the stroke volume.

Is there any reason that my readings are coming out this way?

Thanks!

---

<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:** [September 1, 2020, 1:33pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/2 "2020-09-01T13:33:44Z")

</div>

Volume computation is extensively tested and should be correct.

After you finished defining your seeds, you need to click Apply in “Grow from seeds” effect. Without that, you just measure volume of your seeds.

If this does not help then send the segmentation that you have problem with (or st least a few screenshots).

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 1, 2020, 6:35pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/3 "2020-09-01T18:35:21Z")

</div>

Hi,

Thank you for your response. I had used the Grow from Seeds Effect. We found the volume of blood pumped by the left ventricle per beat to be 9.7 ± 2.1 mm3 with some previous research…yet the left ventricle does not seem to have near that much volume itself.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/c/6cfc1e5b004b12f0efda355d5931ea7c8b2e6956.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/7/171274e7ea241bf06eeac474a6ed4b1f09be2c02.png)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 1, 2020, 6:50pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/4 "2020-09-01T18:50:37Z")

</div>

Is this human data? Those values are too small. Can you confirm the spacing of your original dataset is correct?

---

<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:** [September 1, 2020, 7:02pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/5 "2020-09-01T19:02:15Z")

</div>

These seem to be just the seeds that you used for region growing. Have you tried going to Segment Editor module and click Apply in Grow from seeds effect?

But @muratmaga is right, too. Non-clinical scanners often save their data with incorrect spacing that you need to fix manually. What is the spacing value displayed in Volumes module / Volume information section?

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 1, 2020, 8:08pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/6 "2020-09-01T20:08:23Z")

</div>

Hi,

Thank you for your response. This is not human data. We are using images of chicken embryo hearts. As for spacing I’m going by the information that the person I work under has provided me with.

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 1, 2020, 8:12pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/7 "2020-09-01T20:12:23Z")

</div>

Hi,

I did use the grow from seeds effect in the segment editor module. Here is the volume information:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/9/994fa87c87aa5b31d1241492e2f05d5be0013798.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/6/96f7cdb34fb7219c88f4a74964a635bd6aaa2504.png)

Thanks

---

<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:** [September 1, 2020, 8:12pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/8 "2020-09-01T20:12:47Z")

</div>

2633 voxels are about 50x50 voxels, which would be too few for a highly detailed surface that you show in the screenshot. So, it is a bit more likely that you compute volume for not the right segmentation node.

Can you share an example segmentation (upload somewhere and post the link here) so that we can have a look?

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 1, 2020, 9:43pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/9 "2020-09-01T21:43:50Z")

</div>

How do I upload the segmentation in order to share here?

---

<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:** [September 1, 2020, 10:14pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/10 "2020-09-01T22:14:32Z")

</div>

You can upload the file to Dropbox, OneDrive, Google Drive, etc. and post the link here.

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 1, 2020, 11:27pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/11 "2020-09-01T23:27:26Z")

</div>

[https://drive.google.com/file/d/15vlxpXtIvLiOe9\_UWYHjOHLpQDRYqa5q/view?usp=sharing](https://drive.google.com/file/d/15vlxpXtIvLiOe9_UWYHjOHLpQDRYqa5q/view?usp=sharing)

I think one must download after clicking this link. Let me know if this link works.

---

<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:** [September 1, 2020, 11:53pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/12 "2020-09-01T23:53:19Z")

</div>

You have only uploaded the .mrml file, which is an index to the actual data files. Please save the scene as a single-file bundle (.mrb file) by clicking the package icon in the save data window:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/3/9323762a1db15e80da4b2a4a3b4b4aed2f1fdebd.png)

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 2, 2020, 2:03am UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/13 "2020-09-02T02:03:36Z")

</div>

Thanks, I hope I uploaded it correctly this time.

> **[2020-06-23-Scene.mrb](https://drive.google.com/file/d/1_VM7zm5lfet6J7tEtFKVfTUovMwzFLsj/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 2, 2020, 5:09am UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/14 "2020-09-02T05:09:34Z")

</div>

@Angel as @lassoan indicated previously, you didn’t finalize the ‘grow from the seed’. You need to first initialize using the seeds and review the expected segmentation with those seeds. If you are satisfied with that you then need to hit apply. Here is a result from your share scene where I simply hit initialize followed by apply. I think these numbers make much more sense:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/1/91b5804156e520fe86d3ab3b48db6b3ad8f85b92.png)

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 2, 2020, 7:45am UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/15 "2020-09-02T07:45:55Z")

</div>

Hi,

Thank you so much for taking a look! These numbers are definitely closer to my predictions. Is there any reason as to why the left ventricle is still less in volume as compared to the right ventricle?

Thanks!

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 2, 2020, 2:51pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/16 "2020-09-02T14:51:40Z")

</div>

I think your segmentation can use a bit more work and you probably want to add some more detail, before actually looking at the numbers.

---

<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:** [September 2, 2020, 3:15pm UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/17 "2020-09-02T15:15:12Z")

</div>

Yes, it looks like the segmentation does not cover the entire ventricle (it looks like up to about 5% of the volume may be missed in the segmentation). You can adjust the “Editable intensity range” so that includes a bit more of the dark regions (set the lower threshold value a bit lower) and use Margin effect to grow it a bit into these regions.

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 3, 2020, 1:23am UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/19 "2020-09-03T01:23:53Z")

</div>

Thank you so much for your patience! I have one last question: why does the volume information change after I save to files?

Unsaved:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/c/ece69f54ced354c2b0b75a46e9e835e99e86344a.png)

Saved:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/f/0fb12c5cfe97aa30707953668df8f08a6ad19ea0.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:** [September 3, 2020, 1:29am UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/20 "2020-09-03T01:29:30Z")

</div>

Volume spacing should not change when you save the scene and reload it. What file format are you saving into?

---

<div class="post-metadata">

**Author:** ![Angel](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Angel](https://discourse.slicer.org/u/Angel)\
**Post date:** [September 3, 2020, 1:46am UTC](https://discourse.slicer.org/t/volume-miscalculation/13274/21 "2020-09-03T01:46:01Z")

</div>

I tried saving it as both .mrml file and .mrb file and it changed both times.

[Next page](https://discourse.slicer.org/t/volume-miscalculation/13274.md?page=2)
