OpenDIVE (Open Diffusion Imaging Visualization for Everyone) is a command line interface tool for generating accessible, interpretable visualizations from diffusion MRI, initiated at BrainHack Vandy 2025.
Despite the prolific availability of software tools to visualize diffusion MRI data, there is no standardized visualization to summarize longitudinal changes. Similarly, the current standard of visualizations are not accessible to people with common forms of colorblindness. We propose a software package to both standardize and improve accessibility to representations of diffusion data.
You can install the package using Python (3.10+):
pip install open-dive
After installing the package, you should be able to use the open-dive
command to produce images.
# Save a T1-weighted image with no interactive visualization
open-dive -n t1.nii.gz -s 50 -o coronal --save_path slice_50_coronal.png --headless
# Custom colorbar
open-dive -n dwi.nii.gz --size 800 600 --value_range 0 1500 --scalar_colorbar --volume_idx 1
# Overlay values on tractography
open-dive -n fa.nii.gz --tractography_path my_tractogram1.trk my_tractogram2.trk --tractography_values -0.5 0.7
# Overlay glass brain and tensor glyphs with custom viewing angles
open-dive -n dwi.nii.gz \
--volume_idx 0 \
--tensor_path tensor.nii.gz \
--glass_brain_path mask.nii.gz \
-o sagittal \
--az 45 \
--el 60 \
-scale 2
Please see the wiki for documentation on using the command.
We welcome issues and pull requests! For details on contributing, please see CONTRIBUTING.md.
- We aim to generate a standardized display for anatomical images to overlay the diffusion models based on user input, including support for multiple track files, color maps, and illustration of bundle summary metrics (p-value, volume, effect size, etc.) per bundle.
- We aim to propose a colorblind-friendly colormap for diffusion MRI images.
For FAQs related to diffusion MRI, see our diffusion FAQ discussion.