Dicom file conversion problems

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
mc2011
Posts: 7
Joined: 2011-09-04T01:49:51-07:00
Authentication code: 8675308

Dicom file conversion problems

Post by mc2011 »

Hi all,

i frequently use ImageMagick tool to convert Dicom file to Jpeg without problems (i use standard convert.exe program).
Now i have problems to convert a new Dicom file using the following ImageMagick versions:

1) ImageMagick 6.5.9 Q16 : crashes with a serious ImageMagick Studio Library error (windows asks me for a debug with Visual Studio 2008 to see details)
2) ImageMagick 6.7.2 Q16 (last version) : doesn't crash but it doesn't terminate the conversion (i need to abort convert.exe using Task Manager)

If is useful i can upload the file (it is a 12 MB file).
Has anyone some ideas to detect why this particular Dicom is not compatible with ImageMagick libraries?

This is PowerDicom tags report:
0002,0000 File Meta Information Group Leng UL 1 210
0002,0001 File Meta Information Version OB 1 00 01
0002,0002 Media Storage SOP Class UID UI 1 1.2.840.10008.5.1.4.1.1.1
0002,0003 Media Storage SOP Instance UID UI 1 1.3.51.0.7.13282136769.13171.4...(58 Bytes)
0002,0010 Transfer Syntax UID UI 1 1.2.840.10008.1.2
0002,0012 Implementation Class UID UI 1 1.2.840.10008.114368.1.3
0002,0013 Implementation Version Name SH 1 IMPAXEL-REC1.0
0002,0016 Source Application Entity Title AE 1 2271AS01
0008,0008 Image Type CS 1 ORIGINAL
0008,0012 Instance Creation Date DA 1 20110822
0008,0013 Instance Creation Time TM 1 143804
0008,0016 SOP Class UID UI 1 1.2.840.10008.5.1.4.1.1.1
0008,0018 SOP Instance UID UI 1 1.3.51.0.7.13282136769.13171.4...(58 Bytes)
0008,0020 Study Date DA 1 20110822
0008,0022 Acquisition Date DA 1 20110822
0008,0023 Content Date DA 1
0008,002A Acquisition DateTime DT 1 20110822144042
0008,0030 Study Time TM 1 143914.000000
0008,0032 Acquisition Time TM 1 144042
0008,0033 Content Time TM 1
0008,0050 Accession Number SH 1 111601842
0008,0060 Modality CS 1 CR
0008,0070 Manufacturer LO 1 Agfa
0008,0080 Institution Name LO 1 masked for privacy
0008,0081 Institution Address ST 1 masked for privacy
0008,0090 Referring Physician's Name PN 1 Masked by an unregistered trial copy of PowerDicom.
0008,1010 Station Name SH 1 masked for privacy
0008,1030 Study Description LO 1 COLONNA LOMBO-SACRALE (2 pr.)
0008,103E Series Description LO 1 Lombare AP
0008,1040 Institutional Department Name LO 1 masked for privacy
0008,1050 Performing Physician's Name PN 1
0008,1070 Operators' Name PN 1 Masked by an unregistered trial copy of PowerDicom.
0008,1090 Manufacturer's Model Name LO 1 CR 35
0008,1111 Referenced Performed Procedure S SQ 1 FE FF 00 E0 FF FF FF FF 08 00 ...(114 Bytes)
0008,1120 Referenced Patient Sequence SQ 1 FE FF 00 E0 FF FF FF FF 08 00 ...(110 Bytes)
0010,0010 Patient's Name PN 1 Masked by an unregistered trial copy of PowerDicom.
0010,0020 Patient ID LO 1 139236
0010,0030 Patient's Birth Date DA 1 19630210
0010,0040 Patient's Sex CS 1 M
0010,1010 Patient's Age AS 1 048Y
0010,1030 Patient's Weight DS 1
0018,0010 Contrast/Bolus Agent LO 1
0018,0015 Body Part Examined CS 1 LSPINE
0018,1000 Device Serial Number LO 1 3393
0018,1004 Plate ID LO 1 K2WKR7
0018,1020 Software Version(s) LO 1 c25_3103
0018,1164 Imager Pixel Spacing DS 2 0.15\0.15
0018,1260 Plate Type SH 1 code36
0018,1402 Cassette Orientation CS 1 PORTRAIT
0018,1403 Cassette Size CS 1 35CMX43CM
0018,1405 Relative X-Ray Exposure IS 1 220
0018,5101 View Position CS 1 AP
0018,6000 Sensitivity DS 1 300
0019,0010 Private Creator LO 1 Agfa ADC NX
0020,000D Study Instance UID UI 1 1.2.124.113532.30.51673.63059....(54 Bytes)
0020,000E Series Instance UID UI 1 1.3.51.0.7.2656170724.53758.92...(56 Bytes)
0020,0010 Study ID SH 1
0020,0011 Series Number IS 1 1
0020,0013 Instance Number IS 1 1
0020,0020 Patient Orientation CS 2 L\F
0020,0060 Laterality CS 1
0028,0002 Samples per Pixel US 1 1
0028,0004 Photometric Interpretation CS 1 MONOCHROME1
0028,0010 Rows US 1 2828
0028,0011 Columns US 1 2320
0028,0030 Pixel Spacing DS 2 0.15000000596046\0.15000000596...(34 Bytes)
0028,0100 Bits Allocated US 1 16
0028,0101 Bits Stored US 1 12
0028,0102 High Bit US 1 11
0028,0103 Pixel Representation US 1 0
0028,0300 Quality Control Image CS 1 NO
0028,0301 Burned In Annotation CS 1 NO
0028,1050 Window Center DS 1
0028,1051 Window Width DS 1
0028,1052 Rescale Intercept DS 1 0
0028,1053 Rescale Slope DS 1 1
0028,1054 Rescale Type LO 1 LOG_E REL
0028,2110 Lossy Image Compression CS 1 00
0028,3010 VOI LUT Sequence SQ 1 FE FF 00 E0 FF FF FF FF 28 00 ...(3836 Bytes)
0029,0010 Private Creator LO 1 MITRA PRESENTATION 1.0
0029,0011 Private Creator LO 1 MITRA OBJECT DOCUMENT 1.0
0029,0012 Private Creator LO 1 MITRA MARKUP 1.0
0029,1100 Not in Dictionary UN 1
0031,0010 Private Creator LO 1 AGFA PACS Archive Mirroring 1....(32 Bytes)
0031,1000 Not in Dictionary UN 1 52 20
0031,1001 Not in Dictionary UN 1 25 A8 58 4E
0032,000A Study Status ID CS 1 READ
0032,1033 Requesting Service LO 1 OSTEOARTICOLARE E TESSUTI MOLL...(32 Bytes)
0033,0010 Private Creator LO 1 MITRA OBJECT UTF8 ATTRIBUTES 1...(32 Bytes)
0033,1004 Not in Dictionary UN 1 43 4F 4C 4F 4E 4E 41 20 4C 4F 4D 42 4F 2D 53 41 43 52 41 4C 45 20 28 32 20 70 72 2E 29 20
0033,1013 Not in Dictionary UN 1 42 49 47 49 4F 4E 49 5E 46 41 42 52 49 5A 49 4F
0038,0300 Current Patient Location LO 1 1-0
0040,0244 Performed Procedure Step Start D DA 1 20110822
0040,0245 Performed Procedure Step Start T TM 1 143914
0040,0253 Performed Procedure Step ID SH 1 1
0040,0275 Request Attributes Sequence SQ 1 FE FF 00 E0 FF FF FF FF 40 00 ...(32 Bytes)
0040,1001 Requested Procedure ID SH 1 111601842
7FE0,0010 Pixel Data OW 1 0E00 0E01 0E06 0E10 0E09 0E05 ...(13121920 Bytes)

