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
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