Examples

Quick Start

Getting started with DIPY

Getting started with DIPY

Getting started with DIPY
Introduction to Basic Tracking

Introduction to Basic Tracking

Introduction to Basic Tracking

Preprocessing

Reslice diffusion datasets

Reslice diffusion datasets

Reslice diffusion datasets
Between-volumes Motion Correction on DWI datasets

Between-volumes Motion Correction on DWI datasets

Between-volumes Motion Correction on DWI datasets
Noise estimation using PIESNO

Noise estimation using PIESNO

Noise estimation using PIESNO
Denoise images using Non-Local Means (NLMEANS)

Denoise images using Non-Local Means (NLMEANS)

Denoise images using Non-Local Means (NLMEANS)
Brain segmentation with median_otsu

Brain segmentation with median_otsu

Brain segmentation with median_otsu
Patch2Self: Self-Supervised Denoising via Statistical Independence

Patch2Self: Self-Supervised Denoising via Statistical Independence

Patch2Self: Self-Supervised Denoising via Statistical Independence
Denoise images using Local PCA via empirical thresholds

Denoise images using Local PCA via empirical thresholds

Denoise images using Local PCA via empirical thresholds
Gradients and Spheres

Gradients and Spheres

Gradients and Spheres
Denoise images using Adaptive Soft Coefficient Matching (ASCM)

Denoise images using Adaptive Soft Coefficient Matching (ASCM)

Denoise images using Adaptive Soft Coefficient Matching (ASCM)
SNR estimation for Diffusion-Weighted Images

SNR estimation for Diffusion-Weighted Images

SNR estimation for Diffusion-Weighted Images
Denoise images using the Marcenko-Pastur PCA algorithm

Denoise images using the Marcenko-Pastur PCA algorithm

Denoise images using the Marcenko-Pastur PCA algorithm
Suppress Gibbs oscillations

Suppress Gibbs oscillations

Suppress Gibbs oscillations

Reconstruction

Below, an overview of all reconstruction models available on DIPY.

Note: Some reconstruction models do not have a tutorial yet

Method Single Shell Multi Shell Cartesian Ideal Data Requirements References
DTI (SLS, WLS, NNLS) Yes Yes Yes - All shells should be < 1000 Basser 1994
FwDTI No Yes No Pasternak 2009, Henriques et al., 2017
DKI - Standard No Yes No Jensen 2005
DKI - Micro (WMTI) No Yes No Fieremans 2011
Mean Signal DKI No Yes No Henriques, 2018
CSA Yes No No Aganj 2010
Westin's CSA Yes No No
IVIM No Yes No - 10 b-values less than b=1000 is needed.
- b-values range: 0-2000 ideally
LeBihan 1984
IVIM Variable Projection No Yes No - 10 b-values less than b=1000 is needed. Fadnavis 2019
SDT Yes No No Descoteaux 2009
DSI No No Yes Wedeen 2008
DSID No No Yes Canales-Rodriguez 2010
GQI - GQI2 No Yes Yes Yeh 2010
SFM Yes Yes No Rokem 2015
Q-Ball (OPDT) Yes No No Tuch 2004, Descoteaux 2007, Tristan-Vega 2010
SHORE No Yes No Merlet 2013, Özarslan 2009, Özarslan 2008
MAP-MRI No Yes No Ozarslan 2013
MAPL No Yes No Fick 2016
CSD Yes No No Tournier 2017 Descoteaux 2008 Tournier 2007
SMS/MT CSD No Yes No Jeurissen 2014
ForeCast No Yes No Anderson 2005
RUMBA-SD Yes Yes Yes Canales-Rodríguez 2015
QTI No Yes No Westin 2016
QTI+ No Yes No Herberthson 2021
Ball & Stick Yes Yes No Behrens 2013
QTau-MRI No Yes No Fick 2017
Power Map Yes Yes No DellAcqua2014
SMT / SMT2 No Yes No NetoHe2019, Kaden2016b
Applying positivity constraints to Q-space Trajectory Imaging (QTI+)

Applying positivity constraints to Q-space Trajectory Imaging (QTI+)

Applying positivity constraints to Q-space Trajectory Imaging (QTI+)
Continuous and analytical diffusion signal modelling with 3D-SHORE

Continuous and analytical diffusion signal modelling with 3D-SHORE

Continuous and analytical diffusion signal modelling with 3D-SHORE
Reconstruct with Diffusion Spectrum Imaging

Reconstruct with Diffusion Spectrum Imaging

Reconstruct with Diffusion Spectrum Imaging
DSI Deconvolution vs DSI

DSI Deconvolution vs DSI

DSI Deconvolution vs DSI
Calculate SHORE scalar maps

Calculate SHORE scalar maps

Calculate SHORE scalar maps
Reconstruct with Generalized Q-Sampling Imaging

Reconstruct with Generalized Q-Sampling Imaging

