All Packages Class Hierarchy This Package Previous Next Index
Class ij.ImagePlus
java.lang.Object
|
+----ij.ImagePlus
- public class ImagePlus
- extends Object
This class that supports five image types: 8, 16 and
32-bit grayscale, 8-bit indexed color, and RGB color.
-
COLOR_256
-
-
COLOR_RGB
-
-
GRAY16
-
-
GRAY32
-
-
GRAY8
-
-
HSB
-
-
reserved
-
-
RGBA
-
-
ImagePlus(String, float[], int, int, ImageJ)
-
-
ImagePlus(String, Image, ImageJ)
-
-
ImagePlus(String, int, int, ImageJ)
-
-
ImagePlus(String, short[], int, int, ImageJ)
-
-
ImagePlus(String, String, ImageJ)
-
-
createNewRoi(int, int)
-
-
draw()
- Draws image and roi outline.
-
draw(int, int, int, int)
- Draws image and roi outline using a clip rect.
-
getDepth()
- If this is a stack, return the number of images, else return 1.
-
getHeight()
-
-
getImage()
- Returns the current AWT image.
-
getLUT()
- Returns the color look-up table.
-
getMask()
-
-
getPixel(int, int)
- Returns a 4 element array.
-
getProcessor()
- Returns a reference to the current ImageProcessor.
-
getRoi()
-
-
getStack()
-
-
getStatistics()
-
-
getTitle()
- Returns the image name.
-
getType()
- Returns the current image type.
-
getWidth()
-
-
getWidthFinal()
-
-
getWindow()
-
-
isInvertedLut()
- Returns true is this is an inverted LUT that displays zero as white.
-
isProcessor()
-
-
killProcessor()
- Removes the current ImageProcessor.
-
killRoi()
- Deletes the current region of interest.
-
reserve()
-
-
setColor(Color)
-
-
setFileInfo(FileInfo)
- Provides information needed to Revert.
-
setImage(float[], int, int, boolean)
- Insert 32-bit real image.
-
setImage(Image)
- Insert AWT image.
-
setImage(short[], int, int, boolean)
- Insert 16-bit image.
-
setRoi(Rectangle)
-
-
setType(int)
-
-
setWindow(ImageWindow)
-
-
show()
- Displays this image in a window.
-
unreserve()
-
-
updateAndDraw()
- Creates a new AWT Image from the pixels in the ImageProcessor,
then displays it.
GRAY8
public static final int GRAY8
GRAY16
public static final int GRAY16
GRAY32
public static final int GRAY32
COLOR_256
public static final int COLOR_256
COLOR_RGB
public static final int COLOR_RGB
HSB
public static final int HSB
RGBA
public static final int RGBA
reserved
protected boolean reserved
ImagePlus
public ImagePlus(String title,
Image img,
ImageJ ij)
ImagePlus
public ImagePlus(String title,
short pixels[],
int width,
int height,
ImageJ ij)
ImagePlus
public ImagePlus(String title,
float pixels[],
int width,
int height,
ImageJ ij)
ImagePlus
public ImagePlus(String title,
int width,
int height,
ImageJ ij)
ImagePlus
public ImagePlus(String title,
String urlString,
ImageJ ij)
reserve
public synchronized boolean reserve()
unreserve
public synchronized void unreserve()
draw
public void draw()
- Draws image and roi outline.
draw
public void draw(int x,
int y,
int width,
int height)
- Draws image and roi outline using a clip rect.
updateAndDraw
public void updateAndDraw()
- Creates a new AWT Image from the pixels in the ImageProcessor,
then displays it.
show
public void show()
- Displays this image in a window.
getImage
public Image getImage()
- Returns the current AWT image.
setImage
public void setImage(Image img)
- Insert AWT image.
setImage
public void setImage(short pixels16[],
int width,
int height,
boolean whiteIsZero)
- Insert 16-bit image.
setImage
public void setImage(float pixels32[],
int width,
int height,
boolean whiteIsZero)
- Insert 32-bit real image.
setFileInfo
public void setFileInfo(FileInfo fi)
- Provides information needed to Revert.
getWindow
public ImageWindow getWindow()
setWindow
public void setWindow(ImageWindow win)
setColor
public void setColor(Color c)
isProcessor
public boolean isProcessor()
getProcessor
public ImageProcessor getProcessor()
- Returns a reference to the current ImageProcessor. If there
is no ImageProcessor, it creates one.
killProcessor
public void killProcessor()
- Removes the current ImageProcessor.
getMask
public int[] getMask()
getStatistics
public ImageStatistics getStatistics()
getTitle
public String getTitle()
- Returns the image name.
getWidth
public int getWidth()
getWidthFinal
public final int getWidthFinal()
getHeight
public int getHeight()
getDepth
public int getDepth()
- If this is a stack, return the number of images, else return 1.
getType
public int getType()
- Returns the current image type.
setType
protected void setType(int type)
getLUT
public LookUpTable getLUT()
- Returns the color look-up table.
isInvertedLut
public boolean isInvertedLut()
- Returns true is this is an inverted LUT that displays zero as white.
getPixel
public float[] getPixel(int x,
int y)
- Returns a 4 element array. Grayscale values are retuned in the
first element. RGB values are returned in the first 3 elements. For
indexed color images, the index (0-255) is returned in the first
element and the RGB values in the last three.
getStack
public Stack getStack()
getRoi
public Roi getRoi()
setRoi
public void setRoi(Rectangle r)
createNewRoi
public void createNewRoi(int x,
int y)
killRoi
public void killRoi()
- Deletes the current region of interest.
All Packages Class Hierarchy This Package Previous Next Index