Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardcoded filtering of short streamlines is a problem #17

Open
emanuele opened this issue Jan 9, 2015 · 1 comment
Open

hardcoded filtering of short streamlines is a problem #17

emanuele opened this issue Jan 9, 2015 · 1 comment

Comments

@emanuele
Copy link
Member

emanuele commented Jan 9, 2015

In tractome.py there is an hardcoded filter to remove short streamlines. First of all it is quite meaningless per se. Moreover it make it pretty difficult to reuse the saved segmentations in other code, because a set of unexpected steps must be done in order to use the correct streamlines IDs, namely:

  • when loading a .trk tractography with nibabel it is essential to specify points_space='voxel'
  • compute the length of each streamline with dipy.tracking.metrics.length
  • keep only streamlines whose length is >= 15.
@emanuele emanuele changed the title hardcoded filtering short streamlines is a problem hardcoded filtering of short streamlines is a problem Jan 9, 2015
@emanuele
Copy link
Member Author

Here is a gist to load .trk files as tractome does in this moment. It may be useful for loading segmentations outside tractome: https://gist.github.com/emanuele/b1ffb8edeeaee8b5b8f4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant