Link

Read DICOM image in Java

You can read DICOM image files in Java with JDeli’s DICOM Decoder.

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:

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
}