Kakadu Plugin

The Kakadu Plugin is used to read and write JPEG 2000 compressed files including JP2, GeoJP2, and NITF 2.1. Kakadu is a C++ implementation of the JPEG2000 standard by one of its original authors - Dr. Taubman. To use the Kakadu Plugin, you will need to download a copy of the Kakadu Software.


  • ossim_kakadu_jp2 Used to read/write jp2 files
  • ossim_kakadu_nitf_j2k Used to read/write NITF files with JP2 compressed images

Writer properties

The Kakadu Plugin exposes several writer properties when outputting a jp2 or nitf file.

  • compression_quality Compression quality options include:
    • numerically_lossless Numerically lossless (20 layers, 5x3 kernel, reversible)
    • visually_lossless Visually lossless (19 layers 9x7 kernel, irreversible)
    • lossy Lossy (10 layers, irreversible)
  • threads Number of threads used to compress the image.
  • reversible Reversible compression option. Options are true or false


Convert a GeoTIFF to a GeoJP2 file using orthoigen using visually lossless compression. This will yield an image approximately 1/10th the size of the original tif image (in bytes).

ossim-orthoigen -w ossim_kakadu_jp2 --writer-prop threads=4 --writer-prop compression_quality=visually_lossless --srs EPSG:4326 N10-E024.tif N10-E024.jp2

Convert a GeoTIFF to a NITF file using orthoigen using numerically lossless compression.

ossim-orthoigen -w ossim_kakadu_jp2 --writer-prop threads=4 --writer-prop compression_quality=numerically_lossless N10-E024.tif N10-E024.ntf

Create a NITF/JP2 compressed overview using img2rr.

ossim-img2rr -t ossim_kakadu_nitf_j2k N10-E024.tif
Last modified 12 years ago Last modified on Oct 16, 2010, 7:20:01 AM
Note: See TracWiki for help on using the wiki.