public class VirtualStack extends ImageStack
| Constructor and Description |
|---|
VirtualStack()
Default constructor.
|
VirtualStack(int width,
int height,
java.awt.image.ColorModel cm,
java.lang.String path)
Creates a new, empty virtual stack.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSlice(java.lang.String name)
Adds an image to the end of the stack.
|
void |
addSlice(java.lang.String sliceLabel,
ImageProcessor ip)
Does nothing..
|
void |
addSlice(java.lang.String sliceLabel,
ImageProcessor ip,
int n)
Does noting.
|
void |
addSlice(java.lang.String sliceLabel,
java.lang.Object pixels)
Does nothing.
|
void |
deleteLastSlice()
Deletes the last slice in the stack.
|
void |
deleteSlice(int n)
Deletes the specified slice, were 1<=n<=nslices.
|
int |
getBitDepth()
Returns the bit depth (8, 16, 24 or 32), or 0 if the bit depth is not known.
|
java.lang.String |
getDirectory()
Returns the path to the directory containing the images.
|
java.lang.String |
getFileName(int n)
Returns the file name of the specified slice, were 1<=n<=nslices.
|
java.lang.Object[] |
getImageArray()
Returns null.
|
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.
|
int |
getSize()
Returns the number of slices in this stack.
|
java.lang.String |
getSliceLabel(int n)
Returns the label of the Nth image.
|
boolean |
isVirtual()
Always return true.
|
int |
saveChanges(int n)
Currently not implemented
|
void |
setBitDepth(int bitDepth)
Sets the bit depth (8, 16, 24 or 32).
|
void |
setPixels(java.lang.Object pixels,
int n)
Assigns a pixel array to the specified slice,
were 1<=n<=nslices.
|
void |
setSliceLabel(java.lang.String label,
int n)
Does nothing.
|
ImageStack |
sortDicom(java.lang.String[] strings,
java.lang.String[] info,
int maxDigits) |
void |
trim()
Does nothing.
|
addSlice, addUnsignedShortSlice, convertToFloat, create, crop, drawSphere, duplicate, getColorModel, getHeight, getRoi, getShortSliceLabel, getSliceLabels, getVoxel, getVoxels, getVoxels, getWidth, isHSB, isLab, isRGB, setColorModel, setProcessor, setRoi, setVoxel, setVoxels, setVoxels, toString, updatepublic VirtualStack()
public VirtualStack(int width,
int height,
java.awt.image.ColorModel cm,
java.lang.String path)
public void addSlice(java.lang.String name)
public void addSlice(java.lang.String sliceLabel,
java.lang.Object pixels)
addSlice in class ImageStackpublic void addSlice(java.lang.String sliceLabel,
ImageProcessor ip)
addSlice in class ImageStackpublic void addSlice(java.lang.String sliceLabel,
ImageProcessor ip,
int n)
addSlice in class ImageStackpublic void deleteSlice(int n)
deleteSlice in class ImageStackpublic void deleteLastSlice()
deleteLastSlice in class ImageStackpublic java.lang.Object getPixels(int n)
getPixels in class ImageStackpublic void setPixels(java.lang.Object pixels,
int n)
setPixels in class ImageStackpublic ImageProcessor getProcessor(int n)
getProcessor in class ImageStackpublic int saveChanges(int n)
public int getSize()
getSize in class ImageStackpublic java.lang.String getSliceLabel(int n)
getSliceLabel in class ImageStackpublic java.lang.Object[] getImageArray()
getImageArray in class ImageStackpublic void setSliceLabel(java.lang.String label,
int n)
setSliceLabel in class ImageStackpublic boolean isVirtual()
isVirtual in class ImageStackpublic void trim()
trim in class ImageStackpublic java.lang.String getDirectory()
public java.lang.String getFileName(int n)
public void setBitDepth(int bitDepth)
public int getBitDepth()
getBitDepth in class ImageStackpublic ImageStack sortDicom(java.lang.String[] strings, java.lang.String[] info, int maxDigits)