f80a478bd5588092249acba4077c3fb18e500d95,dipy/align/tests/test_imwarp.py,,test_em_2d_gauss_newton,#,798
Before Change
mapping = optimizer.optimize(static, moving, None)
m = optimizer.get_map()
assert_equal(mapping, m)
energy_profile = np.array(optimizer.full_energy_profile)[::4]
if floating is np.float32:
expected_profile = \
[2.50773392e+00, 1.19082175e+00, 3.44192871e-01, 4.26320783e-01,
3.77910892e-02, 3.34404847e-01, 3.00400618e+00, 2.56292691e+00,
After Change
optimizer.full_energy_profile, 10)
print(energy_profile)
if using_vc_sse2():
expected_profile = \
[2.50773392, 0.41762978, 0.30900322, 0.14818498, 0.44620725,
1.53134054, 1.42115728, 1.66358267, 1.184265, 46.13635772]
else:
expected_profile = \
[2.50773392, 0.41763383, 0.30908578, 0.06241115, 0.11573476,
2.48475885, 1.10053769, 0.9270271, 49.37186785, 44.72643467]
assert_array_almost_equal(energy_profile, np.array(expected_profile), decimal=5)
def test_em_3d_demons():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: nipy/dipy
Commit Name: f80a478bd5588092249acba4077c3fb18e500d95
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_em_2d_gauss_newton
Project Name: nipy/dipy
Commit Name: f80a478bd5588092249acba4077c3fb18e500d95
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_em_2d_demons
Project Name: nipy/dipy
Commit Name: f80a478bd5588092249acba4077c3fb18e500d95
Time: 2014-12-08
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imwarp.py
Class Name:
Method Name: test_ssd_2d_demons