your code is so usefull for my M.s thesis and I,m enjoying it.
but I was wondering if I could just optimize the objective functions using some optimization methods like PSO,...
but when I try this specially in non-rigid transformation I cant do ie well.
infact, I dont know how to use these objective functions(i.e affine_registration_image in affine transform and bspline_registration_gradient in non-rigid)?
would you please post an example of their optimization using PSO?