User Tools

Site Tools


dcm2nii

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dcm2nii [2011/04/14 20:01]
jochen created
dcm2nii [2011/04/14 20:03] (current)
jochen
Line 28: Line 28:
 ===== Usage notes ===== ===== Usage notes =====
 In case you have multiple sessions of data in the source folder, these files must have a unique filename pattern per session, so that by re-setting the ''​.dcmpat''​ field you can selectively choose which files to import! In case you have multiple sessions of data in the source folder, these files must have a unique filename pattern per session, so that by re-setting the ''​.dcmpat''​ field you can selectively choose which files to import!
 +
 +===== Usage example =====
 +This code imports the DICOM files contained in one folder into a different folder:
 +
 +<code matlab dcm2nii_ex.m>​% import DICOM images
 +% - from /​Data/​Study/​Subjects/​s04/​func/​raw/​192_r1
 +% - into /​Data/​Study/​Subjects/​s04/​func/​prepro/​r01_192
 +% - save resulting images as .nii files
 +dcm2nii( ...
 +    '/​Data/​Study/​Subjects/​s04/​func/​raw/​192_r1',​ ...
 +    '/​Data/​Study/​Subjects/​s04/​func/​prepro/​r01_192',​ ...
 +    struct('​format',​ '​nii'​));</​code>​
dcm2nii.txt ยท Last modified: 2011/04/14 20:03 by jochen