View in #cornerstone3d on Slack
@Quasar_Jarosz: Okay, I am still having strange problems loading volumes with wadouri. I have prepared the simplest example I could come up with… here is a fork of the cornerstone nextjs app that’s been modified to load a volume via wadouri (from TCIA):
https://github.com/quasarj/nextjs-cornerstone3d
You’ll see it loads just fine. But if I try to draw it in AXIAL instead (or even ACQUISITION), it fails (see this branch):
https://github.com/quasarj/nextjs-cornerstone3d/tree/broken
The error is: TypeError: Cannot destructure property 'imagePositionPatient' of '_metaData__WEBPACK_IMPORTED_MODULE_3__.get(...)' as it is undefined.
quasarj/nextjs-cornerstone3d
@Rod_Fitzsimmons_Frey: This is just a guess, but I notice the endpoint “getSingleImage” is returning a single slice. Perhaps attempting to view a single slice from a different orientation is giving you grief? If you call the endpoint with “getImage” instead you get the entire scan, perhaps that will work better.
@Quasar_Jarosz: No, that’s not related, or at least I don’t think it is. I am getting each slice individually, but that function returns the full set of imageIds for the volume. It’s also worth noting that the actual orientation of those slices is axial, which makes this even more confusing.
I believe it actually has to do with the same issue I’m having with creating a segmentation, where metaData.get is not returning anything for the given volume. I don’t know, I’m hoping one of the devs can take a look