497865d901ed2aef526e3ed7d3474ae4eabe9a1f,doc/examples/brain_extraction_dwi.py,,,#,26

Before Change




mask_img = nib.Nifti1Image(mask.astype(np.float32), img.affine)
b0_img = nib.Nifti1Image(b0_mask.astype(np.float32), img.affine)

fname = "se_1.5t"
nib.save(mask_img, fname + "_binary_mask.nii.gz")
nib.save(b0_img, fname + "_mask.nii.gz")


Quick view of the results middle slice using ``matplotlib``.

After Change


in ``float32``.


fname = "se_1.5t"
save_nifti(fname + "_binary_mask.nii.gz", mask.astype(np.float32), affine)
save_nifti(fname + "_mask.nii.gz", b0_mask.astype(np.float32), affine)


Quick view of the results middle slice using ``matplotlib``.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: nipy/dipy
Commit Name: 497865d901ed2aef526e3ed7d3474ae4eabe9a1f
Time: 2020-01-03
Author: skab12@gmail.com
File Name: doc/examples/brain_extraction_dwi.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: 497865d901ed2aef526e3ed7d3474ae4eabe9a1f
Time: 2020-01-03
Author: skab12@gmail.com
File Name: doc/examples/brain_extraction_dwi.py
Class Name:
Method Name: