cornerstonejs / cornerstone

[Deprecated] Use Cornerstone3D Instead https://cornerstonejs.org/
MIT License
2.07k stars 598 forks source link

Problem with a DICOM image #57

Closed danielaromeo closed 8 years ago

danielaromeo commented 8 years ago

I'm developing a custom DICOM viewer using your demo as a base and I'm having issues with a particular set of images. Attached you can find one of them. I tried to upload that image here: http://rawgit.com/chafey/cornerstoneWADOImageLoader/master/examples/dicomfile/index.html and it worked. So I have added the following js codec libraries (two of them are used in your page):

but the image still doesn't show. All I can see is a white rectangle (please see the attached screenshot). Do you have any advice to understand what's going on and fix my issue?

Thank you! Daniela

issue.zip

chafey commented 8 years ago

The image is JPEG Lossless (.70) which doesn't currently require a codec. Are you using the latest cornerstoneWADOImageLoader release?

danielaromeo commented 8 years ago

Hi chafey, thank you for your prompt reply.

I was using v0.7.0, not the latest . Now I have tried with the latest one (v0.13.3) and I cannot see anything, the white rectangle disappeared and the image is not shown at all.

chafey commented 8 years ago

you may need to update all the other libraries too - cornerstone, cornerstoneTools, dicomParser, etc

danielaromeo commented 8 years ago

Ok, I'll try and let you know! Thank you again!

danielaromeo commented 8 years ago

Hi chafey, upgrading all the libraries to the latest version worked with that image, but I have another image that cannot be opened. I know it is compressed, so maybe the issue is there. You can find it attached to this message, I hope you'll be able to help me.

IDEFAULT.zip Thank you!

malaterre commented 8 years ago

Best example for JPEG Image Compression note ! You should share it on DICOM newsgroup.

danielaromeo commented 8 years ago

Hi malaterre, thank you for your reply. Is this the DICOM newsgroup? https://groups.google.com/forum/#!forum/comp.protocols.dicom .

malaterre commented 8 years ago

@danielaromeo yes ! Pay attention that this image is 'made-up' it cannot possibly be coming out of a real world PACS system. But clearly a robust library should handle that beast.

danielaromeo commented 8 years ago

Thank you very much malaterre! Weasis Java Viewer opens it, but it seems it's the only one software which can in fact.

Thank you everyone for the help!

malaterre commented 8 years ago

I did not meant for you to close this bug report...

danielaromeo commented 8 years ago

Sorry, I thought it was solved as the image is a made-up one (my team did it) and that is the problem, not your viewer.

chafey commented 8 years ago

This image is missing the rows and columns attributes which are required by DICOM.

danielaromeo commented 8 years ago

Thank you chafey, this is a precious hint!