Reconstruct with Generalized Q-Sampling Imaging
Reconstruct with Constant Solid Angle (Q-Ball)

Reconstruct with Constant Solid Angle (Q-Ball)

Reconstruct with Constant Solid Angle (Q-Ball)
Reconstruction with the Sparse Fascicle Model

Reconstruction with the Sparse Fascicle Model

Reconstruction with the Sparse Fascicle Model
Calculate DSI-based scalar maps

Calculate DSI-based scalar maps

Calculate DSI-based scalar maps
Reconstruction of the diffusion signal with the kurtosis tensor model

Reconstruction of the diffusion signal with the kurtosis tensor model

Reconstruction of the diffusion signal with the kurtosis tensor model
K-fold cross-validation for model comparison

K-fold cross-validation for model comparison

K-fold cross-validation for model comparison
Reconstruct with Q-space Trajectory Imaging (QTI)

Reconstruct with Q-space Trajectory Imaging (QTI)

Reconstruct with Q-space Trajectory Imaging (QTI)
Reconstruction of the diffusion signal with the Tensor model

Reconstruction of the diffusion signal with the Tensor model

Reconstruction of the diffusion signal with the Tensor model
Crossing invariant fiber response function with FORECAST model

Crossing invariant fiber response function with FORECAST model

Crossing invariant fiber response function with FORECAST model
Using the RESTORE algorithm for robust tensor fitting

Using the RESTORE algorithm for robust tensor fitting

Using the RESTORE algorithm for robust tensor fitting
Reconstruction of the diffusion signal with the WMTI model

Reconstruction of the diffusion signal with the WMTI model

Reconstruction of the diffusion signal with the WMTI model
Signal Reconstruction Using Spherical Harmonics

Signal Reconstruction Using Spherical Harmonics

Signal Reconstruction Using Spherical Harmonics
Using the free water elimination model to remove DTI free water contamination

Using the free water elimination model to remove DTI free water contamination

Using the free water elimination model to remove DTI free water contamination
Intravoxel incoherent motion

Intravoxel incoherent motion

Intravoxel incoherent motion
Reconstruction with Constrained Spherical Deconvolution

Reconstruction with Constrained Spherical Deconvolution

Reconstruction with Constrained Spherical Deconvolution
Reconstruction with Multi-Shell Multi-Tissue CSD

Reconstruction with Multi-Shell Multi-Tissue CSD

Reconstruction with Multi-Shell Multi-Tissue CSD
Continuous and analytical diffusion signal modelling with MAP-MRI

Continuous and analytical diffusion signal modelling with MAP-MRI

Continuous and analytical diffusion signal modelling with MAP-MRI
Mean signal diffusion kurtosis imaging (MSDKI)

Mean signal diffusion kurtosis imaging (MSDKI)

Mean signal diffusion kurtosis imaging (MSDKI)
Reconstruction with Robust and Unbiased Model-BAsed Spherical Deconvolution

Reconstruction with Robust and Unbiased Model-BAsed Spherical Deconvolution

Reconstruction with Robust and Unbiased Model-BAsed Spherical Deconvolution
Estimating diffusion time dependent q-space indices using qt-dMRI

Estimating diffusion time dependent q-space indices using qt-dMRI

Estimating diffusion time dependent q-space indices using qt-dMRI

Contextual Enhancement

Crossing-preserving contextual enhancement

Crossing-preserving contextual enhancement

Crossing-preserving contextual enhancement
Fiber to bundle coherence measures

Fiber to bundle coherence measures

Fiber to bundle coherence measures

Fiber Tracking

Surface seeding for tractography

Surface seeding for tractography

Surface seeding for tractography
An introduction to the Deterministic Maximum Direction Getter

An introduction to the Deterministic Maximum Direction Getter

An introduction to the Deterministic Maximum Direction Getter
Parallel Transport Tractography

Parallel Transport Tractography

Parallel Transport Tractography
Tracking with Robust Unbiased Model-BAsed Spherical Deconvolution (RUMBA-SD)

Tracking with Robust Unbiased Model-BAsed Spherical Deconvolution (RUMBA-SD)

Tracking with Robust Unbiased Model-BAsed Spherical Deconvolution (RUMBA-SD)
Tracking with the Sparse Fascicle Model

Tracking with the Sparse Fascicle Model

Tracking with the Sparse Fascicle Model
Bootstrap and Closest Peak Direction Getters Example

Bootstrap and Closest Peak Direction Getters Example

Bootstrap and Closest Peak Direction Getters Example
Introduction to Basic Tracking

Introduction to Basic Tracking

Introduction to Basic Tracking
Introduction to Basic Tracking

Introduction to Basic Tracking

Introduction to Basic Tracking
An introduction to the Probabilistic Direction Getter

An introduction to the Probabilistic Direction Getter

An introduction to the Probabilistic Direction Getter
Particle Filtering Tractography

Particle Filtering Tractography

Particle Filtering Tractography
Linear fascicle evaluation (LiFE)

