public interface LUTService extends ImageJService
ColorTables (i.e., Look-Up
Tables or LUTs) from various data sources.| Modifier and Type | Method and Description |
|---|---|
void |
applyLUT(ColorTable colorTable,
ImageDisplay display)
Applies the given
ColorTable to the active view of the specified
ImageDisplay. |
Dataset |
createDataset(String title,
ColorTable colorTable)
Creates a new dataset showing the given
ColorTable as a ramp. |
Map<String,URL> |
findLUTs()
Finds the
URLs of the LUT files known to ImageJ. |
boolean |
isLUT(File file)
Gets whether the given file can be parsed as a color table by
loadLUT(File). |
ColorTable |
loadLUT(File file)
Loads a
ColorTable from a File. |
ColorTable |
loadLUT(InputStream is)
Loads a
ColorTable from an input stream. |
ColorTable |
loadLUT(InputStream is,
int length)
Loads a
ColorTable from an input stream with the given expected
length. |
ColorTable |
loadLUT(URL url)
Loads a
ColorTable from a URL. |
initialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposeMap<String,URL> findLUTs()
URLs of the LUT files known to ImageJ. LUT files can
reside within a JAR file on the classpath, or in the luts
subdirectory of the application.boolean isLUT(File file)
loadLUT(File).
This method is heuristic in nature, and does not offer a guarantee that
calling loadLUT(File) will be successful. However, if it returns
false, it is highly likely that the file is not parsable as a
ColorTable.
ColorTable loadLUT(File file) throws IOException
ColorTable from a File.file - The file from which the color table data will be read.IOException - if there is a problem reading the color tableColorTable loadLUT(URL url) throws IOException
ColorTable from a URL.url - The URL from which the color table data will be read.IOException - if there is a problem reading the color tableColorTable loadLUT(InputStream is) throws IOException
ColorTable from an input stream.
Does not close the input stream after reading the color table.
is - The stream from which the color table data will be read.IOException - if there is a problem reading the color tableColorTable loadLUT(InputStream is, int length) throws IOException
ColorTable from an input stream with the given expected
length.is - The stream from which the color table data will be read.length - The expected length of the input stream.IOException - if there is a problem reading the color tableDataset createDataset(String title, ColorTable colorTable)
ColorTable as a ramp.title - The title of the new dataset.colorTable - The color table to use.void applyLUT(ColorTable colorTable, ImageDisplay display)
ColorTable to the active view of the specified
ImageDisplay.colorTable - display - Copyright © 2014–2022 ImageJ. All rights reserved.