Dear Patrick,
Three comments come to mind:
- the parameters are ordered as follows: first all x displacements, then all y, then all z
- You would need to copy the above a number of times, to impose this on all the slices of the 3D volume. Otherwise only this first "slice" is deformed which is just outside the image itself, and you would indeed see no deformations. The number of times is equal to the number of slices not in the image but in the B-spline grid
- you need to define the 3D B-spline grid as well, for which I recommend looking into the code how we normally do it: this grid extends in domain just outside the fixed image domain (it is a bit larger), I believe one control point to the left and two to
the right.
HTH, Marius