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
Refine ANTs brain mask with FreeSurfer #231
Comments
We inject the ANTs brainmask before aparc occurs. |
Well, I suppose as long as it only ever fails by including too much and never too little, we can use it. |
Yes - it would only help in cases where ANTs includes parts of dura/skull.
…On Mon, Apr 3, 2017 at 5:15 PM, Chris Markiewicz ***@***.***> wrote:
Well, I suppose as long as it only ever fails by including too much and
never too little, we can use it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/poldracklab/fmriprep/issues/431#issuecomment-291336089>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOkpy5Yf6l3gtLdO7fkMXKyhzIcGUR5ks5rsYuxgaJpZM4MyOpv>
.
|
So the idea is to continue to inject ANTs as a prior, and then let a binarized That should be pretty easy. I assume we don't want to turn around and use the updated mask to fix |
Yes that's the idea (without rerunning recon-all). The refined mask
could be used to improve MNI coregistration and FAST tissue segmentation
(although wether we should use FAST if we have freesurfer segmentation is a
nother issues...)
…On Mon, Apr 3, 2017 at 5:23 PM, Chris Markiewicz ***@***.***> wrote:
So the idea is to continue to inject ANTs as a prior, and then let a
binarized aparc be the final mask we use?
That should be pretty easy. I assume we don't want to turn around and use
the updated mask to fix recon-all.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/poldracklab/fmriprep/issues/431#issuecomment-291339447>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOkp0es_bOK9O2tpAFTopfXEoiaK29xks5rsY2TgaJpZM4MyOpv>
.
|
So I've tried this last night and the problem I run into is that the aparc based mask is too tight and needs to be dilated. However, when you dilate it (even when using one voxel) the result is worse (includes more non-brain) than the initial ANTs mask. |
What about setting the mask to |
I'd bet @binarybottle's opinion on this will be very valuable to make a decision here. Arno, can we ask you what do you think about FreeSurfer's and ANTS' brain masks? And how to combine them? |
Thanks for asking! Because I have also found FreeSurfer and ANTs to under- and over-segment as mentioned above, I wrote the following function to try and reconcile the two: The docstring says::
|
Well, I would not include MP2RAGE here. We could try to generate a template for MP2RAGE adding noise around the head. |
Alright, I think we are getting to something functional on nipreps/fmriprep#912. There is a combination of Arno's ideas and some new. The problem I could not think a solution for is when ANTs cuts out the outermost bend of some gyri. That happens from time to time. |
For the MP2RAGE case it might be worth trying one of the inversion images instead of the T1w image. See poldracklab/pydeface#15 for more insights. |
Sometimes ANTs brainmasks fails

ds114 subject 01
However we can use the refined brainmask obtained from the FreeSurfer reconstruction (like here: https://github.com/BIDS-Apps/nipypelines/blob/master/run.py#L401)
The text was updated successfully, but these errors were encountered: