f5665c4258e60c7e93b3cac79bebefd5906af6fd,doc/examples/syn_registration_3d.py,,,#,48

Before Change


    warped = nipy2nifti(warped, strict=True)
    return warped, T

warped, affine_init = affine_registration(nib_static, nib_moving)
static = nib_static.get_data().squeeze().astype(np.float32)
moving = warped.get_data().squeeze().astype(np.float32)

After Change


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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: nipy/dipy
Commit Name: f5665c4258e60c7e93b3cac79bebefd5906af6fd
Time: 2014-04-13
Author: jomaroceguedag@gmail.com
File Name: doc/examples/syn_registration_3d.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: e8d6d7a218d13729f61eb6d1ef688bcfb9c81d88
Time: 2014-04-13
Author: garyfallidis@gmail.com
File Name: dipy/align/tests/test_streamwarp.py
Class Name:
Method Name: test_rigid_real_bundles


Project Name: pfnet/optuna
Commit Name: d3196bee4759550bc2e944a945881013157669ef
Time: 2020-06-25
Author: skripniuk.v@yandex.ru
File Name: examples/tensorboard_simple.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: 7d6194f1535e3f712b13fea425ef8632da2e23d9
Time: 2014-04-13
Author: garyfallidis@gmail.com
File Name: dipy/align/tests/test_streamwarp.py
Class Name:
Method Name: test_stream_rigid