MR scanners usually allow monitoring of the basic patient's vital signs, typically electrocardiagram, peripheral pulse, and respiration. Contemporary scanners also allow these signals to be saved in a log file on the scanner's computer hard disk. These log files may be retrieved and integrated into the off-line analysis of the MR images. However, the duration of recordings in the log files does not usually span exactly the same period as the image acquisition, and so one initial step is to regain synchronisity between the physiological timecourses and the image acquisition.
syncphysio is a command line program which attempts to synchronise the data in the physiological log files with the time of the image acquisition. Currently it only works with physiological log files generated by Siemens Medical MR scanners. It saves the trigger points in the physiological time courses, as detected by the MR scanner, to text files suitable for import into Chris Rorden's Physiological Artifact Removal Tool or PhysioNoise.
syncphysio [-ds <num>] [-splf siemens_log_file] [-tf image_acquisition_times_file] [-sof synchronised_output_filename] [-d]
20090304 140040.157500 20090304 140048.137500 20090304 140044.147500If the DICOM images are to be converted to Analyze of NIFTI using my dtoa software, then the image acquisition timings text file can also be created by the program by specifying the -itime command line flag.
The C source code for syncphysio can be downloaded. It was last updated on 15th August 2010.
syncphysio.c should compile fine on a number of operating systems and using a range of C compilers, under 32 bit or 64 bit environments. Below are a few suggestions for compiling the software from a command line terminal window, into an executable named syncphysio.
gcc -O syncphysio.c -o syncphysio
cc -O -Xa -s syncphysio.c -o syncphysio
cc -O -Ae +Onolimit -s syncphysio.c -o syncphysio
cc -O -signed syncphysio.c -o syncphysio
cl /O2 syncphysio.c
bcc32 -O2 -N syncphysio.c