ImagingDataCommons / highdicom

High-level DICOM abstractions for the Python programming language
https://highdicom.readthedocs.io
MIT License
172 stars 37 forks source link

Multivalue VOI window attributes in presentation states #211

Closed CPBridge closed 1 year ago

CPBridge commented 1 year ago

GSPS creation fails with some images that have value multiplicity > 1 for WindowWidth, WindowCenter and/or WindowCenterWidthExplanation, which is allowed in the standard but is fairly rare. This is because the code to copy the VOI from the source images was not designed to deal with these

This fix addresses this and should make it possible to correctly copy the VOI LUT transformation from source images with multiple values.

Resolves #210

delton137 commented 1 year ago

Hi, I tested this (#211) and it fixes the issue! I ran it on 2 test DICOM that were giving errors before when I tried to create GSPS.

delton137 commented 1 year ago

Got it working on a third DICOM now after fixing a problem on my end. Looks good.