brainsprite / brainsprite

Brainsprite turns a sprite of brain slices into a 3D interactive web viewer
http://brainsprite.github.io
MIT License
38 stars 18 forks source link

use MNI template with white background by default #80

Open pbellec opened 4 years ago

pbellec commented 4 years ago

currently loading with black background through nilearn's API.

pbellec commented 4 years ago

so actually it does load it, but it is a numpy masked array https://docs.scipy.org/doc/numpy/reference/maskedarray.html

which is not properly supported in the current API. Not completely clear how to handle that.

pbellec commented 4 years ago

the action for masking happen on that line: https://github.com/nilearn/nilearn/blob/master/nilearn/plotting/img_plotting.py#L344