749855e9d1b5bd1aa7b46db144503922fbc0a336,doc/examples/brain_extraction_dwi.py,,,#,8

Before Change


    print(f)
    img = nib.load(f)
    data = img.get_data()
    fname = os.path.splitext(os.path.splitext(f)[0])[0]

    b0_mask, mask = medotsu(data, 4, 4, autocrop=False)
    mask_img = nib.Nifti1Image(mask.astype(np.float32), img.get_affine())
    b0_img = nib.Nifti1Image(b0_mask.astype(np.float32), img.get_affine())

After Change


plt.subplot(1,2,1)
plt.imshow(data[:,:,slice])
plt.subplot(1,2,2)
plt.imshow(b0_mask[:,:,slice])
plt.show()

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: 749855e9d1b5bd1aa7b46db144503922fbc0a336
Time: 2013-08-06
Author: matthieu.dumont@usherbrooke.ca
File Name: doc/examples/brain_extraction_dwi.py
Class Name:
Method Name:


Project Name: matthewwithanm/django-imagekit
Commit Name: 6ae4f56ed7a7b99d529dbcae551b727737d81b4f
Time: 2011-09-23
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageSpecFile
Method Name: _create


Project Name: nipy/dipy
Commit Name: 749855e9d1b5bd1aa7b46db144503922fbc0a336
Time: 2013-08-06
Author: matthieu.dumont@usherbrooke.ca
File Name: doc/examples/brain_extraction_dwi.py
Class Name:
Method Name:


Project Name: tensorlayer/tensorlayer
Commit Name: 21329d2c97d00fe2f852ac5df05d0caddfd37292
Time: 2020-03-24
Author: laicheng_VIP@163.com
File Name: tensorlayer/files/utils.py
Class Name:
Method Name: load_and_assign_ckpt


Project Name: biolab/orange3
Commit Name: cf71c3c3e89bc98e3296b5c62627741257adb3b9
Time: 2013-05-20
Author: anze.staric@gmail.com
File Name: Orange/canvas/application/canvasmain.py
Class Name: CanvasMainWindow
Method Name: add_recent_scheme