Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading local files and arraybuffers #6

Open
hsellik opened this issue Feb 3, 2025 · 1 comment
Open

Loading local files and arraybuffers #6

hsellik opened this issue Feb 3, 2025 · 1 comment

Comments

@hsellik
Copy link

hsellik commented Feb 3, 2025

Is there any convenient way to load in volumes from files or ArrayBuffers?

For single file, I managed to get away with just adding ArrayBuffer to url property, but it seems to break things when multiple volumes are loaded this way.

Currently, I can load in volume by using NVImage.loadFromFile and then adding it to canvas with Niivue.addVolume() when I acquire the NiiVue instance with onStart callback, but it doesn't feel right.

@jennydaman
Copy link
Collaborator

Are these new features of NiiVue? Sorry I haven't been following upstream developments lately.

I know a colleague had success using window.URL.createObjectURL for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants