Data I/O

MERLIN includes several convenience functions for data input and output. Since pyMERLIN is tightly integrated with RIESLING, functions for reading k-space and image .h5 files have been included.

ITK functionality

pymerlin.dataIO.create_image

Create an ITK image object from array

File reading and manipulation

pymerlin.dataIO.parse_fname

Parse the filename from a NIFTI file

pymerlin.dataIO.arg_check_h5

Check h5 file ending

pymerlin.dataIO.arg_check_nii

Check nifti file ending

pymerlin.dataIO.check_filename

Check if file exists

pymerlin.dataIO.read_image_h5

Read image h5 file

pymerlin.dataIO.read_radial_h5

Read radial k-space h5 file

pymerlin.dataIO.read_ismrmrd

Read ISMRM Raw Data format

pymerlin.dataIO.make_3D

Extract first 3D volume from 4D dataset