DCM2NII(1) User Commands DCM2NII(1)NAME
dcm2nii - convert DICOM or PAR/REC image into the NIfTI format
SYNOPSIS
dcm2nii <options> <sourcenames>
OPTIONS -a Anonymize [remove identifying information]: Y,N = Y
-b load settings from specified inifile, e.g. '-b /etc/mricron.ini'
-c Collapse input folders: Y,N = N
-d Date in filename [filename.dcm -> 20061230122032.nii]: Y,N = Y
-e events (series/acq) in filename [filename.dcm -> s002a003.nii]: Y,N = Y
-f Source filename [e.g. filename.par -> filename.nii]: Y,N = Y
-g gzip output, filename.nii.gz [ignored if '-n n']: Y,N = Y
-i ID in filename [filename.dcm -> johndoe.nii]: Y,N = Y
-n output .nii file [if no, create .hdr/.img pair]: Y,N = Y
-o Output Directory, e.g. '/tmp' (if unspecified, source directory is used)
-p Protocol in filename [filename.dcm -> TFE_T1.nii]: Y,N = Y
-r Reorient image to nearest orthogonal: Y,N
-s SPM2/Analyze not SPM5/NIfTI [ignored if '-n y']: Y,N = N
-v Convert every image in the directory: Y,N = Y
-x Reorient and crop 3D NIfTI images: Y,N = N
You can also set defaults by editing /home/michael/.dcm2nii/dcm2nii.ini
EXAMPLES
dcm2nii -a y /home/joe/Documents/dcm/IM_0116
AUTHOR
dcm2nii was written by Chris Rorden.
This manual page was written by Michael Hanke <michael.hanke@gmail.com>, for the Debian project (but may be used by others).
SEE ALSO mricron(1)
MRIcron Homepage: http://www.cabiatl.com/mricro/mricron/
Michael Hanke April 2010 DCM2NII(1)
Check Out this Related Man Page
NIFTI1_TEST(1) User Commands NIFTI1_TEST(1)NAME
nifti1_test - NIfTI file conversion
SYNOPSIS
nifti1_test [-n2|-n1|-na|-a2] infile [prefix]
DESCRIPTION
Converts NIfTI files from and to ANALYZE 7.5 format, compressed or uncompressed NIfTI files (pair or single file). Additionally one can
convert NIfTI headers into ASCII format for convenient manipulation of header data.
If prefix is given, then the options mean:
-a2 ==> write an ANALYZE 7.5 file pair: prefix.hdr/prefix.img
-n2 ==> write a NIFTI-1 file pair: prefix.hdr/prefix.img
-n1 ==> write a NIFTI-1 single file: prefix.nii
-na ==> write a NIFTI-1 ASCII+binary file: prefix.nia
-za2 => write an ANALYZE 7.5 file pair:
prefix.hdr.gz/prefix.img.gz
-zn2 => write a NIFTI-1 file pair: prefix.hdr.gz/prefix.img.gz
-zn1 => write a NIFTI-1 single file: prefix.nii.gz
-zna => write a NIFTI-1 ASCII+binary file: prefix.nia.gz
The default is '-n1'.
If prefix is not given, then the header info from infile file is printed to stdout.
Please note that the '.nia' format is NOT part of the NIFTI-1 specification, but is provided mostly for ease of visualization (e.g., you
can edit a .nia file and change some header fields, then rewrite it as .nii)
SEE ALSO libnifti(1), nifti_tool(1), nifti_stats(1).
Homepage: http://niftilib.sourceforge.net
AUTHOR
The NIfTI libraries were written by the NIfTI Data Format Working Group (DFWG, http://nifti.nimh.nih.gov/ ).
This manual page was written by Michael Hanke <michael.hanke@gmail.com>, for the Debian project (but may be used by others).
Michael Hanke September 2007 NIFTI1_TEST(1)
Hi All...
The code i have written is
if(filename)
remove_files (filename);
and my remove function is
=========================================
void remove_files(char *rf)
{
if (remove(rf)==0)
printf("(%d) Deleting %s\n",getpid(), rf); // JC 10/24/2003
... (2 Replies)
I am trying to write a script that would let me run a command in a remote server using ssh.
scriptA: (dcm2nii is a command that only works on the other server)
dcm2nii a b c
scriptB: (I run this one on the current server)
ssh -X otherserver /home/abc/Desktop/scriptA
But when I do ... (2 Replies)
Hi,
Can anyone explain what is going on here:
michael-browns-powerbook-g4-15:~ msb65$ start=-1
michael-browns-powerbook-g4-15:~ msb65$ stop=1
michael-browns-powerbook-g4-15:~ msb65$ if ; then echo hello; fi
-bash: ; then echo hello; fi
hello
Are you not allowed to compare negative... (6 Replies)
I have created a nawk program and passing a file as an input parameter.
The filename will be /home/dir/ksh/test.out
I need to extract the filename alone. Is there anyway to get this ?
Input : /home/dir/ksh/test.out
Output -1: test.out
Output -2 : t
Input :... (1 Reply)
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
I have a number of files in directories labeled like this:
/Data/tr_gray/tr_DTI/dti_FA.nii.gz
(the brackets here represent a range of number that the files are labeled with)
I need to rename each dti_FA.nii.gz file according to the name of the folder it resides in. For example, the file ... (3 Replies)
Hello,
I have the files(#600) like as..
0001.dcm
0002.dcm
0003.dcm
............
..........
0600.dcm
I would like to move these files to two different folder, say "a" and "b" folders. I want to make that the first five dcm files(0001.dcm, 0002.dcm, .... 0005.dcm) is moved to "a" folder,... (4 Replies)
Hello all,
I have several directories with a sequence of files like this
IM-0001-0001.dcm
IM-0001-0002.dcm
IM-0001-0003.dcm
IM-0001-0004.dcm
IM-0001-0005.dcm
I would like to print out the name of the file that is missing.
I currently have the following ineffecient way to do this... (4 Replies)
I want to remove the beginning and end of a filename and keep the middle.
E.g. tempblast7114_1#21110932.out_ the current filename
I want it to be called 7114_1#21 only
How would I do this?? (3 Replies)
hi im new to linux and was just wondering if some 1 could help me
i have folders with T.V. series in them and i would like to delete part of the filename
e.g.
(series name).s01e01.(episode name)
(series name).s01e02.(episode name)
(series name).s01e03.(episode name)
(series... (4 Replies)
Hello,
I work in Ubuntu 16.04, I am new to Bash and something is wrong with my script, please help.
I have a few hundreds of subjects data (like subj003.nii.gz, subj012.nii.gz etc. up to subj567.nii.gz) in a directory /usr/afewmoredirectories/subjects.
I may run for each subject a command... (5 Replies)