Class AlgorithmSwap34

java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.utilities.AlgorithmSwap34
All Implemented Interfaces:
ActionListener, WindowListener, Runnable, EventListener

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

    • AlgorithmSwap34

      public AlgorithmSwap34(ModelImage srcImg)
      Constructs new algorithm and sets source.
      Parameters:
      srcImg - source image model
  • Method Details

    • finalize

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

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

      public void runAlgorithm()
      Starts the program.
      Specified by:
      runAlgorithm in class AlgorithmBase
    • swap34

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