NAME
extract-diff-frames.pl - Extracts slab in time dimension of diffusion volume (along with diffusion info in header)
SYNOPSIS
concat-diff-header.pl [<infile1> ...] <outfile>
DESCRIPTION
extract-diff-frames.pl can be used to extract a slab in the time dimension of a diffusion volume, while concurrently extracting the appropriate list of diffusion bvalues and gradient directions. Extractions along other spatial directions can be done with mincreshape. Note that the diffusion information should already be included in each header of the input files, as done with minc_modify_header-diff.pl.
OPTIONS
Usage: extract-diff-frames.pl [...] extract-diff-frames.pl [-help] Summary of options: -clobber clobber existing file -noclobbe opposite of -clobber [default] -start Specifies corner of hyperslab (C conventions for indices) -count Specifies number of frames to read Generic options -help: Print summary of command-line options and abort.
EXAMPLES
Extract only the diffusion weighted images (i.e. those with b>0) from a 4D volume, for which the acquisition consisted of 10 b=0 images followed by 32 diffusion directions:
extract-diff-frames.pl -start 10 -count 32 infile.mnc infile-no-b0.mnc