open-discussion
open-discussion > RE: nii to dicom conversion
Nov 29, 2016 10:11 AM | Allen Waggoner
RE: nii to dicom conversion
Originally posted by Tayyab Ateeq:
Matlab does not have any native routines for reading nifti as far as I know, but many people have written routine for doing this. In you search for nifti in the Matlab fileexchange, you will get many hits. This one seems popular
http://www.mathworks.com/matlabcentral/fileexchange/8797-tools-for-nifti-and-analyze-image
Also Freesurfer (http://freesurfer.net/) comes with a matlab library, which among many other things, includes routines for both reading and writing nifti files.
Nifti is the file format that SPM (http://www.fil.ion.ucl.ac.uk/spm/) uses, so there are routines within SPM that can read nifti files.
mrTools (http://gru.stanford.edu/doku.php/mrtools...) also used the nifti format and therefore includes tools for reading nifti files.
I am sure the must be many other routines available as well. For that matter, it should not take too many lines of code to write a simple nifti reader.
mrTools requires Optimization, Statistics and Image Processing toolboxes. SPM does not require any toolboxes. I am not sure about the other options I listed.
To creating the dicom files in Matlab, you need the image processing toolbox
Good Luck
Ok. I tried to do
it in MATLAB but failed. I don't think that basic support to
manipulate NIFTI files is provided in MATLAB thats why I shifted to
other tools like xmedcon and ITK-Snap to do it manually. Maybe I am
wrong, if you think it is possible in MATLAB then plz recommend me
some links. Many Thanks
Matlab does not have any native routines for reading nifti as far as I know, but many people have written routine for doing this. In you search for nifti in the Matlab fileexchange, you will get many hits. This one seems popular
http://www.mathworks.com/matlabcentral/fileexchange/8797-tools-for-nifti-and-analyze-image
Also Freesurfer (http://freesurfer.net/) comes with a matlab library, which among many other things, includes routines for both reading and writing nifti files.
Nifti is the file format that SPM (http://www.fil.ion.ucl.ac.uk/spm/) uses, so there are routines within SPM that can read nifti files.
mrTools (http://gru.stanford.edu/doku.php/mrtools...) also used the nifti format and therefore includes tools for reading nifti files.
I am sure the must be many other routines available as well. For that matter, it should not take too many lines of code to write a simple nifti reader.
mrTools requires Optimization, Statistics and Image Processing toolboxes. SPM does not require any toolboxes. I am not sure about the other options I listed.
To creating the dicom files in Matlab, you need the image processing toolbox
Good Luck
Threaded View
| Title | Author | Date |
|---|---|---|
| Tayyab Ateeq | Nov 25, 2016 | |
| Allen Waggoner | Nov 25, 2016 | |
| Tayyab Ateeq | Nov 25, 2016 | |
| Allen Waggoner | Nov 28, 2016 | |
| Tayyab Ateeq | Nov 28, 2016 | |
| Allen Waggoner | Nov 28, 2016 | |
| Tayyab Ateeq | Nov 28, 2016 | |
| Allen Waggoner | Nov 29, 2016 | |
| Tayyab Ateeq | Nov 29, 2016 | |
| Allen Waggoner | Nov 29, 2016 | |
| Tayyab Ateeq | Dec 6, 2016 | |
