-
Notifications
You must be signed in to change notification settings - Fork 429
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
WIP - NF - Tracking with Initial Directions and other tracking parameters #1627
Conversation
Hello @gabknight, Thank you for updating ! Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on January 17, 2019 at 13:39 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #1627 +/- ##
==========================================
+ Coverage 87.32% 90.62% +3.29%
==========================================
Files 245 234 -11
Lines 32148 28441 -3707
Branches 3493 3018 -475
==========================================
- Hits 28073 25774 -2299
+ Misses 3242 2049 -1193
+ Partials 833 618 -215
Continue to review full report at Codecov.
|
@StongeEtienne, do you think those tracking parameters will do for your future mesh seeding integration? |
@gabknight I will soon test them, and see if there is things to be changed/improved, |
@gabknight I was checking your code and I realized you are importing HemiSphere but you are not using it. Can you please check that? |
What is the status of this PR @gabknight @StongeEtienne? |
This needs a bit of work and not required for the next release. let keep this for Dipy 1.1 |
Ok Sounds like plan. Thank you for the feedback. |
WIP - it needs a first review by @StongeEtienne and @jchoude. Does this will do for SET?
The aim of this PR is to add three new optional parameters to
LocalTracking
:initial_directions
: specify the initial direction for tractography to follow at the initial seed position. Ifinitial_directions
isNone
(default),LocalTracking
callsDirectionGetter.initial_direction(seed_position)
to get the initial directions (current behavior). This functions return the list of peak at the seed position. In a similar fashion,initial_directions
contains a list of directions for every seed positions.unidirectional
: perform the tractography in a single direction from the seeding position, instead of both (default). This is especially useful in conjunction withinitial_direction
, where, for instance, those initial directions could be pointing inward from the cortical surface or outward from subcortical regions.randomized_forward_direction
: Useful in conjunction withunidirectional
, this parameter allows the tracking to start randomly either in the initial direction or in its opposite direction. Ifundirectional is False
, this parameter will only reverse the points order of some streamlines.