cornerstone icon indicating copy to clipboard operation
cornerstone copied to clipboard

LoadImage fails randomly with a specific dicom

Open thibnes opened this issue 5 years ago • 4 comments

Hello there,

I'm facing an issue with a specific dicom. When calling cornerstone.loadImage it throws the following error: offset is out of bounds. However, note that it works sometimes when going step by step using the chrome devTools.

Here is the jsFiddle that reproduces the error: https://jsfiddle.net/thibnes/f8mpvbr5/1/

I'm using

  • cornerstone-core - 2.3.0
  • cornerstoneWADOImageLoader - 3.0.6
  • dicom-parser - 1.8.5

Here is attached also the dicom just in case. dicom31.4_anon.dcm.zip

Could anyone help me with that issue, please?

thibnes avatar Mar 23 '20 10:03 thibnes

A dicom-parser dump of the uploaded file: https://rawgit.com/cornerstonejs/dicomParser/master/examples/dumpWithDataDictionary/index.html

My best guess is that this is an image decoding issue cause by the old codecs in cornerstone-wado-image-loader:

TransferSyntaxUID(x00020010) : "1.2.840.10008.1.2.4.90" [ JPEG 2000 Image Compression (Lossless Only) ]

That's just a quick guess. Unfortunately, I don't have much availability to dig in to this issue.

dannyrb avatar Mar 26 '20 03:03 dannyrb

Thank you @dannyrb. You might be right, would you know a workaround in that case?

thibnes avatar Mar 26 '20 13:03 thibnes

@thibnes did you ever find a solution to this?

amrita-syn avatar Nov 20 '21 05:11 amrita-syn

No, I did not find a solution @amrita-syn .

thibnes avatar Nov 22 '21 07:11 thibnes