Bf/set sform correctly
Fixes #1 (closed)
-
FNIRT displacement fields are defined in terms of the reference image coordinate system - for every voxel in the reference image, a displacement is stored which allows the corresponding coordinates in the source image to be calculated.
-
convertwarp
always outputs displacement fields (not coefficient fields, which store the spline coefficients of the warp field) -
convertwarp
was only setting thesform
/qform
of the generated displacement field if the provided reference image was different to the reference image originally used to generate the displacement field.