dicom-rs icon indicating copy to clipboard operation
dicom-rs copied to clipboard

Deflated Explicit VR Little Endian Case - "Could not read data set token"

Open PRadeckiDH opened this issue 2 years ago • 3 comments

My apologies if I am misunderstanding something, but whenever I try to use open_file() to create a dicom object (testing out Deflated Explicit VR Little Endian images - ex. the pydicom test file "image_dfl.dcm") I get an error "Could not read data set token". I see a somewhat related issue here but I'm still confused. Why this is occurring only with Deflated Explicit VR Little Endian transfer syntax in my case?

PRadeckiDH avatar May 31 '23 19:05 PRadeckiDH

Hello @PRadeckiDH. The "Could not read data set token" message represents a DICOM parsing error, might may have multiple causes. In this case, the Deflated Explicit VR Little Endian is not supported yet.

There are a few constructs in place which I hope would make the implementation possible (Codec with the Dataset variant). If anyone would like to give it a try, it would be much appreciated.

Enet4 avatar Jun 01 '23 07:06 Enet4

Hi @Enet4 thanks for the response! My apologies, I saw this implementation and assumed that Deflated Explicit VR Little Endian was already supported.

PRadeckiDH avatar Jun 01 '23 18:06 PRadeckiDH

Hi @Enet4 thanks for the response! My apologies, I saw this implementation and assumed that Deflated Explicit VR Little Endian was already supported.

No worries, thank you for bringing this up (there should definitely be an issue to track this support, so here we have it!).

That definition is a stub, so that implementations can recognize it, but it still lacks a data set deflate implementation and the mechanisms at the parser to use it.

Enet4 avatar Jun 01 '23 19:06 Enet4