ij.plugin
Class LutLoader
java.lang.Object
ij.ImagePlus
ij.plugin.LutLoader
- All Implemented Interfaces:
- ij.measure.Measurements, PlugIn, java.awt.image.ImageObserver
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.
Fields inherited from class ij.ImagePlus |
changes, CLOSED, COLOR_256, COLOR_RGB, compositeImage, currentSlice, GRAY16, GRAY32, GRAY8, height, img, ip, locked, OPENED, pixelHeight, pixelWidth, roi, sCalibrated, unit, units, UPDATED, width, win |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Fields inherited from interface ij.measure.Measurements |
AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, PERIMETER, RECT, SKEWNESS, SLICE, STD_DEV |
Method Summary |
(package private) void |
createImage(ij.io.FileInfo fi,
boolean show)
|
(package private) void |
error()
|
(package private) int |
fire(byte[] reds,
byte[] greens,
byte[] blues)
|
(package private) int |
grays(byte[] reds,
byte[] greens,
byte[] blues)
|
(package private) int |
ice(byte[] reds,
byte[] greens,
byte[] blues)
|
(package private) void |
interpolate(byte[] reds,
byte[] greens,
byte[] blues,
int nColors)
|
(package private) void |
invertLut()
|
(package private) int |
openBinaryLut(ij.io.FileInfo fi,
boolean isURL,
boolean raw)
Opens an NIH Image LUT or a 768 byte binary LUT. |
(package private) boolean |
openLut(ij.io.FileInfo fi)
Opens an NIH Image LUT, 768 byte binary LUT or text LUT from a file or URL. |
(package private) int |
openTextLut(ij.io.FileInfo fi)
|
(package private) int |
primaryColor(int color,
byte[] reds,
byte[] greens,
byte[] blues)
|
(package private) int |
redGreen(byte[] reds,
byte[] greens,
byte[] blues)
|
(package private) int |
rgb332(byte[] reds,
byte[] greens,
byte[] blues)
|
void |
run(java.lang.String arg)
If 'arg'="", displays a file open dialog and opens the specified
LUT. |
(package private) void |
showLut(ij.io.FileInfo fi,
boolean showImage)
|
(package private) int |
spectrum(byte[] reds,
byte[] greens,
byte[] blues)
|
Methods inherited from class ij.ImagePlus |
addImageListener, clone, close, copy, copyScale, createEmptyStack, createImagePlus, createLut, createNewRoi, draw, draw, flush, getBitDepth, getCalibration, getCanvas, getChannelProcessor, getClipboard, getCurrentSlice, getDimensions, getFileInfo, getGlobalCalibration, getHeight, getID, getImage, getImageStack, getImageStackSize, getLocalCalibration, getLocationAsString, getMask, getNChannels, getNFrames, getNSlices, getOriginalFileInfo, getPixel, getProcessor, getProperties, getProperty, getRoi, getShortTitle, getStack, getStackSize, getStartTime, getStatistics, getStatistics, getStatistics, getStatistics, getTitle, getType, getWidth, getWindow, hide, imageUpdate, isInvertedLut, isLocked, isProcessor, killProcessor, killRoi, killStack, lock, lockSilently, mouseMoved, notifyListeners, paste, removeImageListener, repaintWindow, resetClipboard, restoreRoi, revert, saveRoi, setActivated, setCalibration, setColor, setDimensions, setFileInfo, setGlobalCalibration, setIgnoreFlush, setImage, setProcessor, setProperty, setRoi, setRoi, setRoi, setSlice, setStack, setTitle, setType, setWindow, show, show, startTiming, toString, trimProcessor, unlock, updateAndDraw, updateAndRepaintWindow, updateChannelAndDraw, updateImage, updateStatusbarValue |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LutLoader
public LutLoader()
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
showLut
void showLut(ij.io.FileInfo fi,
boolean showImage)
invertLut
void invertLut()
fire
int fire(byte[] reds,
byte[] greens,
byte[] blues)
grays
int grays(byte[] reds,
byte[] greens,
byte[] blues)
primaryColor
int primaryColor(int color,
byte[] reds,
byte[] greens,
byte[] blues)
ice
int ice(byte[] reds,
byte[] greens,
byte[] blues)
spectrum
int spectrum(byte[] reds,
byte[] greens,
byte[] blues)
rgb332
int rgb332(byte[] reds,
byte[] greens,
byte[] blues)
redGreen
int redGreen(byte[] reds,
byte[] greens,
byte[] blues)
interpolate
void interpolate(byte[] reds,
byte[] greens,
byte[] blues,
int nColors)
openLut
boolean openLut(ij.io.FileInfo fi)
- Opens an NIH Image LUT, 768 byte binary LUT or text LUT from a file or URL.
error
void error()
openBinaryLut
int openBinaryLut(ij.io.FileInfo fi,
boolean isURL,
boolean raw)
throws java.io.IOException
- Opens an NIH Image LUT or a 768 byte binary LUT.
- Throws:
java.io.IOException
openTextLut
int openTextLut(ij.io.FileInfo fi)
throws java.io.IOException
- Throws:
java.io.IOException
createImage
void createImage(ij.io.FileInfo fi,
boolean show)