Skip to content

Wrong VR assumed when reading pixel padding in Implicit VR dataset #460

@thomas-tribus

Description

@thomas-tribus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-libArea: libraryC-parserCrate: dicom-parserbugThis is a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions