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

Change default output space to MNI152NLin2009cAsym #153

Open
mgxd opened this issue Nov 11, 2021 · 3 comments
Open

Change default output space to MNI152NLin2009cAsym #153

mgxd opened this issue Nov 11, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@mgxd
Copy link
Collaborator

mgxd commented Nov 11, 2021

A short summary of what you would like to see in NiBabies.

To convene with fMRIPrep's outputs

Do you have any interest in helping implement the feature?

Yes!

Add any additional information or context about the request here.

No response

@mgxd mgxd added the enhancement New feature or request label Nov 11, 2021
@mgxd
Copy link
Collaborator Author

mgxd commented Dec 1, 2021

From MNIInfant docs:

NOTE that these templates are smaller then standard MNI-152 template, so if you use them to perform registration in stereotaxic space it will be different coordinate system. It is possible to transform results to MNI-152 space by applying following scaling: 1.21988 in x direction, 1.23510 in y direction and 1.28654 in z direction. Also, you can apply transformation defined in nihpd_asym_44–60_tal.xfm file.

@audreymhoughton
Copy link

Is there an ETA for this enhancement?

This is needed for compatibility with XCP, and therefore, CABINET (HBCD MRI processing).

Thanks!

@effigies
Copy link
Member

effigies commented Dec 9, 2021

IIRC I think the plan is to use space-MNI152 in the output filenames (checking in with Ted and Azeez), and the conversion should just be:

def scale_to_MNI152(img):
    affine = np.diag((1.21988, 1.23510, 1.28654, 1)) @ img.affine
    return img.__class__(img.dataobj, affine, img.header)

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

No branches or pull requests

3 participants