hanayik / niivue

a WebGL2 based NIFTI volume viewer.
https://hanayik.github.io/niivue
BSD 3-Clause "New" or "Revised" License
11 stars 7 forks source link

Url loader #84

Closed hanayik closed 3 years ago

hanayik commented 3 years ago

to load from URL just add any URL as a query parameter. If you have a background image and a mask to load in the same space then you can supply a comma separated list of URLs

npm run serve

http://localhost:8080/?urls=

limitations: some servers do not allow browsers to load data from outside the same domain as the server (CORS). OpenNeuro has open server protocols, so you should be able to load ANY nifti image from OpenNeuro.org. Just copy and paste the "download" url from any nifti image on OpenNeuro.

Example: https://openneuro.org/crn/datasets/ds002328/snapshots/1.0.0/files/sub-01:anat:sub-01_T1w.nii.gz