storescu fails to convert private pixel data

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
andreasb
Posts: 24
Joined: Thu, 2011-02-24, 11:27
Location: Bremen

storescu fails to convert private pixel data

#1 Post by andreasb »

Hi,
We have some data sets that storescu tries to convert to JPEG lossless as requested by the receiver, but fails due to some private sequence. The private sequence contains all tags needed to calculate the pixel data length, and a pixel data tag which contains much less data then expected, so the encoder fails with the message: True lossless encoder: Cannot change representation, not enough data.
I have no idea what this sequence contains, but my question is: is it correct that private sequences are encoded the same way as non-private sequences in this case? I guess it is so, and the data in question may be considered invalid, but I'm not sure I understand the standard correctly in this case.

Sorry for the slightly off-topic post,

Thanks,
Andreas

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: storescu fails to convert private pixel data

#2 Post by Michael Onken »

Hi,

posted into "DCMTK General" it is more on-topic (I felt free to move it here) ;).

Private sequences usually follow the rules of non-private sequences in terms of encoding. However, as far as I understand one should never use the Pixel Data element at all in private sequence's items, as part 5 of the standard says:
For a Standard Extended SOP Class the Attributes Pixel Data (07FE,0010), Float Pixel Data (7FE0,0008), Double Float Pixel Data
(7FE0,0009), Waveform Data (5400,1010) and Overlay Data (60xx,3000) shall not be included within a Private Sequence Item, nor
within a standard Sequence Item nested directly or indirectly within a Private Sequence Item.
So I think the dataset is invalid.

Btw (this is why I moved the topic): I wonder that storescu converts your data automatically at all; did you use the ON_THE_FLY_COMPRESSION define?
What result you get when sending it with dcmsend?

Best,
Michael

Edit: Ah yes, saw it in your other post (ON_THE_FLY_COMPRESSION)

andreasb
Posts: 24
Joined: Thu, 2011-02-24, 11:27
Location: Bremen

Re: storescu fails to convert private pixel data

#3 Post by andreasb »

Ah, thanks - I did not see this part.
And yes, we use ON_THE_FLY_COMPRESSION. If we send the data without compression there are no problems.

Thanks,
Andreas

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest