All other questions regarding DCMTK
Moderator: Moderator Team
mlfarrell
Posts: 10 Joined: Wed, 2009-10-28, 21:59
#1
Post
by mlfarrell » Sun, 2013-12-22, 21:13
Hello.
I've released a product that uses DCMTK and I'm having trouble with one of my customers file formats.
Can someone please help me figure out what's going on.
The error is:
Code: Select all
E: can't change to unencapsulated representation for pixel data
E: can't decompress first frame: Codec does not support this kind of color conversion
E: can't determine 'PhotometricInterpretation' of decompressed image
E: mandatory attribute 'PhotometricInterpretation' is missing or can't be determined
mlfarrell
Posts: 10 Joined: Wed, 2009-10-28, 21:59
#2
Post
by mlfarrell » Sun, 2013-12-22, 21:35
More info below:
Code: Select all
Mikes-MacBook-Pro:bad dcm mike$ gdcminfo 0025.dcm
MediaStorage is 1.2.840.10008.5.1.4.1.1.2 [CT Image Storage]
TransferSyntax is 1.2.840.10008.1.2.4.70 [JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]): Default Transfer Syntax for Lossless JPEG Image Compression]
NumberOfDimensions: 2
Dimensions: (640,640,1)
SamplesPerPixel :1
BitsAllocated :16
BitsStored :16
HighBit :15
PixelRepresentation:1
ScalarType found :INT16
PhotometricInterpretation: MONOCHROME2
PlanarConfiguration: 0
TransferSyntax: 1.2.840.10008.1.2.4.70
Origin: (-320,-320,93.75)
Spacing: (0.25,0.25,1)
DirectionCosines: (1,0,0,0,1,0)
Rescale Intercept/Slope: (0,1)
Orientation Label: AXIAL
Mikes-MacBook-Pro:bad dcm mi
J. Riesmeier
DCMTK Developer
Posts: 2504 Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:
#3
Post
by J. Riesmeier » Mon, 2013-12-23, 12:45
Can you process the file with dcmj2pnm or dcmdjpeg?
mlfarrell
Posts: 10 Joined: Wed, 2009-10-28, 21:59
#4
Post
by mlfarrell » Tue, 2013-12-24, 02:13
Mikes-MacBook-Pro:bad dcm mike$ dcmdjpeg 0025.dcm
$dcmtk: dcmdjpeg v3.6.0 2011-01-06 $
dcmdjpeg: Decode JPEG-compressed DICOM file
error: Missing parameter dcmfile-out
Mikes-MacBook-Pro:bad dcm mike$ dcmdjpeg 0025.dcm ~/Desktop/out.jpg
F: Illegal parameter: reading file: 0025.dcm
It's doing that even on valid files though so I don't know what's up.
J. Riesmeier
DCMTK Developer
Posts: 2504 Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:
#5
Post
by J. Riesmeier » Tue, 2013-12-24, 12:22
First of all, dcmdjpeg does not create JPEG but DICOM files (with decompressed pixel data).
If you want to create JPEG images, you should use dcmj2pnm instead (see
documentation ).
If you want us to analyse your DICOM image file, please send it by email to bugs/at/dcmtk/dot/org.
Users browsing this forum: Ahrefs [Bot] , Google [Bot] and 1 guest