cornerstone3D icon indicating copy to clipboard operation
cornerstone3D copied to clipboard

[Bug] Images appear much darker on iOS

Open mauricio-cdr opened this issue 1 year ago • 2 comments

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 +

mauricio-cdr avatar Jun 24 '24 19:06 mauricio-cdr

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

sedghi avatar Jun 28 '24 17:06 sedghi

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 avatar Jul 04 '24 06:07 mauricio-cdr

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

IMG_92D1FD907735-1

mauricio-cdr avatar Jul 09 '24 21:07 mauricio-cdr

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?

sedghi avatar Jul 12 '24 18:07 sedghi

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

mauricio-cdr avatar Jul 15 '24 18:07 mauricio-cdr

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.

sedghi avatar Oct 29 '24 15:10 sedghi