Class AlgorithmRandSliceOrder

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.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 Detail

      • randomOrder

        private int[] randomOrder
        DOCUMENT ME!
    • Constructor Detail

      • 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 Detail

      • finalize

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

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

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