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.4. nilearn.image.copy_img

nilearn.image.copy_img(img)

Copy an image to a nibabel.Nifti1Image.

Parameters
img: image

nibabel SpatialImage object to copy.

Returns
img_copy: image

copy of input (data, affine and header)