Class AlgorithmRandSliceOrder

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

public class AlgorithmRandSliceOrder extends AlgorithmBase
Algorithm that randomizes the order of 3D dataset.
Version:
1.0 April 1, 2002
Author:
Matthew J. McAuliffe, Ph.D.
  • Field Details

    • randomOrder

      private int[] randomOrder
      DOCUMENT ME!
  • Constructor Details

    • AlgorithmRandSliceOrder

      public AlgorithmRandSliceOrder(ModelImage srcImg)
      Constructs an algorithm object that randomizes the order of 3D image dataset.
      Parameters:
      srcImg - source image model
    • AlgorithmRandSliceOrder

      public AlgorithmRandSliceOrder(ModelImage srcImg, int progress)
      Constructs an algorithm object that randomizes the order of 3D image dataset.
      Parameters:
      srcImg - source image model
      progress - Progress mode - see AlgorithmBase.
  • Method Details

    • finalize

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

      public int[] getRandomOrder()
      Accessor returns randomOrder.
      Returns:
      int[]
    • runAlgorithm

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

      private void calcInPlace()
      Forms the reversed order image and places the result in original image.