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
547 stars 282 forks source link

[Bug] Images appear much darker on iOS #1345

Open mauricio-cdr opened 3 months ago

mauricio-cdr commented 3 months ago

Describe the Bug

Hello, I hope you are doing very well. First of all, I want to thank you for the great work you do.

The problem: It seems that with some images, when viewed on iOS, they appear darker than when viewed on a PC or Android, even though they have the same WWWL value.

Android android

PC, (MAC) c3_pc

IOS c2_ios

Steps to Reproduce

  1. Enter the following study link on iOS: https://viewer-dev.ohif.org/viewer?StudyInstanceUIDs=1.2.276.0.7230010.3.1.2.2723277605.10168.1676054414.178

The current behavior

The images are darker. c2_ios

The expected behavior

That the images display correctly, just like on PC or Android.

c3_pc

OS

IOS 15, 16, 17

Node version

18.13.0

Browser

Chrome 90+, Safari 16.5 +

sedghi commented 3 months ago

Weird, I don't see that happening on my iPhone though

mauricio-cdr commented 2 months ago

with that specific study?

https://github.com/cornerstonejs/cornerstone3D/assets/17281855/8d41a294-cb71-475b-b36a-6a112b0f5fa8

For example, with this image, in any example that I do the test, the same thing happens to me on iOS

i

d
mauricio-cdr commented 2 months ago

with setUseCPURendering(true), colors are displayed correctly but other things fail

IMG_92D1FD907735-1

sedghi commented 2 months ago

Have you shared the data with us?

Could you kindly provide the data if it has been anonymized and you can confirm that there is no patient health information present in any of the headers or embedded within the pixel data?

mauricio-cdr commented 2 months ago

in the comment leave this link https://drive.google.com/file/d/1pRLUCnKEfe8W8DtgdViIPVFwjLqAK4YM/view with the anonymized image