AimsSubVolume: Carve a subvolume in the input volume

HELP: command help for AimsSubVolume

It can also be used to split a 4D volume into a series of 3D volumes.

DATA: data_for_aims/AimsSubVolume/diff_data.ima, diffusion volume of size [256, 256, 23, 22].

EXAMPLE 1: GET T2 VOLUME FROM DIFFUSION DATA. In order to get the first volume of the 4th dimension, which corresponds to a T2 volume, you can use the AimsSubVolume command in this way:

prompt%    
prompt% AimsSubVolume -i diff_data.ima -o t2.ima -t 0 -T 0
Input volume dimensions : 256 256 23 22
Output volume dimensions : 256 256 23 1
prompt%    

NOTE: concerning a volume of size [x, y, z, 3] has 3 time step, indices start at 0, so the time index must have a value between 0 and 2. This information can be read in the header file or into an anatomist browser.

EXAMPLE 2: GET THE FIRST 3 DIFFUSION VOLUMES FROM THE DIFFUSION DATA. In order to get the first 3 volumes of diffusion data only:

prompt% AimsSubVolume -i diff_data.ima -o vol1.ima vol2.ima vol3.ima -t 1 2 3 -T 1 2 3
Input volume dimensions : 256 256 23 22
Output volume dimensions : 256 256 23 1
Input volume dimensions : 256 256 23 22
Output volume dimensions : 256 256 23 1
Input volume dimensions : 256 256 23 22
Output volume dimensions : 256 256 23 1
prompt%

EXAMPLE 3: GET ALL DIFFUSION VOLUMES FROM DIFFUSION DATA. In order to remove the T2 data from diffusion data and to keep only the diffusion data:

prompt%% AimsSubVolume -i diff_data.ima -o diff.ima -t 1 -T 21
Input volume dimensions : 256 256 23 22
Output volume dimensions : 256 256 23 21
prompt%

EXAMPLE 4: SPLIT A 4D VOLUME INTO A SERIES OF 3D VOLUMES.

AimsSubVolume -i subject01_raw_diffusion_o041.ima -o diff.nii -s
Input volume dimensions : 128 128 60 46
Output volume dimensions : 128 128 60 1
[...]
Input volume dimensions : 128 128 60 46
Output volume dimensions : 128 128 60 1