Class AlgorithmReplaceValue

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

public class AlgorithmReplaceValue extends AlgorithmBase

Title: AlgorithmReplaceValue

Description: Replaces the "input" value with the specified "output" value

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable
  • Field Details

    • colorFactor

      private int colorFactor
      DOCUMENT ME!
    • inputRanges

      private Vector<JDialogReplaceValue.Values> inputRanges
      DOCUMENT ME!
    • outputVal

      private double outputVal
      DOCUMENT ME!
    • entireImage

      private boolean entireImage
  • Constructor Details

    • AlgorithmReplaceValue

      public AlgorithmReplaceValue(ModelImage destImage, ModelImage srcImage, Vector<JDialogReplaceValue.Values> input, double output, boolean entireImage)
      Default contructor.
      Parameters:
      destImage - ModelImage destination image
      srcImage - ModelImage source image
      input - double input value to replace
      output - double value to replace with
  • Method Details

    • getResultImage

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

      public void runAlgorithm()
      Actually runs the algorithm.
      Specified by:
      runAlgorithm in class AlgorithmBase
    • calcStoreInDest

      private void calcStoreInDest()
      Replace the values and store into a new image.
    • calcStoreInPlace

      private void calcStoreInPlace()
      Replace the values in place.