Closed evan-resonare closed 2 years ago
The issue turned out to be that as I am using Next.js SSR, cornerstone was not correctly initializing into the environment. I had to dynamic import cornerstone and related libraries, initialize cornerstone and cornerstoneWADOImageLoader into the window
object and make sure to access them from there.
I am currently attempting to load a local DICOM series into the viewport. The DICOM series are parsed using cornerstoneWADOImageLoader and dcmjs in a similiar way that the OHIF Local viewer uses (main utils files can be found here).
After loading the images, I receive an object containing the series' metadata and a set of instances, each with an imageId and data (the imageIds look like "dicomfile:0, dicomfile:1, etc..").
Is there anyway I can view these files within the CornerstoneViewport?