aces / brainbrowser

Web-based visualization tools for neurological data.
https://brainbrowser.cbrain.mcgill.ca/
GNU Affero General Public License v3.0
351 stars 122 forks source link

Mask overlay on top of an Nifti volume #348

Open Chasiwpaw opened 5 years ago

Chasiwpaw commented 5 years ago

I saw that Papaya viewer is possible to stack two nifti image on top of another. I was wondering if that is also possible with brainbrowser. I am using volume viewer and I saw on the documentation that there's a function called CreateOverlay. That function takes only a template and not another nifti file. If that is achievable, if there's a boilerplate example to show how that is done? If not, I think that would be a really good feature to have.

natacha-beck commented 4 years ago

If you look at https://brainbrowser.cbrain.mcgill.ca/volume-viewer and select NIfTI you will see 3 panels. The 2 first column is 2 different NIfTI and the third one is an overlay between both of them.

The code could be found here:

Is it what you want ?