Java DICOM Reader
The JDeli Java image library includes a DICOM Reader to read DICOM images into Java. The DICOM Decoder is written in 100% Java and provides DICOM support 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:
Add JDeli to your project via Maven or Gradle, or see using JDeli with Java modules.
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);
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
}
Frequently asked questions
Does JDeli produce better DICOM reading and decoding than Java ImageIO?
Yes. While ImageIO can read DICOM, JDeli provides better compatibility, more consistent output across platforms, and access to format-specific decoding options.
Does reading or decoding DICOM in Java with JDeli require additional libraries?
No. JDeli is a 100% Java library with no dependencies. It runs on any platform where the JVM runs with no additional installation.
What input types does JDeli support for reading DICOM?
JDeli can read and decode DICOM from a File, InputStream, or byte array.