2. LUTs

This section explains how to create and edit Look-Up Tables (LUTs).

2.1. Usage

A LUT is a color map for datasets and objects supporting scalar values (MultiROIs, meshes, …).

2.2. File location

To be recognized by the application, LUTs should be located in one of these folders:

  • %LocalAppData%/ORS/Dragonfly(version)/pythonUserExtensions/LUTs (available for the current user)

  • %ProgramData%/ORS/Dragonfly(version)/pythonAllUsersExtensions/LUTs (available for all users)

  • %ProgramData%/ORS/Dragonfly(version)/python/orslut/LUTs (distributed with the application)

2.3. File creation

To create a LUT, start the application, select a dataset (import one if needed), select a LUT from the Window Leveling plugin, edit the colors and opacities as needed, then press on the More button and choose the Save LUT as… option. Fill in the fields in the window that opens (essentially to specify the new LUT name and saving location) and click OK.

The edition of colors and opacities can be made by importing the specifications from a .tfi file, using the option Import LUT Settings… under the More button.

2.4. File edition

Once created, a LUT definition cannot be modified. If a new definition should be kept, it should be saved as a new LUT. If wanted, the old LUT can be deleted using the Window Leveling plugin. This is done by selecting the LUT to be deleted and choosing the option Delete LUT under the More button.

2.5. Demos

Source code example:

  1. Download the file;

  2. Put that file into a LUT extension folder;

  3. Start the application;

  4. Import a dataset;

  5. Select the LUT blue-black-red in the Window Leveling plugin.