Class AlgorithmReplaceValue

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

      • colorFactor

        private int colorFactor
        DOCUMENT ME!
      • outputVal

        private double outputVal
        DOCUMENT ME!
      • entireImage

        private boolean entireImage
    • Constructor Detail

      • AlgorithmReplaceValue

        public AlgorithmReplaceValue​(ModelImage destImage,
                                     ModelImage srcImage,
                                     java.util.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 Detail

      • getResultImage

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

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

        private void calcStoreInPlace()
        Replace the values in place.