DICOM data (UltraSound) displayed in wrong color #1679
-
color incorrect and has some stripe
Here are the group 0028 elements , dicom_file and my environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your initial code snippet was correct - setting a VOI LUT on an RGB image does not make sense. If converting the image to Little Endian first, for example using As an aside: I first opened the file using the Weasis viewer, which is generally quite a good viewer, and it had the same output as matplotlib - support of Big Endian transfer syntax seems to be on the decline... |
Beta Was this translation helpful? Give feedback.
Your initial code snippet was correct - setting a VOI LUT on an RGB image does not make sense.
The problem seems to be the transfer syntax - Big Endian Explicit - which seems not to be correctly handled in this case. This transfer syntax is long deprecated, and I haven't seen it in the wild for many years now, but we still should support it.
If converting the image to Little Endian first, for example using
dcmodify +te
(from dcmtk), it will display correctly using your initial code. I'm not sure yet what the problem is here (pydicom should still support Big Endian data), but we will have a closer look at this.As an aside: I first opened the file using the Weasis viewer, which is generall…