Hi Ben,
Sure, it's possible, but it will probably take some work/pain.
Writing a general purpose utility for converting 4dfp to/from NIfTI has
been on Avi Snyder's to-do list for a while, but he's a very busy
person, so I'm not sure he or one of his (or Dan Marcus') minions have
gotten to it. If you want, I can ask him, since nagging him about this
is one of my hobbies.
Meanwhile, if your data tends to fall into a handful (or hopefully even
fewer) of grids, then you can write scripts to convert each of them --
using nifti_tool, AFNI's to3d followed by 3dAFNItoNIFTI, or FSL
equivalents. Check your ifh files: If they're all similar in grid
(scaling factor, matrix size, center, mmppix) to the attached file, then
I could even help you come up with the magic commands.
Donna
On 01/20/2009 05:52 AM, Ben Levy wrote:
> Does anyone know if it is possible to convert 4dfp data into nii.gz format? I
> have some data from a lab at Washington University that uses 4dfp and I'd
> like to compare it to some of our data. So far, the only program I can find that
> can display both image formats is Caret. Ideally, though, I would like to get it
> into the same format as my FSL data, so I can do a direct comparison
> between the overlap in activations. Any help you can give me would be
> greatly appreciated.
>
INTERFILE :=
version of keys := 3.3
image modality :=
originating system :=
program version := fidl revision 2.61000
original institution :=
name of data file := example
patient ID :=
study date :=
number format := float
number of bytes per pixel := 4
orientation := 2
number of dimensions := 4
matrix size [1] := 48
matrix size [2] := 64
matrix size [3] := 48
matrix size [4] := 1
scaling factor (mm/pixel) [1] := 3.000000
scaling factor (mm/pixel) [2] := 3.000000
scaling factor (mm/pixel) [3] := 3.000000
matrix initial element [1] :=
matrix initial element [2] :=
matrix initial element [3] :=
global minimum := -3.681690
global maximum := 3.740720
Gaussian field smoothness := 0.000000
mri parameter file name :=
mri sequence file name :=
mri sequence description :=
paradigm format :=
center := 73.500000 -87.000000 -84.000000
mmppix := 3.000000 -3.000000 -3.000000
degrees of freedom condition := 658.000000
|