Advanced Settings for the Insight JPEG2000 Encoder in Insight Studio and the Administrator Tools

Advanced Settings for the Insight JPEG2000 Encoder in Insight Studio and the Administrator Tools

The settings for Insight's JPEG2000 encoder can be adjusted or tuned by changing different settings within a configuration file. Changing these settings will affect how the JPEG2000 file is created and the quality of the information encoded within the file. By default, Luna uses a "visually lossless" setting which preserves the quality of the image at a 1:1 ratio between the original and the JPEG2000. This, however, can be adjusted. One commonly requested option is to enable "lossless-compression" which, beyond being "visually lossless" ensures that all data is preserved.

Changing the JPEG2000 Compression Settings for the Administrator Tools or Insight Studio

It is possible to change the settings for the Administrator Tools and Insight Studio to use custom compression. It is STRONGLY advised that you are consistent with these settings across all versions of Insight Studio and the Administrator Tools.

Locating the Sample JPEG2000 Compression Settings File

A sample JPEG2000 compression configuration file InsightJPEG2Compression.dat can be located on the Insight 6.3 Server Components or Insight 6.3 Upgrade CDs (in the utilities/cmd_line_jp2k_encode/your platform/).

Configuring the Compression File for "Lossless Compression"

To configure the JPEG2000 Encoder for lossless compression:

    1. Open the InsightJPEG2Compression.dat configuration file in a Text Editor.


    1. Locate the line containing the following:


slope = 51651,51337,51186,50804,50548,50232

    1. Set the slope to 0.

slope = 0

    1. Locate the line containing the following:

Clayers = 6

    1. Set the CLayers to 1.

Clayers = 1

    1. Save the file and close it.


NOTE: To restore the JPEG2000 compressions settings to the defaults: remove the InsightJPEG2Compression.dat file.

Installing the JPEG2000 Compression Settings File

Once you have configured the JPEG2000 compression settings, you must copy the configuration file to the Installation Directory for Insight Studio or the Administrator Tools.
To install the JPEG2000 compression settings file

  1. Locate the Installation directory for the Administrator Tools or Insight Studio.
  1. Copy the modified version of the JPEG2000 compression settings file (InsightJPEG2Compression.dat) to the installation directory.


  1. Restart Insight Studio or the Administrator Tools respectively.