Class JDialogDualContourSearch

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

public class JDialogDualContourSearch extends JDialogBase implements AlgorithmInterface, WindowListener
Dialog to get user search for best boundary between 2 contours
See Also:
  • Field Details

    • outerButton

      private JRadioButton outerButton
      DOCUMENT ME!
    • outerIndex

      private int outerIndex
      DOCUMENT ME!
    • textContourPoints

      private JTextField textContourPoints
    • contourPoints

      private int contourPoints
    • textLinePoints

      private JTextField textLinePoints
    • linePoints

      private int linePoints
    • textRegularization

      private JTextField textRegularization
    • regularization

      private double regularization
    • componentImage

      private ViewJComponentEditImage componentImage
      DOCUMENT ME!
    • innerButton

      private JRadioButton innerButton
      DOCUMENT ME!
    • innerIndex

      private int innerIndex
      DOCUMENT ME!
    • removeOriginal

      private boolean removeOriginal
      DOCUMENT ME!
    • removeOriginalCheckBox

      private JCheckBox removeOriginalCheckBox
      DOCUMENT ME!
    • dualAlgo

      private AlgorithmDualContourSearch dualAlgo
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • VOIGroup

      private ButtonGroup VOIGroup
      DOCUMENT ME!
    • VOIs

      private ViewVOIVector VOIs
      DOCUMENT ME!
    • titles

      private String[] titles
    • sigmas

      private double[] sigmas
    • textGaussX

      private JTextField textGaussX
    • textGaussY

      private JTextField textGaussY
    • textContract

      private JTextField textContract
    • textExpand

      private JTextField textExpand
    • pixelsContract

      private int pixelsContract
    • pixelsExpand

      private int pixelsExpand
  • Constructor Details

    • JDialogDualContourSearch

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

      public JDialogDualContourSearch(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.
    • 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.