Class AlgorithmRemoveTSlices

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class AlgorithmRemoveTSlices
    extends AlgorithmBase
    Algorithm to run the remove T slices. Algorithm verifies the t-th slice should be in included in the destination image, as defined in the list, remove. It copies the slice from the src img to a buffer, and then from the buffer into the destination img. Copies the src file info to a buffer and makes it conform to the new img, then copies it into the dest file.
    • Field Detail

      • oldTdim

        private int oldTdim
        Original T dimension of the image.
      • remove

        private boolean[] remove
        List of slices to remove from source image.
      • volume

        private int volume
        Area of a slice (Xdim * Ydim * Zdim).
      • Xdim

        private int Xdim
        X dimension of the image.
      • Ydim

        private int Ydim
        Y dimension of the image.
      • Zdim

        private int Zdim
        Z dimension of the image.
    • Constructor Detail

      • AlgorithmRemoveTSlices

        public AlgorithmRemoveTSlices​(ModelImage srcImage,
                                      ModelImage destImage,
                                      boolean[] removeSlices)
        import source and destination images into the class.
        Parameters:
        srcImage - source image (image to clip from)
        destImage - destination image (image to paste to)
        removeSlices - list of boolean indicating which slices in source should *not* be in the destination
    • Method Detail

      • finalize

        public void finalize()
        Prepares this class for destruction.
        Overrides:
        finalize in class AlgorithmBase
      • runAlgorithm

        public void runAlgorithm()
        Where algorithm calculates the final output.
        Specified by:
        runAlgorithm in class AlgorithmBase