cornerstone3D
cornerstone3D copied to clipboard
[Bug] Images appear much darker on iOS
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
PC, (MAC)
IOS
Steps to Reproduce
- 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.
The expected behavior
That the images display correctly, just like on PC or Android.
OS
IOS 15, 16, 17
Node version
18.13.0
Browser
Chrome 90+, Safari 16.5 +
Weird, I don't see that happening on my iPhone though
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
with setUseCPURendering(true), colors are displayed correctly but other things fail
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?
in the comment leave this link https://drive.google.com/file/d/1pRLUCnKEfe8W8DtgdViIPVFwjLqAK4YM/view with the anonymized image
Try with cornersotnte3d 2.0 it is fixed
Cornerstone3D 2.0 has been released. It comes with:
-
New Segmentation Architecture: Segmentations are now treated as first-class data structures, not just tools. This allows for greater flexibility and support for advanced visualization, such as multi-representational views, viewport-specific customizations, and easier management within MPR layouts.
-
Introduction of VoxelManager: A more memory-efficient and streamlined approach to voxel data handling, replacing traditional scalar arrays with a unified, image-based system. This change reduces memory usage, enhances data clarity, and simplifies data access across stacks and volumes.
For more details on these updates and to guide you through the migration, please refer to our Migration Guide.