VirtualStack
ij

Class VirtualStack

    • Constructor Detail

      • VirtualStack

        public VirtualStack()
        Default constructor.
      • VirtualStack

        public VirtualStack(int width,            int height,            ColorModel cm,            String path)
        Creates a new, empty virtual stack.
    • Method Detail

      • addSlice

        public void addSlice(String name)
        Adds an image to the end of the stack.
      • deleteSlice

        public void deleteSlice(int n)
        Deletes the specified slice, were 1<=n<=nslices.
        Overrides:
        deleteSlice in class ImageStack
      • deleteLastSlice

        public void deleteLastSlice()
        Deletes the last slice in the stack.
        Overrides:
        deleteLastSlice in class ImageStack
      • getPixels

        public Object getPixels(int n)
        Returns the pixel array for the specified slice, were 1<=n<=nslices.
        Overrides:
        getPixels in class ImageStack
      • setPixels

        public void setPixels(Object pixels,             int n)
        Assigns a pixel array to the specified slice, were 1<=n<=nslices.
        Overrides:
        setPixels in class ImageStack
      • getProcessor

        public ImageProcessor getProcessor(int n)
        Returns an ImageProcessor for the specified slice, were 1<=n<=nslices. Returns null if the stack is empty.
        Overrides:
        getProcessor in class ImageStack
      • saveChanges

        public int saveChanges(int n)
        Currently not implemented
      • getSize

        public int getSize()
        Returns the number of slices in this stack.
        Overrides:
        getSize in class ImageStack
      • isVirtual

        public boolean isVirtual()
        Always return true.
        Overrides:
        isVirtual in class ImageStack
      • trim

        public void trim()
        Does nothing.
        Overrides:
        trim in class ImageStack
      • getDirectory

        public String getDirectory()
        Returns the path to the directory containing the images.
      • getFileName

        public String getFileName(int n)
        Returns the file name of the specified slice, were 1<=n<=nslices.
      • setBitDepth

        public void setBitDepth(int bitDepth)
        Sets the bit depth (8, 16, 24 or 32).
      • getBitDepth

        public int getBitDepth()
        Returns the bit depth (8, 16, 24 or 32), or 0 if the bit depth is not known.

SCaVis 2.2 © jWork.ORG