Module ij
Package ij.plugin

Class FileInfoVirtualStack

  • All Implemented Interfaces:

    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 Detail

      • FileInfoVirtualStack

        public FileInfoVirtualStack()
      • FileInfoVirtualStack

        public FileInfoVirtualStack​(FileInfo fi)
      • FileInfoVirtualStack

        public FileInfoVirtualStack​(FileInfo fi,
                                    boolean show)
      • FileInfoVirtualStack

        public FileInfoVirtualStack​(FileInfo[] fi)
    • Method Detail

      • openVirtual

        public static ImagePlus openVirtual​(java.lang.String path)
        Opens the specified tiff file as a virtual stack.
      • 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.
        Specified by:
        run in interface PlugIn
      • deleteSlice

        public void deleteSlice​(int n)
        Deletes the specified image, where 1<=n<=nImages.
        deleteSlice in class VirtualStack
      • getProcessor

        public ImageProcessor getProcessor​(int n)
        Returns an ImageProcessor for the specified image, where 1<=n<=nImages. Returns null if the stack is empty.
        getProcessor in class VirtualStack
      • size

        public int size()
        Returns the number of slices in this stack.
        size in class VirtualStack
      • getSliceLabel

        public java.lang.String getSliceLabel​(int n)
        Returns the label of the Nth image.
        getSliceLabel in class VirtualStack
      • addImage

        public void addImage​(FileInfo fileInfo)
        Adds an image to this stack.
      • getDirectory

        public java.lang.String getDirectory()
        Description copied from class: VirtualStack
        Returns the path to the directory containing the images.
        getDirectory in class VirtualStack
      • getFileName

        public java.lang.String getFileName​(int n)
        Description copied from class: VirtualStack
        Returns the file name of the specified slice, where 1<=n<=nslices.
        getFileName in class VirtualStack