Closed MountainAndMorning closed 1 year ago
Thank you very much for reporting this bug, @MountainAndMorning! This was caused by the file's Pixel Data filling in the pixel data values beyond the bits effectively reserved for imaging data (bits stored is 12 in the example, but the 4 high bits would occasionally be set to 1). This is technically allowed, according to the standard, but was not always considered here. I have just patched this in #347.
Thanks for your help. I have another stupid question. How can I update dicom-rs to this patched version.
How can I update dicom-rs to this patched version.
You can temporarily specify the dependency as coming from the git branch containing the patch. I might work on publishing the patch later at some point.
[dependencies]
dicom_pixeldata = { git = "https://github.com/Enet4/dicom-rs.git", branch = "bug/346" }
A note of warning though, there are some breaking changes from past merged contributions.
Great! Thank you very much.
I try to use the toimage command line utility with the attached dicom file but get the error below:
1.2.840.113704.7.1.1.8340.1491789704.637.dcm.zip