Class JDialogSingleMRIImageSNR

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

public class JDialogSingleMRIImageSNR extends JDialogBase implements AlgorithmInterface, ItemListener, WindowListener
Dialog to get user input signal 1 VOI, optional signal 2 VOI, background VOI or signal to use fuzzy c means to separate all pixels into signal and background and number of NMR receivers needed for MRI image SNR calculation.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • backgroundButton

      private JRadioButton backgroundButton
      DOCUMENT ME!
    • backgroundIndex

      private int backgroundIndex
      DOCUMENT ME!
    • componentImage

      private ViewJComponentEditImage componentImage
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • labelReceiver

      private JLabel labelReceiver
      DOCUMENT ME!
    • numReceivers

      private int numReceivers
      DOCUMENT ME!
    • signal2Button

      private JRadioButton signal2Button
      DOCUMENT ME!
    • signal2Index

      private int signal2Index
      DOCUMENT ME!
    • signalButton

      private JRadioButton signalButton
      DOCUMENT ME!
    • signalIndex

      private int signalIndex
      DOCUMENT ME!
    • snrAlgo

      private AlgorithmSingleMRIImageSNR snrAlgo
      DOCUMENT ME!
    • textReceiver

      private JTextField textReceiver
      DOCUMENT ME!
    • VOIGroup

      private ButtonGroup VOIGroup
      DOCUMENT ME!
    • VOIs

      private ViewVOIVector VOIs
      DOCUMENT ME!
    • automaticCheckBox

      private JCheckBox automaticCheckBox
    • automatic

      private boolean automatic
  • Constructor Details

    • JDialogSingleMRIImageSNR

      public JDialogSingleMRIImageSNR(ModelImage image)
      Creates a new JDialogSingleMRIImageSNR object.
      Parameters:
      image - DOCUMENT ME!
    • JDialogSingleMRIImageSNR

      public JDialogSingleMRIImageSNR(Frame theParentFrame, ModelImage im)
      Creates new dialog.
      Parameters:
      theParentFrame - Parent frame
      im - Source image
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed and calls the algorithm.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers function.
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithm when it has completed or failed to to complete, so that the dialog can be display the result image and/or clean up.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      itemStateChanged.
      Specified by:
      itemStateChanged in interface ItemListener
      Overrides:
      itemStateChanged in class JDialogBase
      Parameters:
      event - DOCUMENT ME!
    • windowClosing

      public void windowClosing(WindowEvent event)
      Disposes of error dialog, then frame. Sets cancelled to true.
      Specified by:
      windowClosing in interface WindowListener
      Overrides:
      windowClosing in class JDialogBase
      Parameters:
      event - DOCUMENT ME!
    • callAlgorithm

      protected void callAlgorithm()
      DOCUMENT ME!
    • init

      private void init()
      Initializes GUI components and displays dialog.
    • setVariables

      private boolean setVariables()
      Use the GUI results to set up the variables needed to run the algorithm.
      Returns:
      true if parameters set successfully, false otherwise.