Link

Java JPEG2000 Reader

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

Key information:

  • 100% Java solution. No dlls or dependencies on native code
  • Supports Bitlevel, Grayscale, RGB, CMYK and YCCK images
  • Fastest Jpeg2000 Decoder in Java

Quick start:

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

BufferedImage image = JDeli.read(jpeg2000ImageFile);

or

Jpeg2000Decoder decoder = new Jpeg2000Decoder();
BufferedImage image = decoder.read(jpeg2000Data);

See the full Javadoc.

Performance comparisons:

These figures were generated using jmh (as documented on our blog) with a standard set of images (also documented). They should be easy to replicate if you wish to validate, the code is on GitHub.

The higher the number, the better.

Benchmark Mode Cnt Score Error Units
JP2.ImageIOWithJAI thrpt 25 48.971 ± 0.098 ops/s
JP2.JDeli thrpt 25 123.793 ± 0.135 ops/s

Tested on 2020 13inch M1 MacBook Pro using JDK 18.0.1.1