tedana.io.load_ref_img

load_ref_img(data, n_echos)[source]

Load data using nibabel’s load function and convert to NIfTI1 format.

Parameters:
  • data (list of str) – List of paths to input files

  • n_echos (int) – Number of echoes in the data

Returns:

ref_img (nibabel.Nifti1Image) – Reference image in NIfTI1 format

Notes

Images are converted to NIfTI1 format to ensure compatibility with nilearn functions.