-
Notifications
You must be signed in to change notification settings - Fork 326
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
Cannot destructure property 'pixelRepresentation' #180
Comments
@zixiCat |
you need to add the metadata to cornerstoneWADOImageLoader first before creating a volume you can use a function similar to this
You can then pass the returned imageIds to createAndCacheVolume. |
@IbrahimCSAE |
I don't know the exact process, but I think that they need to be loaded into memory and parsed first, I don't think you can just pass the disk location of the file to the function |
I've used this method before and it didn't work, whether I use "streaming" or not, but thanks
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年8月27日(星期六) 中午1:42
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [cornerstonejs/cornerstone3D-beta] Cannot destructure property 'pixelRepresentation' (Issue #180)
@IbrahimCSAE I mean I want to display local dicom files by using wadouri prefix, not wadors , is there any way to get these UID?(studyInstanceUID, seriesInstanceUID)
You might need to do something like this this
let imageIds = []
let imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(file);
imageIds.push(imageId)
then you pass that array of imageIds to the volumeLoader, and try making the scheme 'wadouri' without the word streaming.
I didn't try this so I'm not sure if it will work, I usually don't work with local dicoms. If you can post your code here I can try to modify it and make it work.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hey, I have the same problem but in production, in my local i don't have this problem. here I call my custom method createImageIdsAndCacheMetaData
and in that method I insert the metadata:
idk if it's a cache thing because in my local server works but in production this messages jumps out 😢 |
Do u have a demo link where the error pops up? |
Yep, it match 😢 this is the first imageId resulting of createImageIdsAndCacheMetaData function and this is the imageIds object of makeVolumeMetadata I will attach the run function, but it's the same of one of the examples.
|
WADO-URI or just "DICOM Part 10 over HTTP" isn't supported out the of box by the Cornerstone3D libraries. You need to use a WADO-RS compliant endpoint to fetch the metadata ahead of time, and then WADO-RS retrieve frames for the URLs. Or you could write your own loader for all of this, but its not recommended for MPR for the reasons outlined here. |
When I use
wadouri
in volume type and then invokevolumeLoader.createAndCacheVolume
, it will throw this error. Stack type is okayThe text was updated successfully, but these errors were encountered: