方法:在matlab命令行中使用gzip
函数。
gzip('niftifilename.nii') % this will return niftifilename.nii.gz
gzip('*.nii') % for multiple nii files to create one .nii.gz
Reference:https://stackoverflow.com/questions/36271561/how-to-convert-nii-to-nii-gz-file
20190628