Hi!
I'm having problems extracting images from a dicom file (as a matter of fact it only has a single image).
When I try with medcon, I get this:
Code:
$ medcon -w -d -v -o prueba -c png -f dicom.dcm
(X)MedCon-Message: Writing in little endian as default
(X)MedCon-Message: Read fallback format DICOM 3.0
(X)MedCon-Message: Files overwrite is ON
(X)MedCon-Message: Color 24 bits RGB is ON
(X)MedCon-Message: DICM Reading <dicom.dcm> ...
Jun 17 11:28:27 log[16548]: warning: LJPG compiled with 4096-wide image limit
Jun 17 11:28:27 log[16548]: warning: Check out 'jpegutil.c' file to increase
Jun 17 11:28:27 log[16548]: error: Decompression failed
Jun 17 11:28:27 log[16548]: error: No images found
(process:16548): (X)MedCon-WARNING **: Reading: DICM Error reading file
I tried recompiling and setting MDC_LJPG_LIMIT to much larger values (as much as 400x larger) and the same exact message (even saying the limit was set at 4096, not the newer value) was
Then I tried with mitools and I get a different kind of error:
Code:
$ miconv dicom.dcm resultado/
FileIO |FileIO.autoread : Reading format DICOM
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
FileIO |ERROR: DicomFormat.read : Unable to load DICOM image dicom.dcm - MissingAttribute
FileIO |ERROR: FileIO.autoread : Cannot read file dicom.dcm
Data |ERROR: miconv.main : autoread failed
What's going on?