Not same color intensities between pydicom and highdicom #2186
Unanswered
lucas02061
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If you just use the raw pixel data in Also note that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am running a segmentation model on a WSI opened with pydicom. However when opening using pixelarray it seems to be quite memory intensive and even with 96gb of memory I run out of memory for larger WSI's.
I tried to mitigate this by using highdicom to load a single frame at a time, but even though the data gathered from pydicom and highdicom contains the "same" image, the color intensity seems to be quite different. Essentially the contrast is higher when using pydicom and lower when using highdicom.
This leads to problems during training since the lower contrast for highdicom seems to decrease performance quite drastically. Models trained on pydicom images are way better than the opposite. Is there a way to load the image using highdicom but still get the same intensity as pydicom? If no, is there a less memory-intensive way of loading the image using pydicom?
Example of how I retrieve the data:
Beta Was this translation helpful? Give feedback.
All reactions