# BoneTexture Extension Help

**URL:** <https://discourse.slicer.org/t/bonetexture-extension-help/20439>\
**Category:** Support\
**Created:** [November 1, 2021, 1:14pm UTC](https://discourse.slicer.org/t/bonetexture-extension-help/20439 "2021-11-01T13:14:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamieawren](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Post date:** [November 1, 2021, 1:14pm UTC](https://discourse.slicer.org/t/bonetexture-extension-help/20439/1 "2021-11-01T13:14:19Z")

</div>

Hello All,

I am currently having trouble with the BoneTexture Extension and was hoping that someone may be of help. I have a cranium that I have segmented into 8 segments, and I would like to use the BoneTexture extensions “Compute BM Features” to compute BV/TV, etc for each of the 8 segments. I have created the segments and exported them as a binary label map. I then put the master scan for the “input scan” and would like to use each of the segments as the “mask”, however when I do so, I get the same result for each segment. Is this because slicer is exporting all the segments into a single binary label map when I do the export? Is there a way to do this? It’s a very critical part of my research project, so any help whatsoever would be greatly appreciated.

Take good care,

Jamie

---

<div class="post-metadata">

**Author:** ![jamieawren](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Post date:** [November 1, 2021, 1:23pm UTC](https://discourse.slicer.org/t/bonetexture-extension-help/20439/2 "2021-11-01T13:23:18Z")

</div>

I found a workaround shortly after I posted! If you hide all segments except for the one you want to export to a binary label map and do that for each segment respectively, then you will be able to compute the BM features for each segment individually.

---

<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:** [November 2, 2021, 8:36pm UTC](https://discourse.slicer.org/t/bonetexture-extension-help/20439/3 "2021-11-02T20:36:55Z")

</div>

If you need analyze many images then you can automate these steps by a short Python scripts. Even better, you could update the Python script that [BoneTexture analysis Python script](https://github.com/Kitware/BoneTextureExtension/blob/master/BoneTexture/BoneTexture.py) to iterate through all the segments and report results for each.

---

<div class="post-metadata">

**Author:** ![jamieawren](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Post date:** [November 3, 2021, 2:29pm UTC](https://discourse.slicer.org/t/bonetexture-extension-help/20439/4 "2021-11-03T14:29:22Z")

</div>

I’m very, very, (very) novice when it comes to Python so I’m in a situation when the time to do it manually may be = to the time it would take to run the scripts. I’ll take a whack at it though! Thank you!
