cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
528 stars 271 forks source link

Darker Colour of Rendered 8 Bit JPEG DICOM #319

Open jmannau opened 1 year ago

jmannau commented 1 year ago

There is a noticeable difference in colour when rendering a 8 Bit JPEG Baseline lossy DICOM. When rendering this image using Cornerstone 3D the colours are darker and more muted. I have attached a screenshot of the difference below.

The image on the left hand side is rendered using legacy Cornerstone (https://rawgit.com/cornerstonejs/cornerstoneWADOImageLoader/master/examples/dicomfile/index.html)

The image on the right hand side is rendered using Cornerstone 3D (https://www.cornerstonejs.org/live-examples/local.html)

Screen Shot 2022-11-30 at 2 31 37 pm

The dicom file used for this comparison is here us.dcm.zip

swederik commented 1 year ago

Hmm I think this is just a difference in window/level rather than a decoding issue. Maybe we have the wrong default W/L for color images?