Skip to content

DICOM data (UltraSound) displayed in wrong color #1679

Answered by mrbean-bremen
star50037 asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mrbean-bremen
Comment options

@star50037
Comment options

Answer selected by star50037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants