As you pointed out using a different executable for this particular file may assist.
However you were unable to decompress it with the executable you recommended.
I hesitated to point fingers at the compressor, but I suppose anything is possible.
It's just that we were told about the error with this transfer syntax and I just created a file with that transfer syntax using Dicom Objects and got the same error.
So I suspect that if two different compressors and the same decompressor give the same error, it is likely the decompressor.
Maybe it's time to get a newer version of dcmtk and build it, as the executables are getting on in age as you pointed out. However I assume you have already done that.
It is of course pretty urgent.
Using 3.6.1 binaries (on a MAC) this is what I now get.
Code: Select all
./dcml2pnm +obt +Ww 1722 2225 -v ~/Downloads/JPEG_LS_Lossless_1_2_840_10008_1_2_4_80.dcm output.bmp
I: reading DICOM file: /Users/bob/Downloads/JPEG_LS_Lossless_1_2_840_10008_1_2_4_80.dcm
I: preparing pixel data
I: Current Frame Number: 0
E: can't change to unencapsulated representation for pixel data
E: can't convert input pixel data, probably unsupported compression
F: Invalid DICOM image
Using 3.6.1 binaries (on a MAC) this is what i was getting using the wrong application.
Code: Select all
./dcmj2pnm +obt +Ww 1722 2225 -v ~/Downloads/JPEG_LS_Lossless_1_2_840_10008_1_2_4_80.dcm output.bmp
I: reading DICOM file: /Users/bob/Downloads/JPEG_LS_Lossless_1_2_840_10008_1_2_4_80.dcm
I: preparing pixel data
E: can't change to unencapsulated representation for pixel data
E: can't determine 'PhotometricInterpretation' of decompressed image
E: mandatory attribute 'PhotometricInterpretation' is missing or can't be determined
F: Missing attribute
Code: Select all
./dcmdjpls -v -d ~/Downloads/JPEG_LS_Lossless_1_2_840_10008_1_2_4_80.dcm test.bmp
D: $dcmtk: dcmdjpls v3.6.0 2011-01-06 $
D:
I: reading input file /Users/bob/Downloads/JPEG_LS_Lossless_1_2_840_10008_1_2_4_80.dcm
D: DcmItem::checkTransferSyntax() TransferSyntax="Little Endian Explicit"
I: decompressing file
I: Current Frame Number: 0
F: Too much compressed data, trailing data after image: decompressing file: /Users/bob/Downloads/JPEG_LS_Lossless_1_2_840_10008_1_2_4_80.dcm