Class JDialogTreT2

  • All Implemented Interfaces:
    AlgorithmInterface, ScriptableActionInterface, DialogDefaultsInterface, java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.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:
    Serialized Form
    • Field Detail

      • title

        private static java.lang.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
      • wList

        private java.lang.String[] wList
      • modelingComboBox

        private javax.swing.JComboBox modelingComboBox
      • phaseRadios

        private java.util.ArrayList<javax.swing.JRadioButton> phaseRadios
    • Constructor Detail

      • JDialogTreT2

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

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

      • 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
      • init

        private void init()
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Specified by:
        actionPerformed in interface java.awt.event.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()