Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dcm2nii(1) [debian man page]

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)
Man Page

13 More Discussions You Might Find Interesting

1. Programming

Zero bye file not deleting

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)
Discussion started by: arunkumar_mca
2 Replies

2. UNIX for Dummies Questions & Answers

orchadmin

what does "orchadmin rm filename" does ?? (1 Reply)
Discussion started by: risshanth
1 Replies

3. Shell Programming and Scripting

Running a Script in a Remote server

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)
Discussion started by: ZeroGPX
2 Replies

4. UNIX for Dummies Questions & Answers

Negative Numbers and If Statements

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)
Discussion started by: msb65
6 Replies

5. UNIX for Dummies Questions & Answers

Filename Manipulation in AWK

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)
Discussion started by: sivakumar.rj
1 Replies

6. Shell Programming and Scripting

Assigning a specific format to a specific column in a text file using awk and printf

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)
Discussion started by: goodbenito
2 Replies

7. Shell Programming and Scripting

retaining only the second line with a pattern and deleting all others

Hi, I have a file: 5 T1AxialPremosaic ok 512 448 23 1 284000-000005-000001.dcm 6 T2_SPACE ok 256 256 176 1 465000-000006-000001.dcm 7 FLAIRmosaic ok 512 432 23 1 748000-000007-000001.dcm 8 T2_SPACE ok 256 256 1 171000-000008-000001.dcm 9 T2_SPACE ok 256 256 1 218000-000009-000001.dcm... (5 Replies)
Discussion started by: goodbenito
5 Replies

8. UNIX for Dummies Questions & Answers

rename files based on their respective directory name

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)
Discussion started by: tk0034
3 Replies

9. Shell Programming and Scripting

shell

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)
Discussion started by: s00saa
4 Replies

10. Shell Programming and Scripting

print out missing files in a sequence

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)
Discussion started by: avatar_007
4 Replies

11. Shell Programming and Scripting

Remove parts from a filename

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)
Discussion started by: avonm
3 Replies

12. UNIX for Dummies Questions & Answers

Multiple file rename

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)
Discussion started by: stevemcd1990
4 Replies

13. Shell Programming and Scripting

Ubuntu 16 Bash strange output

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)
Discussion started by: lim-lim
5 Replies