38ac604b6a980b6abf549014f65929cf4c0ed319,nilearn/plotting/img_plotting.py,,demo_plot_img,#,334
Before Change
// Compare to values obtained using fslview. We need to add one as
// voxels do not start at 0 in fslview.
assert x_map == 142
assert y_map + 1 == 137
assert z_map + 1 == 95
data[x_map - 5:x_map + 5, y_map - 3:y_map + 3, z_map - 10:z_map + 10] = 1
img = nibabel.Nifti1Image(data, mni_sform)
return plot_img(img, threshold="auto",
After Change
// Color a asymetric rectangle around Broca area:
x, y, z = -52, 10, 22
x_map, y_map, z_map = coord_transform(x, y, z,
np.linalg.inv(mni_affine))
data[x_map-5:x_map+5, y_map-3:y_map+3, z_map-10:z_map+10] = 1
img = nibabel.Nifti1Image(data, mni_affine)
return plot_img(img, threshold="auto",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: nilearn/nilearn
Commit Name: 38ac604b6a980b6abf549014f65929cf4c0ed319
Time: 2014-06-17
Author: gael.varoquaux@normalesup.org
File Name: nilearn/plotting/img_plotting.py
Class Name:
Method Name: demo_plot_img
Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3ca448728b74a7a6186c7c76f518f1362163ce0d
Time: 2018-04-07
Author: davide.tateo90@gmail.com
File Name: mushroom/policy/gaussian_policy.py
Class Name: GaussianPolicy
Method Name: __init__
Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3ca448728b74a7a6186c7c76f518f1362163ce0d
Time: 2018-04-07
Author: davide.tateo90@gmail.com
File Name: mushroom/policy/gaussian_policy.py
Class Name: GaussianPolicy
Method Name: set_sigma