Hi,
I would like to change sform/qform to identity metric in 3D nifti file (T1), without re sampling.
previposly i used the commnad below.
"fslorient -deleteorient x.nii.gz ;
fslswapdim x.nii.gz x y z $i.nii.gz ;
fslorient -setqformcode 1 x.nii.gz;
which created the metric successfully.
How ever this was done on 3D nifti with pixdim=1.
currently i'm trying to do the same with other images from another scanner but instead i get
qto_xyz:1 1.200000 0.000000 0.000000 0.000000
qto_xyz:2 0.000000 0.937500 0.000000 0.000000
qto_xyz:3 0.000000 0.000000 0.937500 0.000000
qto_xyz:4 0.000000 0.000000 0.000000 1.000000
these values seems to be effected from the pixdims which have similar values.
Is there another way to get the following?
qto_xyz:1 1.000000 0.000000 0.000000 0.000000
qto_xyz:2 0.000000 1.000000 0.000000 0.000000
qto_xyz:3 0.000000 0.000000 1.000000 0.000000
qto_xyz:4 0.000000 0.000000 0.000000 1.000000
Thanks,
Keren
|