Sequence delimitation item missed loading file

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
GiordiX
Posts: 27
Joined: Fri, 2015-01-23, 15:36

Sequence delimitation item missed loading file

#1 Post by GiordiX »

Hi to all. In one of my previous app I have used the DCMTK to create a compressed DICOM file. I use the library only to manage the Pixel Data and make the compression. I mean that I have followed this wiki http://support.dcmtk.org/redmine/projec ... ressedData and after get the PixelData I have created a DICOM file with my unction.

All works perfectly and I can open and see the compressed file without problem. Now I want to do the viceversa, so I want to open the compressed file that I have created, decode it and save again. I have use the simple example here (http://support.dcmtk.org/docs/mod_dcmjpeg.html) to decode but my program fail in the fileformat.loadfile function with this error:

"Sequence Delimitation Item missing" and on console I can read "DcmSequenceOfItems: Reached the end of the stream before the end of sequence PixelData".

If use different files, compressed and uncompressed, not made by me the loadfile functions work... this mean, I think, that when I create the compressed file with the previous app something goes wrong even if I have checked the Tag and I can open the image with a Dicom Viewer software.

Of course, same error output with dcmdjpeg.exe

What means that error? How can I fix it? Maybe I must write the tag DcmSequenceOfItems before the creation of the compressed file?

Hope someone can help

GiordiX
Posts: 27
Joined: Fri, 2015-01-23, 15:36

Re: Sequence delimitation item missed loading file

#2 Post by GiordiX »

Any help?

Post Reply

Who is online

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