Filter löschen
Filter löschen

convert .mat file into nifti

99 Ansichten (letzte 30 Tage)
Mina Yanny
Mina Yanny am 5 Mai 2022
Kommentiert: Abhinav am 16 Jan. 2023
Hi all,
I have matfiles that are just arrays of small numbers. I want to convert them into nifti files. any suggesstion on how to do that? am i doing it correctly and am i supposed to choose t1? also is there a way to convert more that one file at at time?
  1 Kommentar
Abhinav
Abhinav am 16 Jan. 2023
Hi Mina
To convert .mat file into NIFTI, you would first need to build a NIFTI structure from the 3D matrix, and then save the NIFTI structure.
Something like this:
nii_img = make_nii(t1);
save_nii(nii_img, 't1.nii');
Refer to the following documention to learn more about NIFTI structure

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Simulation, Tuning, and Visualization finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by