Dicom-rs reads element (0028,0120) as an Unsigned Short, but it should have been signed.
Dcmtk output (dcmdump)
⚡ dcmdump CT000000.dcm| grep "(0028,0120)"
(0028,0120) SS -2000
Dicom-rs output (dicom-dump)
⚡ dicom-dump CT000000.dcm| grep "(0028,0120)"
(0028,0120) PixelPaddingValue US (1, 2 bytes): 63536
I'm guessing the error might be related to:
The Value Representation of this Attribute is determined by the value of Pixel Representation (0028,0103).
See: https://dicom.nema.org/medical/dicom/2020b/output/chtml/part03/sect_C.7.5.html
I have attached the file for the curious.
CT000000.dcm
Dicom-rs reads element (0028,0120) as an Unsigned Short, but it should have been signed.
Dcmtk output (dcmdump)
Dicom-rs output (dicom-dump)
I'm guessing the error might be related to:
See: https://dicom.nema.org/medical/dicom/2020b/output/chtml/part03/sect_C.7.5.html
I have attached the file for the curious.
CT000000.dcm