Class AlgorithmSubset

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

public class AlgorithmSubset extends AlgorithmBase
Algorithm to create a 3D subset image from a 4D image. The user specifies the dimension to remove - x, y, z, or t and the value of the removed dimension.
  • Field Details

    • REMOVE_X

      public static final int REMOVE_X
      Remove x dimension.
      See Also:
    • REMOVE_Y

      public static final int REMOVE_Y
      Remove y dimension.
      See Also:
    • REMOVE_Z

      public static final int REMOVE_Z
      Remove z dimension.
      See Also:
    • REMOVE_T

      public static final int REMOVE_T
      Remove t dimension.
      See Also:
    • removeDim

      private final int removeDim
      Dimension to be removed.
    • sliceNum

      private final int sliceNum
      Slice value for removed dimension.
  • Constructor Details

    • AlgorithmSubset

      public AlgorithmSubset(ModelImage srcImage, ModelImage destImage, int removeDim, int sliceNum)
      import source and destination images into the class.
      Parameters:
      srcImage - source image (image to clip from)
      destImage - destination image (image to paste to)
      removeDim - the dimension to be removed
      sliceNum - slice value for removed dimension
  • Method Details

    • finalize

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

      public void runAlgorithm()
      Runs the algorithm.
      Specified by:
      runAlgorithm in class AlgorithmBase