# Filament trace / Length of a curved filament

**URL:** <https://discourse.slicer.org/t/filament-trace-length-of-a-curved-filament/2009>\
**Category:** Support\
**Created:** [February 2, 2018, 9:56am UTC](https://discourse.slicer.org/t/filament-trace-length-of-a-curved-filament/2009 "2018-02-02T09:56:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnFr](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@AnFr](https://discourse.slicer.org/u/AnFr)\
**Post date:** [February 2, 2018, 9:56am UTC](https://discourse.slicer.org/t/filament-trace-length-of-a-curved-filament/2009/1 "2018-02-02T09:56:07Z")

</div>

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

Hi,  
I was wondering if there is a possibility/ a module with which I can calculate the actual length of a curved line /filament. As far as I’ve experienced the “ruler” tool only gives back the length of a straight line.

Thank you!

---

<div class="post-metadata">

**Author:** ![AnFr](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@AnFr](https://discourse.slicer.org/u/AnFr)\
**Post date:** [February 2, 2018, 12:28pm UTC](https://discourse.slicer.org/t/filament-trace-length-of-a-curved-filament/2009/2 "2018-02-02T12:28:45Z")

</div>

I found the extension “CurveMaker” that can do this.  
([https://www.slicer.org/wiki/Documentation/4.8/Extensions/CurveMaker](https://www.slicer.org/wiki/Documentation/4.8/Extensions/CurveMaker))

However, i would like something that works with less pre-work (placing fiducials along the curve) / automatically. So if someone has an idea, it would be highly appreciated.

---

<div class="post-metadata">

**Author:** ![Frederic](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/frederic/32/4907_2.png) [@Frederic](https://discourse.slicer.org/u/Frederic)\
**Post date:** [February 2, 2018, 12:51pm UTC](https://discourse.slicer.org/t/filament-trace-length-of-a-curved-filament/2009/3 "2018-02-02T12:51:39Z")

</div>

Hi.  
I have developed a new extension of 3dslicer that make that you want. However, my institution desire first that I value it by an article.  
When do you want calculate your filament trace?  
Since then, this [topic](https://discourse.slicer.org/t/calculate-a-scalp-to-scalp-distance/1141/51) could help you.  
Best.

---

<div class="post-metadata">

**Author:** ![AnFr](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@AnFr](https://discourse.slicer.org/u/AnFr)\
**Post date:** [February 2, 2018, 1:28pm UTC](https://discourse.slicer.org/t/filament-trace-length-of-a-curved-filament/2009/4 "2018-02-02T13:28:29Z")

</div>

Thank you for the tip.  
I am on it right now but since that project has no priority it can wait.  
I can just work with CurveMaker until your extension will be released.

Thank you!

---

<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:** [February 2, 2018, 1:55pm UTC](https://discourse.slicer.org/t/filament-trace-length-of-a-curved-filament/2009/5 "2018-02-02T13:55:11Z")

</div>

If you can segment the filament (if it’s darker or lighter than it’s surroundings then simple Thresholding in Segment Editor module will do) then you can use Extract Skeleton module to create a markup list of the centerline automatically. This requires latest nightly version of Slicer, not yet in 4.8.1.
