Class IntensityPreset

java.lang.Object
com.xinapse.image.IntensityPreset

public class IntensityPreset extends Object
An intensity preset, particularly for CT images.
  • Method Details

    • toString

      public String toString()
      Returns a String describing this IntensityPreset.
      Overrides:
      toString in class Object
      Returns:
      a String describing this IntensityPreset.
    • getMin

      public int getMin()
      Returns the minimum intensity value in the preset.
      Returns:
      the intensity value that should map to the bottom of the colour scale.
    • getMax

      public int getMax()
      Returns the maximum intensity value in the preset.
      Returns:
      the intensity value that should map to the top of the colour scale.
    • getBuiltInPresets

      public static List<IntensityPreset> getBuiltInPresets()
      Returns a java.util.List<IntensityPreset> of the built-in IntensityPresets.
      Returns:
      a list of built-in IntensityPresets.
    • getUserPresets

      public static List<IntensityPreset> getUserPresets()
      Returns a java.util.List<IntensityPreset> of the IntensityPresets created by the user and stored in the user preferences.
      Returns:
      a list of user-defined IntensityPresets.
    • getAllPresets

      public static List<IntensityPreset> getAllPresets()
      Returns a java.util.List<IntensityPreset> of all IntensityPresets, both built-in and created by the user.
      Returns:
      a list of all IntensityPresets known to the system.
    • main

      public static void main(String[] args)
      Runs the self-test on this class.
      Parameters:
      args - the program arguments (ignored).