ImagingDataCommons / highdicom

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

SegmentedPropertyTypeModifierCodeSequence (left/right flag) lost in round trip #203

Closed pieper closed 1 year ago

pieper commented 1 year ago

Using this public SEG dataset I tried the following:

>>> seg = highdicom.seg.segread("/opt/data/idc/seg-performance/dicom-seg/full-body-seg/ABD_LYMPH_008 Dennis Bontempi/ABD_LYMPH_008_SEG.dcm")
>>> seg.save_as("/tmp/seg.dcm")

Comparing the dumps of the original (left) and the newly saved file (right) I notice that the left/right modifiers are missing as in the example below. There are some other differences but I think they are inconsequential.

image

CPBridge commented 1 year ago

Yikes, thanks for reporting this @pieper . Definitely a high priority to fix!

CPBridge commented 1 year ago

Resolved with #205