Skip to main content

ImageIO.getImageReadersByFormatName("dicom") does not work

2 replies [Last post]
tarun818
Offline
Joined: 2011-02-23

Hello everyone

I have a problem related to javax.imageio.ImageIO as explained below:
Iterator<ImageReader> readersItrator = ImageIO.getImageReadersByFormatName("dicom");
readersItrator.hasNext() //ALWAYS RETURN FALSE
Please suggest me any solution.
Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bradleyross
Offline
Joined: 2011-06-30

If you download the binary package for the toolkit from www.dcm4che.org and place the dcm4che2-imageio jar in your classpath, it should automatically pick up the new codecs and should appear when you run the code.

bokken
Offline
Joined: 2010-05-21

Dicom is not a format natively supported by jai. The dcm4che toolkit (in both 1.x and 2.x flavors) has an ImageReader implementation for dicom files.