Welcome, Guest
Guest Settings
Help

DCM4CHE Support Forums » dcm4che user » dcm4che2 DICOM Toolkit Users

Thread: dcm2jpg Exception in DCM multiple frames file


Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Pages: 1 - Last Post: Jul 10, 2008 11:04 AM Last Post By: gunter
jfalvarez

Posts: 2
Registered: 7/9/08
dcm2jpg Exception in DCM multiple frames file
Posted: Jul 9, 2008 7:07 PM
  Click to reply to this thread Reply
Attachment 0020.DCM (416.8 KB)
Hey! :).

I'm trying to get a image file from a DCM with multiple frames, but when I try to do it I got an Exception:

  • jfalvarez@dev2:~/public_html/dcm_example_files$ dcm4che-2.0.15/bin/dcm2jpg 0020.DCM 0020.jpg

Exception in thread "main" org.dcm4che2.data.ConfigurationError: No Image Reader of class org.dcm4che2.imageioimpl.plugins.rle.RLEImageReader available for format:rle
at org.dcm4che2.imageio.ImageReaderFactory.getReaderForTransferSyntax(ImageReaderFactory.java:99)
at org.dcm4che2.imageioimpl.plugins.dcm.DicomImageReader.initCompressedImageReader(DicomImageReader.java:293)
at org.dcm4che2.imageioimpl.plugins.dcm.DicomImageReader.initImageReader(DicomImageReader.java:285)
at org.dcm4che2.imageioimpl.plugins.dcm.DicomImageReader.read(DicomImageReader.java:403)
at org.dcm4che2.tool.dcm2jpg.Dcm2Jpg.convert(Dcm2Jpg.java:137)
at org.dcm4che2.tool.dcm2jpg.Dcm2Jpg.main(Dcm2Jpg.java:238)

Thx for any help!
gunter

Posts: 1,416
Registered: 11/15/07
Re: dcm2jpg Exception in DCM multiple frames file
Posted: Jul 10, 2008 11:04 AM   in response to: jfalvarez in response to: jfalvarez
  Click to reply to this thread Reply
dcm4che-imageio-rle-<version>.jar should be in the CLASSPATH. E.g.:
--- dcm4che-2.0.15/bin/dcm2jpg~	2008-06-23 12:11:00.000000000 +0200
+++ dcm4che-2.0.15/bin/dcm2jpg	2008-07-10 10:25:20.000000000 +0200
@@ -51,6 +51,7 @@
 CP="$CP:$DCM4CHE_HOME/lib/dcm4che-core-2.0.15.jar"
 CP="$CP:$DCM4CHE_HOME/lib/dcm4che-image-2.0.15.jar"
 CP="$CP:$DCM4CHE_HOME/lib/dcm4che-imageio-2.0.15.jar"
+CP="$CP:$DCM4CHE_HOME/lib/dcm4che-imageio-rle-2.0.15.jar"
 CP="$CP:$DCM4CHE_HOME/lib/slf4j-log4j12-1.4.3.jar"
 CP="$CP:$DCM4CHE_HOME/lib/slf4j-api-1.4.3.jar"
 CP="$CP:$DCM4CHE_HOME/lib/log4j-1.2.13.jar"
.

JIRA: DCM-215

I also extended dcm2jpg, to enable to specify the number of the frame to convert from a multi-frame DICOM image: DCM-216
Legend
Expert: 501 - 999999 pts
Contributor: 151 - 500 pts
Member: 1 - 150 pts
dcm4che team
community contributor
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums