Hi,
I have a 4D nifti file with dimensions [256, 256, 36, 99]. I want to convert this nifti file to a .dat file.
I did the following but seems that the dimensions are not the same.
%load nifti data
nifti_data = load_untouch_nii('/Users/data.nii');
%convert data to doubles
data=double(nifti_data.img);
%write data to .dat file
dlmwrite('data.dat', '')
Does anybody know how to write a nifti file to a .dat file but keep the dimensions the same?
1 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/429613-how-to-convert-a-nifti-file-to-a-dat-file#comment_1003486
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/429613-how-to-convert-a-nifti-file-to-a-dat-file#comment_1003486
サインインしてコメントする。