Package ij.plugin
Class FileInfoVirtualStack
- java.lang.Object
-
- ij.ImageStack
-
- ij.VirtualStack
-
- ij.plugin.FileInfoVirtualStack
-
- All Implemented Interfaces:
PlugIn
public class FileInfoVirtualStack extends VirtualStack implements PlugIn
This plugin opens a multi-page TIFF file, or a set of raw images, as a virtual stack. It implements the File/Import/TIFF Virtual Stack command.
-
-
Constructor Summary
Constructors Constructor Description FileInfoVirtualStack()
FileInfoVirtualStack(FileInfo fi)
FileInfoVirtualStack(FileInfo[] fi)
FileInfoVirtualStack(FileInfo fi, boolean show)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImage(FileInfo fileInfo)
Adds an image to this stack.void
deleteSlice(int n)
Deletes the specified image, were 1<=n<=nImages.int
getHeight()
ImageProcessor
getProcessor(int n)
Returns an ImageProcessor for the specified image, were 1<=n<=nImages.int
getSize()
Returns the number of images in this stack.String
getSliceLabel(int n)
Returns the label of the Nth image.int
getWidth()
static ImagePlus
openVirtual(String path)
Opens the specified tiff file as a virtual stack.void
run(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, setPixels, setSliceLabel, sortDicom, trim
-
Methods inherited from class ij.ImageStack
addSlice, addUnsignedShortSlice, convertToFloat, create, crop, drawSphere, duplicate, getColorModel, getRoi, getShortSliceLabel, getSliceLabels, getVoxel, getVoxels, getVoxels, isHSB, isLab, isRGB, setColorModel, setProcessor, setRoi, setVoxel, setVoxels, setVoxels, size, toString, update
-
-
-
-
Method Detail
-
openVirtual
public static ImagePlus openVirtual(String path)
Opens the specified tiff file as a virtual stack.
-
run
public void run(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, were 1<=n<=nImages.- Overrides:
deleteSlice
in classVirtualStack
-
getProcessor
public ImageProcessor getProcessor(int n)
Returns an ImageProcessor for the specified image, were 1<=n<=nImages. 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 String getSliceLabel(int n)
Returns the label of the Nth image.- Overrides:
getSliceLabel
in classVirtualStack
-
getWidth
public int getWidth()
- Overrides:
getWidth
in classImageStack
-
getHeight
public int getHeight()
- Overrides:
getHeight
in classImageStack
-
addImage
public void addImage(FileInfo fileInfo)
Adds an image to this stack.
-
-