Package com.flir.thermalsdk.image.fusion


package com.flir.thermalsdk.image.fusion
Defines fusion modes possible to set for a Thermal image.

The Fusion mode is a way to display the ThermalImage. Most of the modes require Thermal and Visual data to be present. Hence the name Fusion Mode - it fuses both visual and thermal data and creates the image. Not all Fusion Modes require both types of data to be present, but for consistency they are still called Fusion Mode. Moreover some specific settings can cause selected Fusion Mode to use only one kind of data.


Each class in this package describes a single Fusion Mode. They can be applied to the ThermalImage through Fusion instance. Classes defined in this package shouldn't be instantiated directly. Their initialization should be left to the Fusion class. It's instance caches all Fusion Modes, so switching between them requires only choosing the Mode User is interested in. Each available Mode by default is set to the state defined in the ThermalImage. After it is chosen by The User and adjusted, it's definition in the ThermalImage is updated as well. Here is the example, how to set the Fusion Mode:
  public void setFusionMode() {
      ImageBase image = ImageFactory.create("absolute/path/to/thermal_image_file.jpg");
      if(image.getType() == ImageType.THERMAL_IMAGE_FILE){
          ThermalImageFile file = (ThermalImageFile) image;
          Fusion fusion = file.getFusion();
          if(fusion != null) {
              // can adjust MSX mode settings here with alpha = 10.0
              fusion.setMsx(10.0);
              // in order to apply fusion mode to the image use setFusionMode() method
              fusion.setFusionMode(FusionMode.MSX);
              // we can read data from read-only Msx object in order to see what value is currently set
              Msx msxMode = fusion.getMsx();
              double currentAlpha = msxMode.alpha;
          }
      }
  }