Py.Cafe

kolibril13/

niivue-neuroimaging-with-python

Interactive Niivue Neuroimaging

DocsPricing
  • app.py
  • hippo.nii.gz
  • mni152.nii.gz
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from ipyniivue import AnyNiivue,  SliceType
# based on https://niivue.github.io/niivue/features/basic.multiplanar.html

volumes = [
  { "path": "mni152.nii.gz", "colormap": "gray", "visible": True, "opacity": 1.0 },
  { "path": "hippo.nii.gz", "colormap": "red", "visible": True, "opacity": 1 },

]
nv = AnyNiivue(slice_type=SliceType.MULTIPLANAR)
nv.load_volumes(volumes)
nv

page = nv