Class JDialogTreT2

All Implemented Interfaces:
AlgorithmInterface, ScriptableActionInterface, DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogTreT2 extends JDialogScriptableBase implements AlgorithmInterface
The dialog for the calculation of Tre methods. This dialog is scriptable, but not yet Jistable. Tags used for file selection include "ssfp", "ph0", "ph180", "b1map", "t1map". Case insensitive
Author:
senseneyj
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • title

      private static String title
    • treTR

      private double treTR
    • maxT2

      private double maxT2
    • maxM0

      private double maxM0
    • treFA_phase0

      private double[] treFA_phase0
    • treFA_phase180

      private double[] treFA_phase180
    • ssfpImageIndex_phase0

      private int[] ssfpImageIndex_phase0
    • ssfpImageIndex_phase180

      private int[] ssfpImageIndex_phase180
    • t1ImageIndex

      private int t1ImageIndex
    • b1ImageIndex

      private int b1ImageIndex
    • simplexLineValues

      private double[] simplexLineValues
    • simplexResiduals

      private double[] simplexResiduals
    • simplexCentre

      private double[] simplexCentre
    • reflection

      private double[] reflection
    • expansion

      private double[] expansion
    • contraction

      private double[] contraction
    • shrink

      private double[] shrink
    • simplex

      private double[][] simplex
    • twoPSimplexLineValues

      private double[] twoPSimplexLineValues
    • twoPSimplexResiduals

      private double[] twoPSimplexResiduals
    • twoPSimplexCentre

      private double[] twoPSimplexCentre
    • twoPReflection

      private double[] twoPReflection
    • twoPExpansion

      private double[] twoPExpansion
    • twoPContraction

      private double[] twoPContraction
    • twoPShrink

      private double[] twoPShrink
    • twoPSimplex

      private double[][] twoPSimplex
    • bestToWorst

      private int[] bestToWorst
    • Nfa_phase0

      private int Nfa_phase0
    • Nfa_phase180

      private int Nfa_phase180
    • calculateT2

      private boolean calculateT2
    • includeB1Map

      private boolean includeB1Map
    • performConventionalModeling

      private boolean performConventionalModeling
    • performApproxModeling

      private boolean performApproxModeling
    • performFullModeling

      private boolean performFullModeling
    • calculateM0

      private boolean calculateM0
    • invertT2toR2

      private boolean invertT2toR2
    • calculateB0

      private boolean calculateB0
    • performConventionalWith180Phase

      private boolean performConventionalWith180Phase
    • performConventionalWith0Phase

      private boolean performConventionalWith0Phase
    • geScanner

      private boolean geScanner
    • siemensScanner

      private boolean siemensScanner
    • upperLeftCorner

      private boolean upperLeftCorner
    • upperRightCorner

      private boolean upperRightCorner
    • lowerLeftCorner

      private boolean lowerLeftCorner
    • lowerRightCorner

      private boolean lowerRightCorner
    • useSmartThresholding

      private boolean useSmartThresholding
    • useHardThresholding

      private boolean useHardThresholding
    • noiseScale

      private final float noiseScale
      See Also:
    • hardNoiseThreshold

      private final float hardNoiseThreshold
      See Also:
    • wList

      private String[] wList
    • cAlgo

      private AlgorithmTreT2 cAlgo
    • modelingComboBox

      private JComboBox modelingComboBox
    • phaseRadios

      private ArrayList<JRadioButton> phaseRadios
  • Constructor Details

    • JDialogTreT2

      public JDialogTreT2()
      Empty constructor needed for dynamic instantiation.
    • JDialogTreT2

      public JDialogTreT2(Frame theParentFrame, ModelImage im)
      Construct the barrel/pin cushion correction dialog.
      Parameters:
      theParentFrame - Parent frame.
      im - Source image.
  • Method Details

    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      Description copied from interface: AlgorithmInterface
      Called after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - the algorithm which has just completed
    • doPostAlgorithmActions

      protected void doPostAlgorithmActions()
      Store the result image in the script runner's image table now that the action execution is finished.
      Overrides:
      doPostAlgorithmActions in class JDialogScriptableBase
    • setGUIFromParams

      protected void setGUIFromParams()
      Description copied from class: JDialogScriptableBase
      Set the dialog GUI using the script parameters while running this algorithm as part of a script.
      Specified by:
      setGUIFromParams in class JDialogScriptableBase
    • storeParamsFromGUI

      protected void storeParamsFromGUI() throws ParserException
      Description copied from class: JDialogScriptableBase
      Record the parameters just used to run this algorithm in a script.
      Specified by:
      storeParamsFromGUI in class JDialogScriptableBase
      Throws:
      ParserException - If there is a problem creating/recording the new parameters.
    • init

      private void init()
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
    • callAlgorithm

      protected void callAlgorithm()
      Description copied from class: JDialogScriptableBase
      Starts the algorithm. Already exists in most algorithm dialogs. Should be called during scripted execution and regular operation.
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • getTreTR

      public double getTreTR()
    • getMaxT2

      public double getMaxT2()
    • getMaxM0

      public double getMaxM0()
    • getNfa_phase0

      public int getNfa_phase0()
    • getNfa_phase180

      public int getNfa_phase180()
    • isCalculateT2

      public boolean isCalculateT2()
    • isIncludeB1Map

      public boolean isIncludeB1Map()
    • isPerformConventionalModeling

      public boolean isPerformConventionalModeling()
    • isPerformApproxModeling

      public boolean isPerformApproxModeling()
    • isPerformFullModeling

      public boolean isPerformFullModeling()
    • isCalculateM0

      public boolean isCalculateM0()
    • isInvertT2toR2

      public boolean isInvertT2toR2()
    • isCalculateB0

      public boolean isCalculateB0()
    • isPerformConventionalWith180Phase

      public boolean isPerformConventionalWith180Phase()
    • isPerformConventionalWith0Phase

      public boolean isPerformConventionalWith0Phase()
    • isGeScanner

      public boolean isGeScanner()
    • isSiemensScanner

      public boolean isSiemensScanner()
    • isUpperLeftCorner

      public boolean isUpperLeftCorner()
    • isUpperRightCorner

      public boolean isUpperRightCorner()
    • isLowerLeftCorner

      public boolean isLowerLeftCorner()
    • isLowerRightCorner

      public boolean isLowerRightCorner()
    • isUseSmartThresholding

      public boolean isUseSmartThresholding()
    • isUseHardThresholding

      public boolean isUseHardThresholding()
    • getNoiseScale

      public float getNoiseScale()
    • getHardNoiseThreshold

      public float getHardNoiseThreshold()