Linear fascicle evaluation (LiFE)

Linear fascicle evaluation (LiFE)
Using Various Stopping Criterion for Tractography

Using Various Stopping Criterion for Tractography

Using Various Stopping Criterion for Tractography

Streamlines Analysis and Connectivity

BUAN Bundle Shape Similarity Score

BUAN Bundle Shape Similarity Score

BUAN Bundle Shape Similarity Score
BUAN Bundle Assignment Maps Creation

BUAN Bundle Assignment Maps Creation

BUAN Bundle Assignment Maps Creation
Extracting AFQ tract profiles from segmented bundles

Extracting AFQ tract profiles from segmented bundles

Extracting AFQ tract profiles from segmented bundles
Streamline length and size reduction

Streamline length and size reduction

Streamline length and size reduction
Calculation of Outliers with Cluster Confidence Index

Calculation of Outliers with Cluster Confidence Index

Calculation of Outliers with Cluster Confidence Index
Calculate Path Length Map

Calculate Path Length Map

Calculate Path Length Map
Connectivity Matrices, ROI Intersections and Density Maps

Connectivity Matrices, ROI Intersections and Density Maps

Connectivity Matrices, ROI Intersections and Density Maps

Registration

Groupwise Bundle Registration

Groupwise Bundle Registration

Groupwise Bundle Registration
Direct Bundle Registration

Direct Bundle Registration

Direct Bundle Registration
Symmetric Diffeomorphic Registration in 3D

Symmetric Diffeomorphic Registration in 3D

Symmetric Diffeomorphic Registration in 3D
Diffeomorphic Registration with binary and fuzzy images

Diffeomorphic Registration with binary and fuzzy images

Diffeomorphic Registration with binary and fuzzy images
Symmetric Diffeomorphic Registration in 2D

Symmetric Diffeomorphic Registration in 2D

Symmetric Diffeomorphic Registration in 2D
Nonrigid Bundle Registration with BundleWarp

Nonrigid Bundle Registration with BundleWarp

Nonrigid Bundle Registration with BundleWarp
Affine Registration with Masks

Affine Registration with Masks

Affine Registration with Masks
Applying image-based deformations to streamlines

Applying image-based deformations to streamlines

Applying image-based deformations to streamlines
Affine Registration in 3D

Affine Registration in 3D

Affine Registration in 3D

Segmentation

Brain segmentation with median_otsu

Brain segmentation with median_otsu

Brain segmentation with median_otsu
Brain segmentation with median_otsu

Brain segmentation with median_otsu

Brain segmentation with median_otsu
Tractography Clustering with QuickBundles

Tractography Clustering with QuickBundles

Tractography Clustering with QuickBundles
Tissue Classification of a T1-weighted Structural Image

Tissue Classification of a T1-weighted Structural Image

Tissue Classification of a T1-weighted Structural Image
Tractography Clustering - Available Metrics

Tractography Clustering - Available Metrics

Tractography Clustering - Available Metrics
Fast Streamline Search

Fast Streamline Search

Fast Streamline Search
Enhancing QuickBundles with different metrics and features

Enhancing QuickBundles with different metrics and features

Enhancing QuickBundles with different metrics and features
Tractography Clustering - Available Features

Tractography Clustering - Available Features

Tractography Clustering - Available Features
Automatic Fiber Bundle Extraction with RecoBundles

Automatic Fiber Bundle Extraction with RecoBundles

Automatic Fiber Bundle Extraction with RecoBundles

Simulation

DSI Deconvolution vs DSI

DSI Deconvolution vs DSI

DSI Deconvolution vs DSI
DSI Deconvolution vs DSI

DSI Deconvolution vs DSI

DSI Deconvolution vs DSI
DKI MultiTensor Simulation

DKI MultiTensor Simulation

DKI MultiTensor Simulation
MultiTensor Simulation

MultiTensor Simulation

MultiTensor Simulation

Multiprocessing

Parallel reconstruction using Q-Ball

Parallel reconstruction using Q-Ball

Parallel reconstruction using Q-Ball
Parallel reconstruction using CSD

Parallel reconstruction using CSD

Parallel reconstruction using CSD

File Formats

Read/Write streamline files

Read/Write streamline files

Read/Write streamline files

Visualization

Visualization of ROI Surface Rendered with Streamlines

Visualization of ROI Surface Rendered with Streamlines

Visualization of ROI Surface Rendered with Streamlines
Visualize bundles and metrics on bundles

Visualize bundles and metrics on bundles

Visualize bundles and metrics on bundles
Simple volume slicing

Simple volume slicing

Simple volume slicing
Advanced interactive visualization

Advanced interactive visualization

Advanced interactive visualization

Workflows

Creating a new workflow.

Creating a new workflow.

Creating a new workflow.
Creating a new combined workflow

Creating a new combined workflow

Creating a new combined workflow

Gallery generated by Sphinx-Gallery