Class AlgorithmVOILogicalOperations

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

public class AlgorithmVOILogicalOperations extends AlgorithmBase
Algorithm class for performing logical operations on VOIs
Author:
pandyan
  • Field Details

    • selectedVOIset

      protected ViewVOIVector selectedVOIset
      Vector of all VOIs that will have calculations performed.
    • clonedImage

      protected ModelImage clonedImage
      Model Images
    • finalMaskImage

      protected ModelImage finalMaskImage
      Model Images
    • tempMaskImage

      protected ModelImage tempMaskImage
      Model Images
    • operation

      protected int operation
      operation type
    • ADD

      public static final int ADD
      operation constants
      See Also:
    • OR

      public static final int OR
      operation constants
      See Also:
    • XOR

      public static final int XOR
      operation constants
      See Also:
    • doVoiImage

      protected boolean doVoiImage
      flag indicating whether output should be VOI image or mask image
    • alg2D

      private AlgorithmMorphology2D alg2D
    • alg3D

      private AlgorithmMorphology3D alg3D
    • min

      private int min
    • max

      private int max
    • kernel

      private int kernel
  • Constructor Details

    • AlgorithmVOILogicalOperations

      public AlgorithmVOILogicalOperations(ModelImage clonedImage, ViewVOIVector selectedVOIset, int operation, boolean doVoiImage)
      constructor
      Parameters:
      clonedImage -
      selectedVOIset -
      operation -
      doVoiImage -
      img -
  • Method Details

    • runAlgorithm

      public void runAlgorithm()
      run algorithm
      Specified by:
      runAlgorithm in class AlgorithmBase
    • getFinalMaskImage

      public ModelImage getFinalMaskImage()
      returns the mask image
      Returns: