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

NF - added anatomically-constrained tractography (ACT) tissue classifier #414

Conversation

gabknight
Copy link
Contributor

Anatomically-Constrained Tractography (ACT) from Smith et al. (neuroimage 2012).

I didn't tested it yet with actual white/grey/csf partial volume fraction maps. I will run FSL/Fast on the B0 image of the stanford_hardi dataset to get some maps. Maybe we could added those image to the dataset at some point.

Do we have a T1 image of the stanford_hardi brain?

@arokem
Copy link
Contributor

arokem commented Sep 9, 2014

First of all - I haven't looked in any detail, but generally this looks
awesome.

Second - yes - we have T1's and rather good segmentations on that brain.
I'm having a bit of a hectic week, and traveling, so I can't help much. In
the meanwhile look and see whether the data that Bago used in this tutorial
is sufficient (it uses some Freesurfer labels on this brain):

http://nipy.org/dipy/examples_built/streamline_tools.html#example-streamline-tools

The pertinent lines are:

from dipy.data import read_stanford_labels
hardi_img, gtab, labels_img = read_stanford_labels()

Otherwise - I can help you get all of the data, when I am back at my desk
on Thursday.

On Tue, Sep 9, 2014 at 4:18 PM, Gabriel Girard notifications@github.com
wrote:

Anatomically-Constrained Tractography (ACT) from Smith et al. (neuroimage
2012).

I didn't tested it yet with actual white/grey/csf partial volume fraction
maps. I will run FSL/Fast on the B0 image of the stanford_hardi dataset to
get some maps. Maybe we could added those image to the dataset at some
point.

Do we have a T1 image of the stanford_hardi brain?

You can merge this Pull Request by running

git pull https://github.com/gabknight/dipy add_anatomical_stopping_criteria

Or view, comment on, or merge it at:

#414
Commit Summary

  • NF - added anatomically-constrained tractography (ACT) tissue
    classifier

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#414.

@Garyfallidis Garyfallidis mentioned this pull request Sep 14, 2014
@arokem
Copy link
Contributor

arokem commented Sep 21, 2014

Hey @gabknight - thought I would circle back here to check: do you need any help with these data?

double threshold, interp_out_double[1]
double[::1] interp_out_view
double[:, :, :] metric_map
double interp_out_double[1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to make this a MemoryView? Won't double *interp_out_double do?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC This attribute is passed to a function which takes memory views as inputs. A pointer cannot be used here because pointers have not shape info and cannot be coerced into memory-views. An c array does work, but when I profiled it, I noticed that coercing a c array into a memory view adds a lot of overhead. If we can just do it once up front, it makes a noticeable difference in performance.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, I was just curious (one doesn't normally see arrays of 1).

@MrBago MrBago force-pushed the tracking_redesign branch 2 times, most recently from 786f997 to 1e65e56 Compare September 24, 2014 00:33
@MrBago
Copy link
Contributor

MrBago commented Sep 24, 2014

Sorry for breaking this PR, I rebased tracking_redesign on the latest master so travis could start testing it.

I went ahead and rebased this PR on top of that because it was very easy:

https://github.com/MrBago/dipy/tree/nf_act

@gabknight gabknight force-pushed the add_anatomical_stopping_criteria branch 2 times, most recently from d58f779 to baa866b Compare October 3, 2014 19:11
@gabknight
Copy link
Contributor Author

Thanks all for your comments. I addressed them. I also added a binary tissue classifier. It is useful if you know where you want to track. e.g. in the tractometer setup or using wm mask from an atlas.

I putted an example in newapi.py. The next thing to do in this PR is to add clear simple examples for the various TC.


voxel[0] = int(point[0])
voxel[1] = int(point[1])
voxel[2] = int(point[2])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be int(round(point))?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. thanks. This made me realized that new tc aren't tested well. I will push testing code..

@gabknight
Copy link
Contributor Author

@MrBago I added support for various dtype in TissueClassifer. Let me know what you think.

I also added tests for tissue classifiers.

@gabknight
Copy link
Contributor Author

@Garyfallidis do you have any clue on what is happening with Travis here?

@Garyfallidis
Copy link
Contributor

It seems that Travis commited suicide. Lol. @arokem, @matthew-brett any ideas?

@arokem
Copy link
Contributor

arokem commented Oct 9, 2014

Rebase on master. This : #437 should
resolve your issue.

Ariel

On Thu, Oct 9, 2014 at 10:20 AM, Eleftherios Garyfallidis <
notifications@github.com> wrote:

It seems that Travis commited suicide. Lol. @arokem
https://github.com/arokem, @matthew-brett
https://github.com/matthew-brett any ideas?


Reply to this email directly or view it on GitHub
#414 (comment).

@gabknight gabknight force-pushed the add_anatomical_stopping_criteria branch from 61862ab to 8ec8737 Compare October 9, 2014 19:01
@gabknight
Copy link
Contributor Author

thx! @MrBago can you rebase PR #341 on master, and tracking_redesign on PR #341?

@gabknight gabknight force-pushed the add_anatomical_stopping_criteria branch from 8ec8737 to 6435efe Compare October 9, 2014 20:13
Almost there - still need to deal with that hard-coded minimum for cases where
all the signal is 0. Need to think about that.
@arokem
Copy link
Contributor

arokem commented Jan 15, 2015

@gabknight - where does this stand? Can I help with the WM/GM segmentation? I do have a higher resolution segmentation of the stanford_hardi brain that I can share, if that's helpful. Also, when you get a chance, please rebase this on top of master?

@gabknight
Copy link
Contributor Author

This PR was on nipy:tracking_redesig. I rebased on master and created PR #565 on nipy:master.

This PR can be close.

@arokem
Copy link
Contributor

arokem commented Jan 21, 2015

Done.

@arokem arokem closed this Jan 21, 2015
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

Successfully merging this pull request may close these issues.