- java.lang.Object
-
- ij.ImageStack
-
- ij.VirtualStack
-
- ij.gui.PlotVirtualStack
-
public class PlotVirtualStack extends VirtualStack
This is a virtual stack of frozen plots.
-
-
Field Summary
-
Fields inherited from class ij.ImageStack
cTable
-
-
Constructor Summary
Constructors Constructor Description PlotVirtualStack(int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlot(Plot plot)Adds a plot to the end of the stack.voiddeleteSlice(int n)Deletes the specified slice, where 1<=n<=nslices.intgetBitDepth()Returns either 24 (RGB) or 8 (grayscale).java.lang.ObjectgetPixels(int n)Returns the pixel array for the specified slice, where 1<=n<=nslices.ImageProcessorgetProcessor(int n)Returns an ImageProcessor for the specified slice, where 1<=n<=nslices.intgetSize()Returns the number of slices in this stack.java.lang.StringgetSliceLabel(int n)Returns the label of the Nth image.voidsetBitDepth(int bitDepth)Sets the bit depth (8, 16, 24 or 32).voidsetPixels(java.lang.Object pixels, int n)Assigns a pixel array to the specified slice, where 1<=n<=nslices.-
Methods inherited from class ij.VirtualStack
addSlice, addSlice, addSlice, addSlice, deleteLastSlice, getDirectory, getFileName, getImageArray, getProperties, isVirtual, reduce, saveChanges, setIndexes, setSliceLabel, size, sortDicom, translate, trim
-
Methods inherited from class ij.ImageStack
addSlice, addUnsignedShortSlice, convertToFloat, create, create, crop, drawSphere, duplicate, getColorModel, getHeight, getRoi, getShortSliceLabel, getShortSliceLabel, getSliceLabels, getVoxel, getVoxels, getVoxels, getWidth, isHSB, isHSB32, isLab, isRGB, setColorModel, setOptions, setProcessor, setRoi, setVoxel, setVoxels, setVoxels, toString, update
-
-
-
-
Method Detail
-
addPlot
public void addPlot(Plot plot)
Adds a plot to the end of the stack.
-
getPixels
public java.lang.Object getPixels(int n)
Returns the pixel array for the specified slice, where 1<=n<=nslices.- Overrides:
getPixelsin classVirtualStack
-
getProcessor
public ImageProcessor getProcessor(int n)
Returns an ImageProcessor for the specified slice, where 1<=n<=nslices. Returns null if the stack is empty.- Overrides:
getProcessorin classVirtualStack
-
getSize
public int getSize()
Returns the number of slices in this stack.- Overrides:
getSizein classVirtualStack
-
getBitDepth
public int getBitDepth()
Returns either 24 (RGB) or 8 (grayscale).- Overrides:
getBitDepthin classVirtualStack
-
setBitDepth
public void setBitDepth(int bitDepth)
Description copied from class:VirtualStackSets the bit depth (8, 16, 24 or 32).- Overrides:
setBitDepthin classVirtualStack
-
getSliceLabel
public java.lang.String getSliceLabel(int n)
Description copied from class:VirtualStackReturns the label of the Nth image.- Overrides:
getSliceLabelin classVirtualStack
-
setPixels
public void setPixels(java.lang.Object pixels, int n)Description copied from class:VirtualStackAssigns a pixel array to the specified slice, where 1<=n<=nslices.- Overrides:
setPixelsin classVirtualStack
-
deleteSlice
public void deleteSlice(int n)
Deletes the specified slice, where 1<=n<=nslices.- Overrides:
deleteSlicein classVirtualStack
-
-