4acaccc303fa97885355c84e9146b7bc45203443,doc/examples/tracking_introduction_eudx.py,,,#,31

Before Change


import numpy as np

seed_mask = (labels == 2)
seeds = utils.seeds_from_mask(seed_mask, density=[2, 2, 2], affine=np.eye(4))


Finally, we can bring it all together using ``LocalTracking``, performing Using

After Change


from dipy.io.stateful_tractogram import Space, StatefulTractogram
from dipy.io.streamline import save_trk

sft = StatefulTractogram(streamlines, hardi_img, Space.RASMM)
save_trk(sft, "tractogram_EuDX.trk", streamlines)


References
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nipy/dipy
Commit Name: 4acaccc303fa97885355c84e9146b7bc45203443
Time: 2019-07-26
Author: francois.m.rheault@usherbrooke.ca
File Name: doc/examples/tracking_introduction_eudx.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: 701869c01b62e0eaba93af96557cda182d52dc65
Time: 2019-07-26
Author: francois.m.rheault@usherbrooke.ca
File Name: dipy/tracking/tests/test_life.py
Class Name:
Method Name: test_fit_data


Project Name: nipy/dipy
Commit Name: 4acaccc303fa97885355c84e9146b7bc45203443
Time: 2019-07-26
Author: francois.m.rheault@usherbrooke.ca
File Name: doc/examples/streamline_tools.py
Class Name:
Method Name: