- 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 void
deleteSlice(int n)
Deletes the specified image, where 1<=n<=nslices.int
getHeight()
ImageProcessor
getProcessor(int n)
Returns an ImageProcessor for the specified slice, where 1<=n<=nslices.int
getSize()
Returns the number of images in this stack.java.lang.String
getSliceLabel(int n)
Returns the name of the specified image.int
getWidth()
void
reduce(int factor)
Reduces the number of slices in this stack by a factor.void
run(java.lang.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(java.lang.String arg)
Description copied from interface:PlugIn
This 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:
deleteSlice
in 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:
getProcessor
in classVirtualStack
-
getSize
public int getSize()
Returns the number of images in this stack.- Overrides:
getSize
in classVirtualStack
-
getSliceLabel
public java.lang.String getSliceLabel(int n)
Returns the name of the specified image.- Overrides:
getSliceLabel
in classVirtualStack
-
getWidth
public int getWidth()
- Overrides:
getWidth
in classImageStack
-
getHeight
public int getHeight()
- Overrides:
getHeight
in classImageStack
-
reduce
public void reduce(int factor)
Description copied from class:VirtualStack
Reduces the number of slices in this stack by a factor.- Overrides:
reduce
in classVirtualStack
-
-