Link

Java DICOM Reader

JDeli includes a DICOM Reader to read DICOM images into Java. The DICOM Decoder is written in 100% Java with no dependencies.

Key information:

  • 100% Java solution. No dlls or dependencies on native code
  • Compression: Uncompressed, jpeg2000, jpeg, jpeg lossless
  • Frame: Single or multi frame

Quick start:

JDeli can automatically detect the file type and will use the DICOM File Reader

BufferedImage image = JDeli.read(dicomImageFile);

or

DicomDecoder decoder = new DicomDecoder();
BufferedImage image = decoder.read(dicomData);

See the full Javadoc.

Read Multi Frame dicom files

This needs the DicomDecoder class

File file = new File("/path/to/file");
DicomDecoder dec = new DicomDecoder();
int totalFrames = dec.getFrameCount(file);
for (int i = 0; i <= totalFrames; i++) {
   BufferedImage image = dec.read(i , file); // i is the frame number
   // Insert BufferedImage handling code here
}