4. nidata.diffusion package¶
4.1. Module contents¶
-
nidata.diffusion.
check_md5
(filename, stored_md5)[source]¶ Computes the md5 of filename and check if it matches with the supplied string md5
-
nidata.diffusion.
fetch_data
(files, folder)[source]¶ Downloads files to folder and checks their md5 checksums
Parameters: files : dictionary
For each file in files the value should be (url, md5). The file will be downloaded from url if the file does not already exist or if the file exists but the md5 checksum does not match.
folder : str
The directory where to save the file, the directory will be created if it does not already exist.
Raises: FetcherError
Raises if the md5 checksum of the file does not match the expected value. The downloaded file is not deleted when this error is raised.
-
nidata.diffusion.
fetch_scil_b0
()[source]¶ Download b=0 datasets from multiple MR systems (GE, Philips, Siemens) and different magnetic fields (1.5T and 3T)
-
nidata.diffusion.
fetch_sherbrooke_3shell
()[source]¶ Download a 3shell HARDI dataset with 192 gradient directions
-
nidata.diffusion.
fetch_stanford_hardi
()[source]¶ Download a HARDI dataset with 160 gradient directions
-
nidata.diffusion.
fetch_stanford_labels
()[source]¶ Download reduced freesurfer aparc image from stanford web site.
-
nidata.diffusion.
fetch_taiwan_ntu_dsi
()[source]¶ Download a DSI dataset with 203 gradient directions
-
nidata.diffusion.
read_isbi2013_2shell
()[source]¶ Load ISBI 2013 2-shell synthetic dataset
Returns: img : obj,
Nifti1Image
gtab : obj,
GradientTable
-
nidata.diffusion.
read_scil_b0
()[source]¶ Load GE 3T b0 image form the scil b0 dataset.
Returns: img : obj,
Nifti1Image
-
nidata.diffusion.
read_sherbrooke_3shell
()[source]¶ Load Sherbrooke 3-shell HARDI dataset
Returns: img : obj,
Nifti1Image
gtab : obj,
GradientTable
-
nidata.diffusion.
read_siemens_scil_b0
()[source]¶ Load Siemens 1.5T b0 image form the scil b0 dataset.
Returns: img : obj,
Nifti1Image
-
nidata.diffusion.
read_stanford_hardi
()[source]¶ Load Stanford HARDI dataset
Returns: img : obj,
Nifti1Image
gtab : obj,
GradientTable