question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cornerstoneWADOImageLoader failed to load a set of dicom

See original GitHub issue

I am using cornerstoneWADOImageLoader to load my dicom from orthanc, but I am new to cornerstone.
I successed to load a dicom file by setting imageId, then I tried to load a series of dicom by setting imageId as an array and wanted to preview them on enableElement by mouse scrolling. Obviously, I failed. So how to display a set of dicom? Appreciate any response!

Here is my vue.js code

        mounted () {
            // const imageId = " wadouri:http:http//127.0.0.1/data/1.dcm";
            const imageId = [
                              "wadouri:http:http//127.0.0.1/data/1.dcm",
                              "wadouri:http:http//127.0.0.1/data/2.com",
                               "wadouri:http:http//127.0.0.1/data/4.dcm",
                               "wadouri:http:http//127.0.0.1/data/5.com",
                            ];
            this.loadAndViewDicom(imageId);
        },
        methods: {
            loadAndViewDicom(imageId) {
                const element = this.$refs.cornerstoneCanvas;
                cornerstone.enable(element);
                cornerstone.loadAndCacheImage(imageId).then(
                    (image) => {
                        cornerstone.displayImage(element,image);
                    },
                    (err) => {
                        console.error(err);
                    }
                );
            },
       }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

0reactions
acegankcommented, Dec 28, 2022

@longerking 大哥知道segmentation怎么导出png吗

Read more comments on GitHub >

github_iconTop Results From Across the Web

cornerstonewadoimageloader.js not working, .dcm files not ...
I changed my websites to use cdnjs.cloudflare.com instead and it's all good now. (I now see cloudflare does not have your particular package....
Read more >
cornerstoneWADOImageLoader
On my end the DICOM file can be accessed via a url that I can pass to a ... Failed to load wadouri:https://myurltodicomfile:...
Read more >
Image Loaders
The Image Load Object contains a Promise which resolves to produce an Image. ... Cornerstone WADO Image Loader, DICOM Part 10 images
Read more >
cornerstone-wado-image-loader
Cornerstone Image Loader for DICOM WADO-URI and WADO-RS. ... Start using cornerstone-wado-image-loader in your project by running `npm i ...
Read more >
How to use the cornerstone-wado-image-loader.external ...
dicomParser = dicomParser; cornerstoneWADOImageLoader.webWorkerManager.initialize({ maxWebWorkers: navigator.hardwareConcurrency || 1, startWebWorkersOnDemand: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found