DCMTK 3.6.0 win32 dcmcjpeg.exe

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
hsoltau
Posts: 4
Joined: Wed, 2013-06-26, 16:31
Location: Heidelberg Germany

DCMTK 3.6.0 win32 dcmcjpeg.exe

#1 Post by hsoltau »

Hi all,

i use dcmcjpeg.exe with no problems on a 12 MB Mammo Image with Version 3.5.3 win32

with version 3.6.0 i get an error:

D:\dcmtk-3.6.0-win32-i386\dcmtk-3.6.0-win32-i386\bin>dcmcjpeg.exe mammo_orig.dcm
what.dcm
E: True lossless encoder: Cannot change representation, not enough data
F: no conversion to transfer syntax JPEG Lossless, Non-hierarchical, 1st Order P
rediction possible!

what did i miss?

thanks
Henning

Andreas Thiel
Posts: 18
Joined: Tue, 2007-12-18, 14:25

Re: DCMTK 3.6.0 win32 dcmcjpeg.exe

#2 Post by Andreas Thiel »

It seems a problem with your spezific Mammofile.
everthing works fine at our site.

Can you send me a download link with the image?

And / our a full dcmdump output?

hsoltau
Posts: 4
Joined: Wed, 2013-06-26, 16:31
Location: Heidelberg Germany

Re: DCMTK 3.6.0 win32 dcmcjpeg.exe

#3 Post by hsoltau »

hi andreas,

its funny, dcmcjpeg.exe in version 3.6.0 doesnt seem to work with all of my test files.

the files are all exported of our PACS Vendor Workstation Software, and with 3.5.3 i can compress them without errors but not with 3.6.0

greetings
Henning

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

Re: DCMTK 3.6.0 win32 dcmcjpeg.exe

#4 Post by Michael Onken »

Hi Henning,

if you would like us to have a look, send a non-working image to dicom at offis dot de, then we'll have a look.

Thanks,
Michael

hsoltau
Posts: 4
Joined: Wed, 2013-06-26, 16:31
Location: Heidelberg Germany

Re: DCMTK 3.6.0 win32 dcmcjpeg.exe

#5 Post by hsoltau »

thanks in advance, mail sent :D

Andreas Thiel
Posts: 18
Joined: Tue, 2007-12-18, 14:25

Re: DCMTK 3.6.0 win32 dcmcjpeg.exe

#6 Post by Andreas Thiel »

Hi Henning,
It is an problem with the private group 0009 (which seems to be an image icon ) in your file.
There is a 2. PixelData element in it which can not be compressed.

As a workaround: dcmodify -ep US_orig.dcm before compressing.

But of course, we have to change our code to handle such problems.

hsoltau
Posts: 4
Joined: Wed, 2013-06-26, 16:31
Location: Heidelberg Germany

Re: DCMTK 3.6.0 win32 dcmcjpeg.exe

#7 Post by hsoltau »

OK,
thanks a lot...
in the meantime i use the 3.5.3 version of dcmcjpeg.exe in my script

Henning

J. Riesmeier
DCMTK Developer
Posts: 2506
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: DCMTK 3.6.0 win32 dcmcjpeg.exe

#8 Post by J. Riesmeier »

From the textual dump of "US_orig.dcm" I would suppose that the PixelData ("ff\d8\ff\e0\00\10\4a...") in the private sequence (0009,1010) is JPEG compressed, although the transfer syntax of the dataset is BigEndianExplicit. This is not allowed according to the DICOM standard!

The error message ("not enough data") is also clear: 96 (Rows) * 128 (Columns) * 3 (SamplesPerPixel) = 36,864 bytes, but there are only 4,066 bytes.

I didn't check why DCMTK 3.5.3 was acting differently in this regard...

Post Reply

Who is online

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