Class AlgorithmSwapDims

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

    public class AlgorithmSwapDims
    extends AlgorithmBase
    Swaps dimensions in 4D dataset. The current image is deleted and a new one with swapped third and fourth dimensions is created.
    • Constructor Detail

      • AlgorithmSwapDims

        public AlgorithmSwapDims​(ModelImage srcImg,
                                 int sw)
        Constructs new algorithm and sets source.
        Parameters:
        srcImg - source image model
    • Method Detail

      • finalize

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

        public ModelImage getResultImage()
        Returns result image.
        Returns:
        destImage
      • swap34

        private void swap34()
        Swaps the image third and fourth dimensions and replaces the source image with the swapped dimension image.
      • swap14

        private void swap14()
        Swaps the image first and fourth dimensions and replaces the source image with the swapped dimension image.