Class AlgorithmSWI

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

public class AlgorithmSWI extends AlgorithmBase
This class recalculates mo and dceFullTre to provide better estimates using the inverse Ernst equation
Author:
Justin Senseney (SenseneyJ@mail.nih.gov)
  • Field Details

    • magImage

      private ModelImage magImage
    • phaseImage

      private ModelImage phaseImage
    • maskThreshold

      private double maskThreshold
    • xFilterSize

      private int xFilterSize
    • yFilterSize

      private int yFilterSize
    • multFactor

      private int multFactor
    • xDim

      private int xDim
      X dimension length
    • yDim

      private int yDim
      Y dimension length
    • zDim

      private int zDim
      Z dimension length
    • xFilterTopLeft

      private double xFilterTopLeft
    • yFilterTopLeft

      private double yFilterTopLeft
    • showInterImages

      private boolean showInterImages
      Whether intermediate images should be displayed during pipeline processing
    • kImage

      private ModelImage kImage
    • iImage

      private ModelImage iImage
    • brainMask

      private ModelImage brainMask
      Denotes which pixels undergo SWI processing.
    • kCenterImage

      private ModelImage kCenterImage
    • iFinal

      private ModelImage iFinal
    • phaseMask

      private ModelImage phaseMask
    • inScript

      private boolean inScript
      Denotes whether the algorithm is run in a script/JIST, if so showInterImages just stores images for later access.
    • iCenter

      private ModelImage iCenter
  • Constructor Details

    • AlgorithmSWI

      public AlgorithmSWI(boolean inScript, ModelImage resultImage, ModelImage magImage, ModelImage phaseImage, double maskThreshold, int roFilterSize, int peFilterSize, int multFactor, boolean showInterImages)
      Constructor.
      Parameters:
      resultImage - Result image model
      srcImg - Source image model.
  • Method Details

    • finalize

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

      public void runAlgorithm()
      Starts the algorithm. At the conclusion of this method, AlgorithmBase reports to any algorithm listeners that this algorithm has completed. This method is not usually called explicitly by a controlling dialog. Instead, see AlgorithmBase.run() or start().
      Specified by:
      runAlgorithm in class AlgorithmBase
    • calc2D

      private void calc2D()
    • calc3D

      private void calc3D()
    • generateMagEnhanced

      private ModelImage generateMagEnhanced(double[] phaseMaskData, ModelImage magnitude)
    • generatePhaseMask

      private ModelImage generatePhaseMask(BitSet brainMaskSet, double[] ixRealFinal, double[] ixImagFinal, double[] phaseMaskData)
    • generateIFinal

      private ModelImage generateIFinal(ModelImage iImage, ModelImage iCenterImage, BitSet brainMaskSet, double[] ixRealFinal, double[] ixImagFinal)
    • runiFFTonKCenter

      private ModelImage runiFFTonKCenter(ModelImage kCenterImage)
    • createKCenterImage

      private ModelImage createKCenterImage(ModelImage kImage)
    • createkImage

      private ModelImage createkImage(ModelImage iImage)
    • createiImage

      private ModelImage createiImage(double[] realData, double[] imagData)
    • createBrainMask

      private ModelImage createBrainMask()
    • rescaleToComplex

      private void rescaleToComplex(ModelImage magImage, ModelImage phaseImage, double[] realData, double[] imagData)
    • getkImage

      public ModelImage getkImage()
    • getiImage

      public ModelImage getiImage()
    • getBrainMask

      public ModelImage getBrainMask()
    • getkCenterImage

      public ModelImage getkCenterImage()
    • getiFinal

      public ModelImage getiFinal()
    • getPhaseMask

      public ModelImage getPhaseMask()
    • getiCenter

      public ModelImage getiCenter()