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

Dynamically load and render local DICOM images #156

Open
sebastianandress opened this issue Nov 15, 2022 · 0 comments
Open

Dynamically load and render local DICOM images #156

sebastianandress opened this issue Nov 15, 2022 · 0 comments

Comments

@sebastianandress
Copy link

I'm trying to dynamically load local DICOM images as shown in this codesandbox:
https://codesandbox.io/s/silent-feather-mv97ee?file=/src/App.tsx

Unfortunately, it seems that it does not load or render the local data correctly. I think the issue lies in loading the data, however following this example the following code should (but does not) do the job:

const image = cornerstoneWADOImageLoader.wadouri.fileManager.add(file);
imageIds.push(image)
<CornerstoneViewport imageIds={imageIds}/>

Thanks for your help!

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

1 participant