Thanks
Marco
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dicom file conversion problems

Post by magick »

Post a URL so we can download your Dicom image and reproduce the problem. Thanks.
mc2011
Posts: 7
Joined: 2011-09-04T01:49:51-07:00
Authentication code: 8675308

Re: Dicom file conversion problems

Post by mc2011 »

Hi,

this is the url to download the file : http://www.easy-share.com/1917922215/AAAAPBOA.dcm
(you need to wait 30 seconds for a free download, free download button is located bottom right)

Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dicom file conversion problems

Post by magick »

We can reproduce the problem you posted and have a patch. Look for it in the next point release of ImageMagick, 6.7.2-2 in about a week. Thanks.
mc2011
Posts: 7
Joined: 2011-09-04T01:49:51-07:00
Authentication code: 8675308

Re: Dicom file conversion problems

Post by mc2011 »

thanks. Marco.
mc2011
Posts: 7
Joined: 2011-09-04T01:49:51-07:00
Authentication code: 8675308

Re: Dicom file conversion problems

Post by mc2011 »

Hi magick,

i have installed new version 6.7.2-3 and now it works but the converted jpg image is totally black.

thanks
Marco
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dicom file conversion problems

Post by magick »

We found the problem. Look for a patch in the next point release of ImageMagick.
mc2011
Posts: 7
Joined: 2011-09-04T01:49:51-07:00
Authentication code: 8675308

