Class PaletteManager

java.lang.Object
com.flir.thermalsdk.image.PaletteManager

public class PaletteManager extends Object
Manages Palettes, which could be applied to ThermalImage. It allows getting a particular Palette object or a list of available Palettes. Every Palette returned can be applied to the ThermalImage and change it's look.
Each Palette defines different colors for different temperature. The set of these colors allows to display the registered temperatures as an image. User have to get possibility to change the Palette applied to the image, because some of them are better for his use case. Some Palettes provide better contrast, while other expose the important details. Here is an example, hot to set one of the available palettes:
 private ThermalImage mImage;
 // ... load the ThermalImage
 final List<Palette> palettes = PaletteManager.getDefaultPalettes();
 mImage.setPalette(palettes.get(3)); // take one of the palettes and apply it
 

Remember the Palette is not the Scale. The first is an data definition of how to display a ThermalImage. It is applied to the image directly. The second visualizes that data and maps it to the temperature range. It also ensures the special colors (such as overflow) are applied correctly.

  • Method Details

    • getDefaultPalettes

      public static List<Palette> getDefaultPalettes()
      Gets an unmodifiable list of default Palettes.
      Returns:
      Returns an unmodifiable list of default Palettes.