cornerstonejs / cornerstoneWADOImageLoader

[DEPRECATED] DICOM WADO Image Loader for the cornerstone library
MIT License
280 stars 267 forks source link

Some dicom file does not display well. Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0. #520

Open BirdLoveFish opened 1 year ago

BirdLoveFish commented 1 year ago

I am developing a mobile app to view dicom image, but some dicom file are not showing properly by latest wadoImageLoader.

The error is: image

If the cornerstone version of OHIF is used, it should be displayed. But on iOS, that version is not well supported.

Here is the Dicom file: https://file-df34.obs.ap-southeast-3.myhuaweicloud.com/ImageWidth3.dcm Here is the test program: https://file-df34.obs.ap-southeast-3.myhuaweicloud.com/DicomWidthGithub.zip