Class JDialogRegistrationChamfer

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

public class JDialogRegistrationChamfer extends JDialogBase implements AlgorithmInterface
Dialog to get user input, then call algorithmChamfer. Reference image does not change. Match image is the image that gets transformed until it is registered to the base image. User selects base image using dialog. Algorithms are executed in their own thread.
Version:
0.2 October 24, 2001
Author:
Neva Cherniavsky
See Also:
  • Field Details

    • serialVersionUID

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

      private ModelImage baseImage
      Register match image to base image.
    • chamfer

      private AlgorithmRegChamfer chamfer
      Algorithm this dialog will call.
    • comboBox2or3D

      private JComboBox comboBox2or3D
      GUI components.
    • comboBoxEdge

      private JComboBox comboBoxEdge
      DOCUMENT ME!
    • comboBoxOriginal

      private JComboBox comboBoxOriginal
      DOCUMENT ME!
    • edge

      private JLabel edge
      DOCUMENT ME!
    • image25D

      private boolean image25D
      true means do each slice individually, false means do them all together.
    • matchImage

      private ModelImage matchImage
      Register match image to base image.
    • original

      private JLabel original
      DOCUMENT ME!
    • regionFlag

      private boolean regionFlag
      true means apply algorithm to whole image, false means to just the VOI.
    • register25D

      private JRadioButton register25D
      DOCUMENT ME!
    • register2Dor3D

      private JRadioButton register2Dor3D
      DOCUMENT ME!
    • titles

      private String[] titles
      Used for setting image to locked and unlocked.
    • userInterface

      private ViewUserInterface userInterface
      DOCUMENT ME!
    • voiRegions

      private JRadioButton voiRegions
      DOCUMENT ME!
    • wholeImage

      private JRadioButton wholeImage
      DOCUMENT ME!
  • Constructor Details

    • JDialogRegistrationChamfer

      public JDialogRegistrationChamfer(Frame theParentFrame, ModelImage im)
      Creates dialog and calls init(), which sets up GUI.
      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.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - algorithm that caused the event.
    • callAlgorithm

      protected void callAlgorithm()
      Calls the algorithm, assuming the variables are already set up. Runs algorithm in separate thread.
    • init

      private void init()
      Sets up the GUI components.
    • setVariables

      private boolean setVariables()
      Sets variables required to run the algorithm.
      Returns:
      true if successful in setting variables, false if not and should cancel algorithm.