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
storescu fails to convert private pixel data
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: storescu fails to convert private pixel data
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:
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)
posted into "DCMTK General" it is more on-topic (I felt free to move it here)
![Wink ;)](./images/smilies/icon_e_wink.gif)
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:
So I think the dataset is invalid.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.
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)
Re: storescu fails to convert private pixel data
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
And yes, we use ON_THE_FLY_COMPRESSION. If we send the data without compression there are no problems.
Thanks,
Andreas
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest