Hi, You cannot set the qform to have a volumetric scaling that is different from the pixdims. It does not store sufficient information to do any scaling - it only encodes rotations and translations. So if your voxels are 1.2mm (as in the pixdim) then the qform _must_ store this and cannot store 1.0 instead. You can force the sform to store things like this, but I do not understand why you would want to do this anyway. All the best, Mark On 18 Aug 2014, at 19:53, Keren Lesinger <[log in to unmask]> wrote: > 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 >