# Fibre length measurements

**URL:** <https://discourse.slicer.org/t/fibre-length-measurements/23676>\
**Category:** SlicerDMRI\
**Created:** [June 1, 2022, 6:47pm UTC](https://discourse.slicer.org/t/fibre-length-measurements/23676 "2022-06-01T18:47:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![njeffery](https://avatars.discourse-cdn.com/v4/letter/n/8797f3/32.png) [@njeffery](https://discourse.slicer.org/u/njeffery)\
**Post date:** [June 1, 2022, 6:47pm UTC](https://discourse.slicer.org/t/fibre-length-measurements/23676/1 "2022-06-01T18:47:45Z")

</div>

![BundleNJ](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/8/0830d648bec096afe29555a95fa4c06049600d14.jpeg)

Hi 3Dslicer community

Hoping someone has a solution out there. I have a vtk file with about 300 fibres in it. I need the length of each fibre. Seems a trivial task but I cannot find a solution.

Diffusion\>quantify\>tractography measurements will give the mean but there are lots of outliers, so its not representative. Need the median.

PS. I have tried the whitematteranalysis as well and cannot get it to work.

Do I need to use a different DTI package?

Any suggestions greatly appreciated.  
cheers  
NJ

Operating system:Windows 10  
Slicer version:5.02  
Expected behavior:  
Actual behavior:

---

<div class="post-metadata">

**Author:** ![zhangfanmark](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhangfanmark/32/4451_2.png) [@zhangfanmark](https://discourse.slicer.org/u/zhangfanmark)\
**Post date:** [June 1, 2022, 7:03pm UTC](https://discourse.slicer.org/t/fibre-length-measurements/23676/2 "2022-06-01T19:03:42Z")

</div>

Hi @njeffery

You can WMA to do this. Here is the function:

> <https://github.com/SlicerDMRI/whitematteranalysis/blob/8dc9674e125971ff039b38a1911444550049cf0e/whitematteranalysis/filter.py#L99>

It seems you have tried WMA. Wonder what you meant that you cannot get it to work. Is it an installation problem?

Thanks,  
Fan
