Hi,
Just use your original 2mm images as the reference and use
-applyxfm. Flirt (and fnirt) determine the output image size
from the reference image (except when using -applyisoxfm).
All the best,
Mark
On 5 Dec 2008, at 19:21, Koene Van Dijk wrote:
> Hi,
>
> I converted a 3D 2mm isotropic image (in MNI space) to a 4mm iso
> image and
> used this:
>
> flirt -in brain_2mm.nii.gz -ref brain_2mm.nii.gz -out
> brain_4mm.nii.gz -applyisoxfm 4
>
> The original image dimensions were 91 109 91 and became 45 54 45.
>
> Then I did my analysis and converted the result back from 4 mm to 2mm:
>
> flirt -in brain_4mm.nii.gz -ref brain_4mm.nii.gz -out
> brain_2mm_NEW.nii.gz -applyisoxfm 2
>
> The image dimensions now went from 45 54 45 to 90 108 90 but I need
> the
> original 91 109 91 to be able to overlay the new files on top of
> older analysis.
>
> Does anyone have a solution to this problem?
>
> So, I would like to resample from 4mm (45 54 45) to 2mm (91 109 91).
>
> It would also work for me if I could "transform" some older 2 mm (91
> 109 91)
> images to 2 mm (90 108 90).
>
> Thanks a lot,
>
> Koene Van Dijk
>
|