- java.lang.Object
-
- ij.ImageStack
-
- ij.VirtualStack
-
- ij.plugin.ListVirtualStack
-
- All Implemented Interfaces:
PlugIn
public class ListVirtualStack extends VirtualStack implements PlugIn
This plugin opens images specified by list of file paths as a virtual stack. It implements the File/Import/Stack From List command.
-
-
Field Summary
-
Fields inherited from class ij.ImageStack
cTable
-
-
Constructor Summary
Constructors Constructor Description ListVirtualStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteSlice(int n)Deletes the specified image, where 1<=n<=nslices.intgetHeight()ImageProcessorgetProcessor(int n)Returns an ImageProcessor for the specified slice, where 1<=n<=nslices.intgetSize()Returns the number of images in this stack.StringgetSliceLabel(int n)Returns the name of the specified image.intgetWidth()voidreduce(int factor)Reduces the number of slices in this stack by a factor.voidrun(String arg)This method is called when the plugin is loaded.-
Methods inherited from class ij.VirtualStack
addSlice, addSlice, addSlice, addSlice, deleteLastSlice, getBitDepth, getDirectory, getFileName, getImageArray, getPixels, getProperties, isVirtual, saveChanges, setBitDepth, setIndexes, setPixels, setSliceLabel, size, sortDicom, translate, trim
-
Methods inherited from class ij.ImageStack
addSlice, addUnsignedShortSlice, convertToFloat, create, create, crop, drawSphere, duplicate, getColorModel, getRoi, getShortSliceLabel, getShortSliceLabel, getSliceLabels, getVoxel, getVoxels, getVoxels, isHSB, isHSB32, isLab, isRGB, setColorModel, setOptions, setProcessor, setRoi, setVoxel, setVoxels, setVoxels, toString, update
-
-
-
-
Method Detail
-
run
public void run(String arg)
Description copied from interface:PlugInThis method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
-
deleteSlice
public void deleteSlice(int n)
Deletes the specified image, where 1<=n<=nslices.- Overrides:
deleteSlicein 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 images in this stack.- Overrides:
getSizein classVirtualStack
-
getSliceLabel
public String getSliceLabel(int n)
Returns the name of the specified image.- Overrides:
getSliceLabelin classVirtualStack
-
getWidth
public int getWidth()
- Overrides:
getWidthin classImageStack
-
getHeight
public int getHeight()
- Overrides:
getHeightin classImageStack
-
reduce
public void reduce(int factor)
Description copied from class:VirtualStackReduces the number of slices in this stack by a factor.- Overrides:
reducein classVirtualStack
-
-