Skip to content

Latest commit

 

History

History

mri-histogram

A dashboard to quickly check MRI data

NeuroSnippets made-with-python Colab Binder

This dashboard makes easy to navigate an MRI volume and to get as an histogram the distribution of its values in a given area. It is just a matter of drawing a path on top of the image. It is realised using Dash. More details available in this post.

To run the dashboard using mri-histogram.py, you need python (3.7) and the following packages:

  • plotly (4.14.3);
  • dash (1.19.0);
  • dash-core-components (1.15.0);
  • dash-html-components (1.1.2);
  • nibabel (3.0.0);
  • numpy (1.18.4);
  • scipy (1.4.1);
  • scikit-image (0.18.1).

To run the dashboard using mri-histogram.ipynb, you will also need jupyter-dash (0.4.0).

The code was tested on macOS 10.15.7.

Some things to keep in mind:

  • as the final mask to compute the histogram is fitted through the draw.polygon() method from scikit-image, it is not necessary to draw a perfectly closed path;
  • Dash now offers an even more powerful way to handle directly tridimensional data: dash-slicer.