Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Mar
Mar el 13 de Nov. de 2018
Editada: zahra ghadery el 10 de Sept. de 2020
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 comentario
zahra ghadery
zahra ghadery el 10 de Sept. de 2020
Editada: zahra ghadery el 10 de Sept. de 2020
did you understand?
i have a same problem
please help me

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MRI en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by