# can you tell me step by step how can i measure brain volume in slicer 4.11 from structural mri 

**URL:** <https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295>\
**Category:** Support\
**Created:** [August 22, 2021, 4:21am UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295 "2021-08-22T04:21:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aalaa12341](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@aalaa12341](https://discourse.slicer.org/u/aalaa12341)\
**Post date:** [August 22, 2021, 4:21am UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295/1 "2021-08-22T04:21:41Z")

</div>

Operating system:  
Slicer version:  
Expected behavior:  
Actual behavior:

---

<div class="post-metadata">

**Author:** ![Mehran](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mehran/32/11080_2.png) [@Mehran](https://discourse.slicer.org/u/Mehran)\
**Post date:** [August 24, 2021, 7:12am UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295/2 "2021-08-24T07:12:49Z")

</div>

In order to measure the volume of any part of body, you can label that part and then go to:  
“Welcome to Slicer” → Quantification → Label Statistics  
then, set the original image and the label that you provided. Next, you can see the volume of each label in voxel size,…  
In order to label a brain, several tools have been provided in “segmentation” as well as other modules in “Extension managers”. See also,  
[https://www.youtube.com/results?search\_query=slicerbs](https://www.youtube.com/results?search_query=slicerbs)

> **[GitHub - Mehrancd/TsallisBrainSegmentation: A Slicer module for brain...](https://github.com/Mehrancd/TsallisBrainSegmentation)**
>
> A Slicer module for brain extraction and segmentation - GitHub - Mehrancd/TsallisBrainSegmentation: A Slicer module for brain extraction and segmentation

---

<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:** [August 25, 2021, 2:35am UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295/3 "2021-08-25T02:35:18Z")

</div>

@Mehran thanks for the pointer, this brain segmentation module looks nice. Have you submitted to the extension index? I don’t see it in the extension manager in the latest Slicer Preview Release.

@aalaa12341 If you only need to measure the brain volume then you can use the extension that @Mehran recommended above, or the SwissSkullStripper, or ROBexBrainExtraction extensions. If you are interested in volume of different parts of the brain and you have a GPU then you can use the [SlicerParcellation extension](https://github.com/fepegar/SlicerParcellation), which automatically extracts 160 subcortical structures in the brain.

---

<div class="post-metadata">

**Author:** ![Mehran](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mehran/32/11080_2.png) [@Mehran](https://discourse.slicer.org/u/Mehran)\
**Post date:** [August 26, 2021, 6:17am UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295/4 "2021-08-26T06:17:02Z")

</div>

@lassoan Thanks. I was working on some issues to improve the performance of the module. Please let me know how can I submit it to the extension index(simplest way 🙂 )

---

<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:** [August 27, 2021, 2:19am UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295/5 "2021-08-27T02:19:59Z")

</div>

> [@Mehran](#):
>
> Please let me know how can I submit it to the extension index(simplest way 🙂 )

See [this page](https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html) for details.

---

<div class="post-metadata">

**Author:** ![Mehran](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mehran/32/11080_2.png) [@Mehran](https://discourse.slicer.org/u/Mehran)\
**Post date:** [August 27, 2021, 7:33am UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295/6 "2021-08-27T07:33:35Z")

</div>

@lassoan I had a look at the link. There are several other links may not work or out of date. It is widely confusing to follow an instruction to create an extension index. For example, there no information about `s4ext`. After searching a lot you will see this file should be created automatically while it is not true. Some people suggested to do it manually while the others suggested to create using other ways. I am not complaining about it, but at least a reference should be enough to follow. Always refer people to other links is not efficient at all. Sorry, I gave up to make it.

---

<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, 2021, 6:13am UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295/7 "2021-09-02T06:13:31Z")

</div>

I’ve reviewed all the extension development documentation. The information was quite up-to-date, but there were indeed a few things that were not clear or relevant anymore. I’ve moved the entire developer documentation for extensions to [this readthedocs page](https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html).

> [@Mehran](#):
>
> For example, there no information about `s4ext` .

Full specification of the extension description was already available on the wiki, but you can now find it [here](https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html#extension-description-file).

> [@Mehran](#):
>
> After searching a lot you will see this file should be created automatically while it is not true.

It is still true. The s4ext file is generated automatically if you build your extension. However, building the extension requires you to build Slicer first, which is not easy to do when you do it the first time. If you don’t need to build Slicer (e.g., because you only have Python scripted modules in the extension) then you are probably better off creating that very simple 15-line text file in a text editor.

---

<div class="post-metadata">

**Author:** ![Mehran](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mehran/32/11080_2.png) [@Mehran](https://discourse.slicer.org/u/Mehran)\
**Post date:** [September 2, 2021, 2:49pm UTC](https://discourse.slicer.org/t/can-you-tell-me-step-by-step-how-can-i-measure-brain-volume-in-slicer-4-11-from-structural-mri/19295/8 "2021-09-02T14:49:52Z")

</div>

Thanks @lassoan for update.
