Package ij.plugin

Class LutLoader

java.lang.Object
ij.ImagePlus
ij.plugin.LutLoader
All Implemented Interfaces:
Measurements, PlugIn, ImageObserver, Cloneable

public class LutLoader
extends ImagePlus
implements PlugIn
Opens NIH Image look-up tables (LUTs), 768 byte binary LUTs (256 reds, 256 greens and 256 blues), LUTs in text format, or generates the LUT specified by the string argument passed to the run() method.
  • Constructor Details

  • Method Details

    • run

      public void run​(String arg)
      If 'arg'="", displays a file open dialog and opens the specified LUT. If 'arg' is a path, opens the LUT specified by the path. If 'arg'="fire", "ice", etc., uses a method to generate the LUT.
      Specified by:
      run in interface PlugIn
    • openLut

      public static LUT openLut​(String pathOrURL)
      Opens a LUT and returns it as a LUT object.
    • open

      public static IndexColorModel open​(String path) throws IOException
      Opens the specified ImageJ LUT and returns it as an IndexColorModel. Since 1.43t.
      Throws:
      IOException
    • open

      public static IndexColorModel open​(InputStream stream) throws IOException
      Opens an ImageJ LUT using an InputStream and returns it as an IndexColorModel. Since 1.43t.
      Throws:
      IOException
    • createImage

      public static ByteProcessor createImage​(IndexColorModel cm)
      Creates a 256x32 image from an IndexColorModel. Since 1.43t.