# Cranial Bone flap Thickness Measurement

**URL:** <https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [March 5, 2021, 5:11pm UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393 "2021-03-05T17:11:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_Giulio\_Genna](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/antonio_giulio_genna/32/8898_2.png) [@Antonio\_Giulio\_Genna](https://discourse.slicer.org/u/Antonio_Giulio_Genna)\
**Post date:** [March 5, 2021, 5:11pm UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/1 "2021-03-05T17:11:49Z")

</div>

Operating system: Windows 8 version 6.3  
Slicer version: 4.10.2  
Expected behavior: Generating a centerline and analyzing segment thickness  
Actual behavior: None

Hello, I am a new Slicer user struggling with an old, debated problem.  
I generated a segmentation, defining the craniotomy bone flap in patients who underwent neurosurgical procedures, using T1 weighted MRI images.  
I saved the segmentation, using both .seg.nrrd and .stl extensions. Then I tried to follow the “How to analyze the thickness of the model” tutorial, but I am stuck. I tried loading the .seg.nrrd segmentation together with the T1 volume. After that, as suggested, I searched the Simple Filters module and used the BinaryThinningImageFilter, using the T1 volume as input volume and creating a new volume as output. However, after clicking the apply button I waited 40 minutes, but the progress line still remained at 0%. I thought the problem was the extension of the file, so I used the same segmentation generating a .stl file. Then I repeated the same process, ending with similar results.  
Theoretically speaking, analyzing the bone flap thickness should easily to compute. However, I am struggling with it, how do you suggest proceeding?

Kind regards

---

<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:** [March 5, 2021, 5:14pm UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/2 "2021-03-05T17:14:50Z")

</div>

You need to apply the filter not to the T1 volume but to the segmentation (exported to a labelmap). Make sure to crop the segmentation to the minimum necessary size (e.g., using Scissors tool). After this, computation should take a few seconds.

---

<div class="post-metadata">

**Author:** ![Antonio\_Giulio\_Genna](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/antonio_giulio_genna/32/8898_2.png) [@Antonio\_Giulio\_Genna](https://discourse.slicer.org/u/Antonio_Giulio_Genna)\
**Post date:** [March 6, 2021, 11:33am UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/3 "2021-03-06T11:33:44Z")

</div>

Dear Andreas,

Thank you for your reply. I tried to implement your suggestion, and it worked partially.  
At the moment, I am worried I did something wrong in the first passages, which is flawing my result. So, I will try to explain what I did and maybe you can help me fix it.  
I loaded a T1 volumetric image in Slicer, then used the Segment Editor to paint out the bone flap. Afterward, I smoothed the created ROI and saved it through the save button using both the .seg.nrrd and .stl extensions. I think this is the passage that is generating my problems. Although I created an ROI it seems to rely on the native volume for dimensions, volumes, etc.

So, as you suggested I cropped the native volume around the ROI, then I created a lablemap and applied the passages in the “How to analyze the thickness of the model” tutorial. Although the process functioned, my results were not similar to the ones in the tutorial and I did not have the green and red outline of my ROI.

Maybe I am struggling with really complex tasks for a beginner user, but I really hope you can help me.

Many thanks in advance,  
Antonio

---

<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:** [March 6, 2021, 12:53pm UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/4 "2021-03-06T12:53:56Z")

</div>

Can you share your seg.nrrd file (upload somewhere and post the link here)?

---

<div class="post-metadata">

**Author:** ![Antonio\_Giulio\_Genna](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/antonio_giulio_genna/32/8898_2.png) [@Antonio\_Giulio\_Genna](https://discourse.slicer.org/u/Antonio_Giulio_Genna)\
**Post date:** [March 6, 2021, 2:06pm UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/5 "2021-03-06T14:06:48Z")

</div>

Sure, could you suggest me somewhere to upload the file?

---

<div class="post-metadata">

**Author:** ![Antonio\_Giulio\_Genna](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/antonio_giulio_genna/32/8898_2.png) [@Antonio\_Giulio\_Genna](https://discourse.slicer.org/u/Antonio_Giulio_Genna)\
**Post date:** [March 6, 2021, 2:16pm UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/6 "2021-03-06T14:16:13Z")

</div>

Also, I created the ROI segmenting a Nifti T1 volumetric image. Is it correct that NIfti images do not store any patient’s information?

---

<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:** [March 6, 2021, 2:16pm UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/7 "2021-03-06T14:16:37Z")

</div>

Anything works - Dropbox, OneDrive, Google drive…

Nifti does not store patient health information. In theory, somebody could inject some patient information into some fields, so if you want then you can open the file in a text editor and have a look at the first few hundred bytes of the file to check if you see anything about the patient there, but it is highly unlikely.

---

<div class="post-metadata">

**Author:** ![Antonio\_Giulio\_Genna](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/antonio_giulio_genna/32/8898_2.png) [@Antonio\_Giulio\_Genna](https://discourse.slicer.org/u/Antonio_Giulio_Genna)\
**Post date:** [March 8, 2021, 8:49am UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/8 "2021-03-08T08:49:33Z")

</div>

Dear Andreas,

Sorry for the late reply. Underneath you can find the segmentation link:

[https://drive.google.com/file/d/1EKKORh0UWQnwK7mhIqVOSy4N6Kr5I\_2A/view?usp=sharing](https://drive.google.com/file/d/1EKKORh0UWQnwK7mhIqVOSy4N6Kr5I_2A/view?usp=sharing)

Thank you for helping me,

Antonio

---

<div class="post-metadata">

**Author:** ![Antonio\_Giulio\_Genna](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/antonio_giulio_genna/32/8898_2.png) [@Antonio\_Giulio\_Genna](https://discourse.slicer.org/u/Antonio_Giulio_Genna)\
**Post date:** [March 12, 2021, 9:16am UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/9 "2021-03-12T09:16:39Z")

</div>

Dear Andreas,

I think I came closer to the result. After cropping the image, applying the Bunary thinning and Danielsson mapping distance filters this is the result. However, to me, it seems that Slicer is sampling the whole volume rather than the segment. How can I try to fix this problem? Did you manage to look at the file I sent you earlier?

All the best,  
Antonio

 ![Schermata 2021-03-12 alle 10.07.57.png](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/c/8cfb6a12477682038096e9e2a9bc2636e3a2cfb4.png)

---

<div class="post-metadata">

**Author:** ![Antonio\_Giulio\_Genna](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/antonio_giulio_genna/32/8898_2.png) [@Antonio\_Giulio\_Genna](https://discourse.slicer.org/u/Antonio_Giulio_Genna)\
**Post date:** [March 15, 2021, 3:01pm UTC](https://discourse.slicer.org/t/cranial-bone-flap-thickness-measurement/16393/10 "2021-03-15T15:01:11Z")

</div>

Dear Andras,

I tried the Skeleton module, and I was able to define the segmentation’s center-line. Therefore, I am wondering what I did wrong. Did you manage to look at the segmentation I send you a week ago?

All the best,

Antomnio
