Try to download the source code for th article Non-rigid Groupwise Registration using B-Spline Deformation Model from https://insight-journal.org/browse/publication/173, but it does not work.