NAME
minc_modify_header-diff.pl
- adds diffusion information (b values and directions) to a minc file
SYNOPSIS
minc_modify_header-diff.pl [<options>] <infile>
DESCRIPTION
Minc_modify_header-diff will add diffusion information to the minc header of a 4D volume of diffusion weigthed images. The new header should have the following fields:
acquisition:bvalues=0, 0,..(# of b=0 images), b, b, ...(# of directions) acquisition:direction_x=0, 0,...(# of b=0 images), x1, x2, x3,...(# of directions) acquisition:direction_y=0, 0,...(# of b=0 images), y1, y2, y3,...(# of directions) acquisition:direction_z=0, 0,...(# of b=0 images), z1, z2, z3,...(# of directions)
Diffusion gradients table
This function expects the gradient directions to be listed in a specific format (you might have to make some modifications if you would like to use directions tables other than that for the MGH sequence (this is a WIP...)):
x y z
Example 1.0000000000 0.0000000000 0.0000000000 0.5433816796 -0.8179017387 -0.1891377699 0.5433816809 0.7958175446 -0.2672279633 ...OPTIONS
-diffdirs list of diffusion gradient directions (formatted like ~ilana/DTI_docs/MGH/(MGHdiffgrad/diffgrad*.txt or gradient_mgh_dti/gradient_mgh_dti*.gdt)) -bval b value -num_b0 number of b=0 images -coord_system coordinate system of vectors (xyz) or (prs) [default: xyz] Generic options -help: Print summary of command-line options and abort.EXAMPLES
For an MGH acquisition with 10 b=0 images, 99 directions and b=1000:
minc_modify_header-diff.pl -diffdirs MGHdiffgrad/diffgrad99.txt -bval 1000 -num_b0 10 infile.mnc
Ilana LEPPERT
created: 21st March 2007
last modified: 21st March 2007