How to convert a nifti file to a .dat file?

조회 수: 2 (최근 30일)
Mar
Mar 2018년 11월 13일
편집: zahra ghadery 2020년 9월 10일
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
zahra ghadery
zahra ghadery 2020년 9월 10일
편집: zahra ghadery 2020년 9월 10일
did you understand?
i have a same problem
please help me

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Neuroimaging에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by