Skip to content

Bf/set sform correctly

Paul McCarthy requested to merge bf/set_sform_correctly into master

Fixes #1 (closed)

  1. 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.

  2. convertwarp always outputs displacement fields (not coefficient fields, which store the spline coefficients of the warp field)

  3. convertwarp was only setting the sform/qform of the generated displacement field if the provided reference image was different to the reference image originally used to generate the displacement field.

Merge request reports