the pyramid. The 0-th level corresponds to the finest resolution.
opt_iter = [5, 10, 10]
registration_optimizer = SymmetricDiffeomorphicRegistration(metric, opt_iter)
Execute the optimization, which returns a DiffeomorphicMap object,
that can be used to register images back and forth between the static and moving
domains
mapping = registration_optimizer.optimize(static, moving,
static_affine, moving_affine, pre_align)
Now let"s warp the moving image and see if it gets similar to the static image