Re: Dicom file conversion problems

Post by mc2011 »

Hi all,

using new version 6.7.2-5 i have resolved previous issue (image totally black) but now i have a new serious problem:

using this new version to convert other dicom files (converted fine by previous imagemagick versions) i obtain a great loss of details.
To see the effect you can download this zip file: http://www.easy-share.com/1918125243/di ... oblems.zip

(.zip content: original.dcm is the dicom file, conversion_ok is a jpg converted using imagemagick 6.5.9, wrong conversion is a jpg converted with 6.7.2-5)

Thanks
Marco
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dicom file conversion problems

Post by magick »

We found the problem. Look for a patch in the next point release of ImageMagick.
camol
Posts: 10
Joined: 2013-04-19T07:27:55-07:00
Authentication code: 6789

Re: Dicom file conversion problems

Post by camol »

Hi I get this error:

convert IM-0001-0001.dcm image.jpg

convert: no decode delegate for this image format `/var/folders/4v/26b3kttn6k56qtxb341g3bc00000gn/T/magick--0DYXMMw' @ error/constitute.c/ReadImage/544.
convert: no images defined `image.jpg' @ error/convert.c/ConvertImageCommand/3032.

in version ImageMagick 6.7.7-6 2012-09-18 Q16 with this file http://www.crocko.com/7657C1DFB788415D9 ... 1-0001.dcm

Please help
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dicom file conversion problems

Post by magick »

Your image converts properly for us. We're using ImageMagick 6.8.4-10. You may need to upgrade your version of ImageMagick.
camol
Posts: 10
Joined: 2013-04-19T07:27:55-07:00
Authentication code: 6789

Re: Dicom file conversion problems

Post by camol »

I've got 6.8.0-10 but on http://www.imagemagick.org/script/download.php is only 6.8.4-10
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dicom file conversion problems

Post by magick »

6.8.4-10 is the right version. We corrected our mistake.
camol
Posts: 10
Joined: 2013-04-19T07:27:55-07:00
Authentication code: 6789

Re: Dicom file conversion problems

Post by camol »

I'm using Homebrew for this stuff however the latest version there is 6.8.0-10 I tryied this http://www.imagemagick.org/script/binar ... php#macosx but I get now command found after convert
camol
Posts: 10
Joined: 2013-04-19T07:27:55-07:00
Authentication code: 6789

Re: Dicom file conversion problems

Post by camol »

I've installed the latest version however still I get:

convert dicom.dcm image.jpg

convert: no decode delegate for this image format `/var/tmp/magick-90028jSvFlAwnnYoP' @ error/constitute.c/ReadImage/550.
convert: no images defined `image.jpg' @ error/convert.c/ConvertImageCommand/3106.
Post Reply