Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/ImageStack.html
Дата изменения: Thu Dec 2 23:03:11 2010 Дата индексирования: Mon Oct 1 21:22:33 2012 Кодировка: Поисковые слова: dust |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.ImageStack
public class ImageStack
This class represents an expandable array of images.
ImagePlus
Constructor Summary | |
---|---|
ImageStack()
Default constructor. |
|
ImageStack(int width,
int height)
Creates a new, empty image stack. |
|
ImageStack(int width,
int height,
java.awt.image.ColorModel cm)
Creates a new, empty image stack. |
|
ImageStack(int width,
int height,
int size)
Creates a new image stack with a capacity of 'size'. |
Method Summary | |
---|---|
void |
addSlice(java.lang.String sliceLabel,
ImageProcessor ip)
Adds the image in 'ip' to the end of the stack. |
void |
addSlice(java.lang.String sliceLabel,
ImageProcessor ip,
int n)
Adds the image in 'ip' to the stack following slice 'n'. |
void |
addSlice(java.lang.String sliceLabel,
java.lang.Object pixels)
Adds an image in the forma of a pixel array to the end of the stack. |
void |
addUnsignedShortSlice(java.lang.String sliceLabel,
java.lang.Object pixels)
Deprecated. Short images are always unsigned. |
void |
deleteLastSlice()
Deletes the last slice in the stack. |
void |
deleteSlice(int n)
Deletes the specified slice, were 1<=n<=nslices. |
java.awt.image.ColorModel |
getColorModel()
Returns this stack's color model. |
int |
getHeight()
|
java.lang.Object[] |
getImageArray()
Returns the stack as an array of 1D pixel arrays. |
java.lang.Object |
getPixels(int n)
Returns the pixel array for the specified slice, were 1<=n<=nslices. |
ImageProcessor |
getProcessor(int n)
Returns an ImageProcessor for the specified slice, were 1<=n<=nslices. |
java.awt.Rectangle |
getRoi()
|
java.lang.String |
getShortSliceLabel(int n)
Returns a shortened version (up to the first 60 characters or first newline and suffix removed) of the label of the specified slice. |
int |
getSize()
Returns the number of slices in this stack. |
java.lang.String |
getSliceLabel(int n)
Returns the label of the specified slice, were 1<=n<=nslices. |
java.lang.String[] |
getSliceLabels()
Returns the slice labels as an array of Strings. |
int |
getWidth()
|
boolean |
isHSB()
Returns true if this is a 3-slice HSB stack. |
boolean |
isRGB()
Returns true if this is a 3-slice RGB stack. |
boolean |
isVirtual()
Returns true if this is a virtual (disk resident) stack. |
void |
setColorModel(java.awt.image.ColorModel cm)
Assigns a new color model to this stack. |
void |
setPixels(java.lang.Object pixels,
int n)
Assigns a pixel array to the specified slice, were 1<=n<=nslices. |
void |
setRoi(java.awt.Rectangle roi)
|
void |
setSliceLabel(java.lang.String label,
int n)
Sets the label of the specified slice, were 1<=n<=nslices. |
java.lang.String |
toString()
|
void |
trim()
Frees memory by deleting a few slices from the end of the stack. |
void |
update(ImageProcessor ip)
Updates this stack so its attributes, such as min, max, calibration table and color model, are the same as 'ip'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageStack()
public ImageStack(int width, int height)
public ImageStack(int width, int height, int size)
public ImageStack(int width, int height, java.awt.image.ColorModel cm)
Method Detail |
---|
public void addSlice(java.lang.String sliceLabel, java.lang.Object pixels)
public void addUnsignedShortSlice(java.lang.String sliceLabel, java.lang.Object pixels)
public void addSlice(java.lang.String sliceLabel, ImageProcessor ip)
public void addSlice(java.lang.String sliceLabel, ImageProcessor ip, int n)
public void deleteSlice(int n)
public void deleteLastSlice()
public int getWidth()
public int getHeight()
public void setRoi(java.awt.Rectangle roi)
public java.awt.Rectangle getRoi()
public void update(ImageProcessor ip)
public java.lang.Object getPixels(int n)
public void setPixels(java.lang.Object pixels, int n)
public java.lang.Object[] getImageArray()
public int getSize()
public java.lang.String[] getSliceLabels()
public java.lang.String getSliceLabel(int n)
public java.lang.String getShortSliceLabel(int n)
public void setSliceLabel(java.lang.String label, int n)
public ImageProcessor getProcessor(int n)
public void setColorModel(java.awt.image.ColorModel cm)
public java.awt.image.ColorModel getColorModel()
public boolean isRGB()
public boolean isHSB()
public boolean isVirtual()
public void trim()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |