niivue / ipyniivue

A WebGL-powered Jupyter Widget for Niivue based on anywidget
BSD 2-Clause "Simplified" License
25 stars 8 forks source link

Possible to add overlays and/or possibly saving the whole scene as .html file to harddrive? #43

Closed JohannesWiesner closed 5 months ago

JohannesWiesner commented 9 months ago

Hi all, thanks for this really wonderful package! This is exactly what I always wished for (see this thread on neurostars). Wonder if it's already possible to add statistical images as overlays over the MNI-template?

The example code already works like a charm:

import ipyniivue
nv = ipyniivue.Niivue()
nv.add_volume('https://niivue.github.io/niivue/images/mni152.nii.gz')
nv

Wonder if I now could overlay it with a statistical map and save everything as an .html file? At least the niivue demos suggest that this should be possible in theory? Just not sure if it's already implemented in ipyniivue:

https://niivue.github.io/niivue/features/alphathreshold.html https://niivue.github.io/niivue/features/save.html.html