# Compute thickness of branches in a 2D image

**URL:** <https://discourse.slicer.org/t/compute-thickness-of-branches-in-a-2d-image/11389>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [May 3, 2020, 7:23am UTC](https://discourse.slicer.org/t/compute-thickness-of-branches-in-a-2d-image/11389 "2020-05-03T07:23:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deepa/32/5634_2.png) [@Deepa](https://discourse.slicer.org/u/Deepa)\
**Post date:** [May 3, 2020, 7:23am UTC](https://discourse.slicer.org/t/compute-thickness-of-branches-in-a-2d-image/11389/1 "2020-05-03T07:23:19Z")

</div>

I would like to ask for suggestions on how to obtain the thickness of the edges in a given input image

Sample image:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/d/5d197d23e0913083c94b74241ea4b2382ec92593.png)

Suggestions on how to proceed will be really helpful.

In the end, I would like to obtain the centerline skeleton and find the thickness (/radius measure similar to maximal inscribed sphere radius for 3D) of each edge/branch.

---

<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:** [May 20, 2020, 12:31am UTC](https://discourse.slicer.org/t/compute-thickness-of-branches-in-a-2d-image/11389/2 "2020-05-20T00:31:30Z")

</div>

Have you tried to use [VMTK](https://github.com/vmtk/vmtk) for this? SlicerVMTK’s centerline extraction module may give you this information directly.

If VMTK does not work on your data then you can do what is described in this post: [How to analyze the thickness of the model](https://discourse.slicer.org/t/how-to-analyze-the-thickness-of-the-model/2735)

---

<div class="post-metadata">

**Author:** ![Deepa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deepa/32/5634_2.png) [@Deepa](https://discourse.slicer.org/u/Deepa)\
**Post date:** [May 20, 2020, 3:30pm UTC](https://discourse.slicer.org/t/compute-thickness-of-branches-in-a-2d-image/11389/3 "2020-05-20T15:30:16Z")

</div>

@lassoan Thanks for the response. Yes, I could successfully obtain the thickness using Fiji. I will  
check VMTK, I wasn’t sure about how the thickness is computed for 2D in VMTK .
