public class PlotVirtualStack extends VirtualStack
Constructor and Description |
---|
PlotVirtualStack(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
addPlot(Plot plot)
Adds a plot to the end of the stack.
|
void |
deleteSlice(int n)
Deletes the specified slice, were 1<=n<=nslices.
|
int |
getBitDepth()
Returns either 24 (RGB) or 8 (grayscale).
|
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.
|
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.
|
addSlice, addSlice, addSlice, addSlice, deleteLastSlice, getDirectory, getFileName, getImageArray, getProperties, isVirtual, saveChanges, setIndexes, setSliceLabel, size, sortDicom, translate, trim
addSlice, addUnsignedShortSlice, convertToFloat, create, create, crop, drawSphere, duplicate, getColorModel, getHeight, getRoi, getShortSliceLabel, getSliceLabels, getVoxel, getVoxels, getVoxels, getWidth, isHSB, isHSB32, isLab, isRGB, setColorModel, setProcessor, setRoi, setVoxel, setVoxels, setVoxels, toString, update
public void addPlot(Plot plot)
public java.lang.Object getPixels(int n)
getPixels
in class VirtualStack
public ImageProcessor getProcessor(int n)
getProcessor
in class VirtualStack
public int getSize()
getSize
in class VirtualStack
public int getBitDepth()
getBitDepth
in class VirtualStack
public void setBitDepth(int bitDepth)
VirtualStack
setBitDepth
in class VirtualStack
public java.lang.String getSliceLabel(int n)
VirtualStack
getSliceLabel
in class VirtualStack
public void setPixels(java.lang.Object pixels, int n)
VirtualStack
setPixels
in class VirtualStack
public void deleteSlice(int n)
deleteSlice
in class VirtualStack