table of contents
LIPSIA     Conversion of Siemens Trio data to vista
dictov

The program 'dictov' converts Siemens Trio DICOM data into the vista data format.

dictov -in TESTDATA.TRIO/DICOMDIR -out testdata.v -exp 2 4 5

If functional data show a poor range of values (e.g. a small range between 50 and 100 values within a time course), functional data can be scaled using the option '-fscale'. Note that an appropriate '-fscale' depends on the scanner and measurement.

dictov -in TESTDATA.TRIO/DICOMDIR -out testdata.v -exp 2 4 5 -fscale 10

How to create the DICOMDIR file

For using 'dictov', the DICOM data must have a DICOMDIR-file that contains the information about all DICOM images. The DICOMDIR file can be created using the command 'dcmmkdir'. If this command is not available on your computer, you have to install the DICOM toolkit (dcmtk) which is available for mostly all Linux systems. Before using 'dcmmkdir', you have to rename the *.IMA-files in order to obtain files with short filenames. This can be done using a script (e.g. 'rename.sh') which could have the following form:


#!/bin/bash

index=0
for y in *.IMA
  do
     index=`{
     echo "$index+1"
     }|bc `
     tt_index=`printf "%08d" $index ` ;  mv $y $tt_index &>/dev/null
  done

If your *.IMA-files are in the directory 'DATADIR', then you can convert your data using the following commands:

cd DATADIR

../rename.sh

dcmmkdir *

dictov -in DICOMDIR -out testdata.v

Parameters of 'dictov':
-help
Prints usage information.
-in
Input file in Dicom Directory format. Required.
-out
Output image in Vista format. Required.
-exp
Indices of scans to be converted. Optional.
-precision [ auto | original | single | double ]
Bytes per voxel in anatomical scans. Default: auto
-movlog [ true | false ]
Write motion correction log file for one MoCoSeries. (*.mot). Default: false
-steps
Number of functional timesteps. Use with caution!. Default: 0
-mosaic
Edge size of mosaic matrix. Use with caution! Optional. Default: 0
-tiles
Number of tiles in mosaic matrix. Use with caution! Optional. Default: 0
-black
Lower histogram cut-off for contrast scaling in %. Default: 0.1
-white
Upper histogram cut-off for contrast scaling in %. Default: 0.1
-fscale
Scaling factor for functional data. Default: 1
-verbose [ true | false ]
Show status messages. Default: true


Max Planck Institute for Human Cognitive and Brain Sciences. Further Information: lipsia@cbs.mpg.de
Copyright © 2007 Max Planck Institute for Human Cognitive and Brain Sciences. All rights reserved.