Module ij
Package ij.plugin

Class LutLoader

  • All Implemented Interfaces:
    Measurements, PlugIn, java.awt.image.ImageObserver, java.lang.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 Detail

      • LutLoader

        public LutLoader()
    • Method Detail

      • getLut

        public static java.awt.image.IndexColorModel getLut​(java.lang.String name)
        Returns the LUT 'name' as an IndexColorModel, where 'name' can be any entry in the Image/Lookup Tables menu.
        See Also:
        See: HelpExamplesJavaScript/Show all LUTs
      • run

        public void run​(java.lang.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​(java.lang.String pathOrURL)
        Opens a LUT and returns it as a LUT object.
      • open

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

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

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