# Filtering Tracks by Curvature

**URL:** <https://community.mrtrix.org/t/filtering-tracks-by-curvature/4285>\
**Category:** Uncategorized\
**Created:** [November 16, 2020, 7:00am UTC](https://community.mrtrix.org/t/filtering-tracks-by-curvature/4285 "2020-11-16T07:00:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![C.Eckert](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/c/90db22/32.png) [@C.Eckert](https://community.mrtrix.org/u/C.Eckert)\
**Post date:** [November 16, 2020, 7:00am UTC](https://community.mrtrix.org/t/filtering-tracks-by-curvature/4285/1 "2020-11-16T07:00:20Z")

</div>

Dear MRtrix Community,

I have done a whole-brain-tracking of my data, but since I’m only interested in the subcortical U-fibres, I’m looking for a way to filter these without using an anatomical mask. Is there any tool to filter tracks for instance by their curvature? Or does anyone have a better idea how I could achieve this?

Sincerely,  
Chris

---

<div class="post-metadata">

**Author:** ![rsmith](https://community.mrtrix.org/user_avatar/community.mrtrix.org/rsmith/32/2672_2.png) [@rsmith](https://community.mrtrix.org/u/rsmith)\
**Post date:** [November 22, 2020, 6:04am UTC](https://community.mrtrix.org/t/filtering-tracks-by-curvature/4285/2 "2020-11-22T06:04:34Z")

</div>

Welcome Chris!

I happen to have a similar interest at the current point in time, so have myself been thinking about how best to implement such functionality.

There’s currently a feature gap, in that:

- `tckedit` does not have the ability to directly calculate mean streamline curvature (or comparable measure) and then select streamlines based on such a measure;

- `tckmap` can calculate streamline mean curvature, but only in the context of mapping to a TWI;

- Even if you could perform some calculation elsewhere to classify streamlines based on whether you do or do not want to select them, `tckedit` does not have any mechanism by which you could provide such pre-determined information.

I’ve made some progress in altering the software capabilities and interface in order to broaden the scope of possibilities here, but it’s still in private development. So if anybody has any ideas or strong opinions on what they’d like to see in this domain, let me know. I’d also suggest looking at [this manuscript](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5689074/); I’ve been thinking about integrating that calculation or something comparable.

Cheers  
Rob

---

<div class="post-metadata">

**Author:** ![C.Eckert](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/c/90db22/32.png) [@C.Eckert](https://community.mrtrix.org/u/C.Eckert)\
**Post date:** [December 12, 2020, 2:33pm UTC](https://community.mrtrix.org/t/filtering-tracks-by-curvature/4285/3 "2020-12-12T14:33:01Z")

</div>

Hi Rob,

thanks for your answer.The support in this community is great.  
In the mean time I’ve found a (not so nice) way, to be able to edit a whole brain tracking to contain few fibres other than u-fibres, which I could share with you if you were interested?  
But I am looking forward to seeing your solution.  
Thank you again for the great support in this forum.

Cheers  
Chris
