Content-type: text/html
Manpage of image2voxel
image2voxel
Section: User Commands (1)
Index
Return to Main Contents
NAME
image2voxel - Converts scanner-order data in a supported image format to voxel-order data.
SYNOPSIS
image2voxel
-4dimage <file> | -imagelist <file>
[options]
DESCRIPTION
Converts image files into the voxel ordering required by the Camino toolkit. By
default, the output data type is float.
Two data formats are supported. The 4D format is a single file, containing a volume
for each diffusion-weighted measurement. The 3D format is a series of files, each containing
a single volume for one diffusion-weighted measurement. The order of the volumes must match the
order of the corresponding measurements in the scheme file.
To convert 3D files to voxel order, pass a text file containing a list of images. For separate
header / image pairs, list the headers:
dwi1.hdr
dwi2.hdr
...
dwiN.hdr
for files that contain a single image, list the images
dwi1.nii
dwi2.nii
...
dwiN.nii
for each of the N measurements. The order of the names in the file must match the order of
the scheme file (see camino(1)). The program assumes that the images are in the same
directory as the image list file, unless told otherwise with the -imageprefix option.
EXAMPLES
Convert a 4D scanner order data file ScannerOrder.img, for which the
measurement volume has size 128x128x60 and the acquisition scheme
acquires 6 measurements with b=0 and 54 diffusion-weighted
measurements, to voxel order. The header ScannerOrder.hdr has height=128, width=128, depth=60,
nImages=60.
image2voxel -4dimage ScannerOrder.hdr > VoxelOrder.Bfloat
This is equivalent to the command:
scanner2voxel -voxels 983040 -components 60 < ScannerOrder.img > VoxelOrder.Bfloat
Convert Analyze images stored as 3D volumes, listed in the file volumes.txt, to voxel order,
and output the results as double
image2voxel -imagelist volumes.txt -outputdatatype double > VoxelOrder.Bdouble
Do the same thing, but this time the 3D volumes are in the directory ./data
image2voxel -imagelist volumes.txt -imageprefix ./data/ -outputdatatype double > VoxelOrder.Bdouble
Set the prefix to root when the image list contains absolute paths
image2voxel -imagelist volumes.txt -imageprefix / -outputdatatype double > VoxelOrder.Bdouble
OPTIONS
- -4dimage <file>
-
Path to the input image file or header. This should be used when converting 4D / 5D files where
each 3D volume is an image from a single diffusion-weighted measurement. The order of the
measurement volumes must correspond to the accompanying scheme file.
- -imagelist <filename>
-
Name of a file containing a list of 3D images, each containing a single diffusion-weighted measurement.
The order of the headers in the list must match the order of the corresponding measurements in the
scheme file.
- -imageprefix <prefix>
-
Path to prepend onto filenames in the imagelist. Has no effect on paths specified on the command
line with -4dimage. The default prefix is the directory containing the image list.
This option is used when the imagelist is not in the same directory as the images it describes.
- -outputdatatype <data type of output>
-
Specifies the data type of the output data. The data type can be any
of the following strings: "char", "short", "int", "long", "float" or "double". The default output
data type is float.
AUTHORS
Philip Cook <camino@cs.ucl.ac.uk>
SEE ALSO
scanner2voxel(1), analyzedti(1)
BUGS
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- EXAMPLES
-
- OPTIONS
-
- AUTHORS
-
- SEE ALSO
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 02:06:54 GMT, December 10, 2011