Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
8.5.19. nilearn.image.swap_img_hemispheres¶
nilearn.image.
swap_img_hemispheres
(img)¶Performs swapping of hemispheres in the indicated NIfTI image.
Use case: synchronizing ROIs across hemispheres.
- Parameters
- imgNiimg-like object
Images to swap (see http://nilearn.github.io/manipulating_images/input_output.html for a detailed description of the valid input types).
- Returns
Nifti1Image
Hemispherically swapped image.
Notes
Assumes that the image is sagitally aligned.
Should be used with caution (confusion might be caused with radio/neuro conventions)
Note that this does not require a change of the affine matrix.