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

no volume loader for volumeId #150

Closed
haoxl3 opened this issue Jul 19, 2022 · 5 comments
Closed

no volume loader for volumeId #150

haoxl3 opened this issue Jul 19, 2022 · 5 comments

Comments

@haoxl3
Copy link
Contributor

haoxl3 commented Jul 19, 2022

I use the imageIds for this case, click here, but I got an error
image
my code is here
What type of data should it be?

@sedghi
Copy link
Member

sedghi commented Aug 1, 2022

You most likely have not initialized the CornerstoneWADOImageLoader, see initWADO... in our code base

@haoxl3
Copy link
Contributor Author

haoxl3 commented Aug 4, 2022

no, I have init...

@IbrahimCSAE
Copy link
Collaborator

I think you forgot to register an image loader to cornerstone3D, you can do the following like this

import * as cornestone3DVolumeLoader from "@cornerstonejs/streaming-image-volume-loader";
import * as cornerstone3D from "@cornerstonejs/core";

      cornerstone3D.volumeLoader.registerUnknownVolumeLoader(
        cornestone3DVolumeLoader.cornerstoneStreamingImageVolumeLoader
      );
      cornerstone3D.volumeLoader.registerVolumeLoader(
        "cornerstoneStreamingImageVolume",
        cornestone3DVolumeLoader.cornerstoneStreamingImageVolumeLoader
      );
      cornerstone3D.imageLoader.registerImageLoader(
        "streaming-wadors",
        cornestone3DVolumeLoader.sharedArrayBufferImageLoader
      );

@alex644715
Copy link

no, I have init...

have you address this issue? :(

@sedghi
Copy link
Member

sedghi commented Oct 13, 2023

Take a look at init function in the examples to see how to register the volume loaders
utils/demo/helpers/initDemo.js

@sedghi sedghi closed this as completed Oct 13, 2023
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

4 participants