# Calculating the tract volume

**URL:** <https://community.mrtrix.org/t/calculating-the-tract-volume/3936>\
**Category:** Uncategorized\
**Created:** [July 20, 2020, 5:45am UTC](https://community.mrtrix.org/t/calculating-the-tract-volume/3936 "2020-07-20T05:45:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rsmith](https://community.mrtrix.org/user_avatar/community.mrtrix.org/rsmith/32/2672_2.png) [@rsmith](https://community.mrtrix.org/u/rsmith)\
**Post date:** [March 15, 2021, 3:55am UTC](https://community.mrtrix.org/t/calculating-the-tract-volume/3936/7 "2021-03-15T03:55:48Z")

</div>

Hi Abir,

Given that you are reporting that you are getting the same value in `mrstats`'s “count” output across multiple subjects, then my best guess is that you are merely providing the mask images to `mrstats` _without_ using the `-mask` option. In that instance, what `mrstats` is telling you is the total number of voxels in the _image FoV_; _not_ the number of voxels that contain a non-zero value. Passing the same image to `mrstats` via the `-mask` option will compute summary statistics within only those voxels present in the mask. Alternatively you could use the `-ignorezero` option, which will have a similar effect of excluding voxels absent from the binary mask image from the statistics calculation.

Rob

---

_[View the full topic](https://community.mrtrix.org/t/calculating-the-tract-volume/3936)._
