Input/Output for NRRD file format in Matlab